The Essential Guide to HTML5

(Greg DeLong) #1

THE BASICS


Code Explanation


border:2px green double; The border is a 2-pIxel green double line


padding:2px; The space between the text and the border is 2 pixels


display:block; The article is a block, meaning there are line breaks before
and after


} Closes the style for article


Closing style tag
Closing script tag
Opening body tag

Favorite Sites

Text surrounded by h3 and /h3 tags. This make the text
appear somewhat larger than the norm.
Opening article tag

The Jeanine
Meyer's Academic Activities

displays information on my current
and past courses, along with
publications and other activities.


This text will be subject to the style specified. It includes
an a element. Notice that the value for the href attribute is
a relative reference: it says: go to the parent folder of the
current folder and then to the index.html file. Two periods
(..) is computer-speak for “go back a folder level”, so if we
were in the tree/fruit/apple folder, then ../index.html would
take us back to the fruit folder to find the index file, and
../../index.html would take us back to the tree folder.

Closing article tag
Opening article tag
Free download pdf