1. The difference between div and span tags is that the div tag is a block level element and defines the alignment of a division or section of a page. The span tag is inline or text level and is used on smaller sections of a page such as one word, letter or sentence at a time. Also the span tag does not force a line break before and after it's opening and closing tags, unlike the div tag.
2. Below I will show an example of a class selector. Here I have identified a font color and weight and it looks like this is my style sheet~~ .note{color: #A061AD; font-weight: bold; } and this is how it is HTML coded:
<p class="note">Just like this.</p>
Just like this.3. The flag character for the ID selector is the # sign.
4. Combined selectors work only with elements that are both the right type and the right class as they are specified as such in the style sheet. They are combined, and if only one element is specified is will not be applied.
5. Line height properties can be either inline or class style.
6. The span tag is NOT used to create style for a whole section of a page as described in #1.
Designed by Donna