Week 3 - Review questions

1. Please provide an example of a pseudo-class. When might they be used and when should they be avoided?
a:visited, you would use this pseudo-class to make the visited link look different, giving it another color or background color for exemple. Some browsers do not support all pseudo-classes, especiallly the dynamic ones such as body *:hover.
2. Please provide an example of a pseudo-element. When might they be used and when should they be avoided?
p:first letter will let you style the fisrt letter of every paragraph. Pseudo-elements can only be used within block-level elements such as headings or paragraphs, not with inline-level elements such as hyperlinks.