Exercise 1: Tags
- Copy/paste snippets of the HTML in
this American Lit page to jsfiddle
- make the
h3
elements green and underlined
- make the
em
elements red
- The result might look like American
Lit after
- Explain the appearance of
The Romantic Movement
Exercise 2: IDs
- What does the following URL do:
http://cs.wellesley.edu/~cs110/lectures/L03/amLit/initPage-after.html#intro
- What is the
#intro
part?
- Why should IDs be unique?
- Using jsfiddle and the HTML code from earlier, make the text of the
#intro
be 24px.
- Make the background color of that same DIV be
wheat
.
- The result might look like American
Lit after 2
Exercise 3: Classes
- Make the background color of each
week
be khaki
.
- Using that same HTML page, make
optional
optional stuff gray
- What is the color of
Song of Myself
?
- Can you think of a way to fix that?
- The result might look like American
Lit after 3
Exercise 4: Tag Usage
- What would be better markup for the
author
photos?
- Implement that.
- The result might look like American
Lit after 4