Cascading Style Sheets (CSS) ExcerciseTo practice your CSS, alter the code for this entire page (yes, the one you're looking at), remove all the XHTML styling which exists as attributes in the tags, and reformat using CSS. Also replace font, italic and bold tags with formatted span tags. (They go like this: <span class="mystyle"></span>) But first something about CSSThe easiest way to imaging what CSS does is to note that it finds tags ( < > ) in HTML and replaces the code with its own. When you write a paragraph style in CSS, p {...}, for example, the style code looks for every p tag ( <p> ) in the document and puts new code into it. It takes only a moment longer to code for a single paragraph tag with CSS than it does in HTML, but when you're done, every paragraph tag is altered with no further work. What a timesaver! Now the bad news When you write XHTML or CSS, you're writing instructions for whichever browser the proverbial user is using. Consider what this means: to hear your instructions, the browser must itself be programmed to accept them. Many older browsers are deaf to some XHTML and a lot of CSS, and instructions won't be heeded. Figure out what kind of equipment your user will implement to see your pages before you make use of it. More bad news: since CSS takes the place of matter in tags, every part of how the code is written is different. Even the equal sign in attributes (=) become a colon ( : ) in properties (even the word "attribute" is replaced with the word "properties"!) Other Specifications:
| ||||||||||||||||||