First page Back Continue Last page Image
Example Of An ID Pair
- <div id=“footer”> Copyright 2016, NTC Inc.</div>
- #footer { color: gray; font-size: small; }
- The code in our target .html file
- The code in our style .css file
- This line indicates any selector using the footer id
- <span id=“footer”> A product of NTC Industries</span>
- This works on both lines of code below
- The difference between a Class and an ID is that a Class can be used multiple times on a page, but an ID is only used once on a page