What is a style sheet CSS short for Cascading Style Sheet. It is translated as "stacked style form 」. It is a markup language used to (enhance) control webpage styles and allow separation of style information from webpage content. You can add a style sheet to Your webpage in the following three ways. The higher the style definition priority that is closest to the target. The high-priority style inherits the non-overlapping definition of the low-priority style but overwrites the overlapping definition. For exceptions, see important Declaration. Link the external style table file (linking to a style sheet.pdf you can first create an external style table file (.css), and then use the link object of HTML. Example:
<Head>
<Title> title of article </title>
<LINK rel = stylesheet href = "http://www.dhtmlet.com/rainer.css" type = "text/CSS">
</Head>
In XML, you should add it to the declaration area as follows:
<? XML-stylesheet type = "text/CSS" href = "http://www.dhtmlet.com/rainer.css"?> Define an internal style block object (embedding a style block). You can insert a <style>... </style> block object. For the definition method, see style sheet syntax. Example:
<HTML>
<Style type = "text/CSS">
<! --
Body {Font: 10pt "Arial "}
H1 {Font: 15pt/17pt "Arial"; font-weight: bold; color: maroon}
H2 {Font: 13pt/15pt "Arial"; font-weight: bold; color: Blue}
P {Font: 10pt/12pt "Arial"; color: Black}
-->
</Style>
<Body>
Note that the type attribute of the style object is set to "text/CSS", which allows browsers that do not support this type to ignore style forms.
Inline definition (Inline styles) inline definition is to use the style attribute Definition of the object within the object tag to apply its style table attribute. Example:
<P style = "margin-left: 0.5in; margin-Right: 0.5in"> the left and right external patches are added to this line. <p> style table syntax (CSS syntax) selector {property: Value}
Parameter description:
Selector-- Selector
Property: Value-- Style sheet definition. The attribute and attribute values are separated by a colon. Definitions are separated by semicolons (;). Each property has a specified value: Inherit. It means that the value of the parent object is equal to the value of the computer. This value is usually used as an alternative. Explicitly declare that it can be emphasized.