Prepared by: Anthony Larrain
These notes serve as an outline to the lecture, they are not intended to be complete. Attend class to get more details.
center
Note this tag is deprecated. When a language feature is deprecated,
later versions (browsers) are not required to recognize that feature.
Here is a list of deprecated tags em
Used for emphasis. For now browsers display this in italics.address
tag defines the start of an address. Used to define addresses, signatures, or authorships of documents.blockquote
tag defines the start of a long quotation.cite
used to markup citations such as titles of books,magazines or newspapers, references to other sources etc..There are many other benefits, we will address these throughout the quarter.
Consider deflistcolor.html, to change the color of the term we
are defining we had to nest a font
tag within a dt
tag. Furthermore, to
get the term bold we also had to nest a strong
tag. Then we had to do this for each
of the terms.
We see even in this simple example we have quite a few tags. With CSS we can define a rule
for the dt
tag, such that whenever we use the dt
tag the text will appear blue and bold.
We say we are giving style to the tag
Each rule is made up of a selector ,an HTML element such as dt, body, p, h1, li etc..
,
and declarations, that determine how the selected element will be displayed.
Example, to make the dt
tag appear blue we would write:
dt
is the selector
color:blue
is the declaration
To make the font bold we would write:
Since both descriptions pertain to the same selector(tag), we can combine them:
We use a semicolon ';' to separate descriptions
To get the style to work we place the code in between style
tags and nest
this within the head
tag. See source code for:
defliststyle.html
Note I am adding other styles.