Home  >  Article  >  Web Front-end  >  CSS Tutorial - Application of CSS_Basic Tutorial

CSS Tutorial - Application of CSS_Basic Tutorial

WBOY
WBOYOriginal
2016-05-16 12:05:141518browse



1. In-line

Inline style uses the style attribute directly in the html tag


text
Set the paragraph text to red.
But remember that the final HTML should be independent of the presentation document, so inline styles should be avoided everywhere.

2. Internal

Use the internal style embedded in the entire page in the head tag, and the style tag surrounds the style.


br>"http://www.w3.org/TR/xhtml1/DTD/xhtml1 -strict.dtd">


CSS Example
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn