H151 - Review Week 2

- In the figure above, item 5 is a(n)
- embedded style sheet.
- class definition.
- ID definition.
- inline style specification.
c.
- In the figure above, item 4 is a(n)
- embedded style sheet.
- class definition.
- ID definition.
- inline style specification.
b.
- What are some advantages of using
idoverclass? Please reference your response. For example, if you found the information at an online source, indicate the URL; if you used the text, list the page; or if you just knew, state that.IDs carry a higher weight than class. (p. 35;2nd Ed.).
- What are some advantages of using
classoverid. Please reference your response.Classes can be used for different elements. Can be used multiple times within a single page. Self knowledge.
- Please provide some examples of
pseudo-classesandpseudo-elements. When might you use these CSS features? And when should they be avoided? Please reference your response.pseudo-classes - :link, :visited, :hover, :active;
pseudo-elements - :first-letter; :first-line;
They allow you to apply rules to situtations that are visitor/browser/moment dependent.
Do not use pseudo-classes to change the size of fonts within an a tag, because the page will not redraw, causing display issues.
(p. 35-41)