Learning CSS Part Four - Style in the Head: (Civil procedure)

Using styles can help us reinvent the commands To avoid. To do this we can use a The Style Section HEAD in the text We define the HTML. In a style HEAD tag <STYLE> Begin Be with <STYLE/> Ends. Below can be a Example of the style properties for the tag <SPAN> Defines See the section HEAD in the text has been .

Code :


<head>
<style>
<-
span {color: red; font-style: italic}
->
</ Style>
</ Head>

As you can see the style tag <style> begins. Then a Comments to the start of the browsers Do not support CSS style Ignore, and the page displayed could not help themselves. In the next section of this line See :

Code :


span {color: red; font-style: italic}

Yen line specifies that each time the page tags <SPAN> <SPAN/> Used. Text between them as red and Italics are shown. The writing style should keep in mind that Smaller and larger signs should not (<And >) Tags around that HTML is used, use. Also, instead of using symbols Quotes ("") in the text HTML is used in the curly braces ({}) in We use the style properties around. The different properties of a style by a Semi-colon (;) are separated .

When we in the style HEAD of your text for a specific tag, we define For the contents of all the tags for style defined in the page Is used. For example, when we code the HEAD text Appointed, each tag <SPAN> Be used on the page with red text Italics and do not need any time to re-define the desired text profile Be .

This way we can almost all the tags properties HTML controls, we But this is not enough. In the next sections we introduce methods that a Style specified by various tags can be used. This work with Use CLASS and ID to do that we will .





Write Reply