Enter your email address in the box below, then click Subscribe. In this lesson we ve got quite a lot of code to get through, so without further ado we ll make a start. It s with cascading style sheets, or CSS that we re going to start this lesson. Cascading Style Sheets specify a series of attributes which can be called up in any tag, using the class attribute. After comment tag opens we have the stylesheet code, and as you can see, its basic structure is somewhat different to that of the HTML which we ve dealt with so far.
Lets start with the top line, which begins with the A .
After that we have the word hover , which indicates that the directions in the brackets should occur when the mouse is hovering over any link. This is called an onMouseover or Rollover effect. The code in brackets says that when the mouse is over a link the font should turn italic. On the lines below that no tag is defined, because these are all classes, which can be used in any tag, but we re creating them for use with links, so that they are more customized than the standard blue underlined font. We ll use three different links in different places on our page.