J
JohnW-Mpls
Reading a message in here, I noticed the use of the attribute id
(as in <div id="xxx">). I use css but mainly as a template for
similarity of all pages at a site.
For special colors or something like that for a word in a HTML
page, I have been using <div class="xxx"> if the color is
predefined in my .css file, and <div style="xxx"> when I need to
spell out something special.
Why and when would it be good to use the id attribute?
(as in <div id="xxx">). I use css but mainly as a template for
similarity of all pages at a site.
For special colors or something like that for a word in a HTML
page, I have been using <div class="xxx"> if the color is
predefined in my .css file, and <div style="xxx"> when I need to
spell out something special.
Why and when would it be good to use the id attribute?