InterviewSolution
Saved Bookmarks
| 1. |
How to apply additional semantic and relational meaning to a class of elements. |
|
Answer» HTML supplies the class and id attributes for these purposes. We can assign a class and an id to any ELEMENT. An ID and class name cannot include a space. It must start with a LETTER and may contain letters, numbers, the underscore (_), and the dash (-). Since CSS selectors are case-sensitive when USING XHTML, it is a common PRACTICE to use lowercase class and ID names. #id { STYLES } *.class { STYLES } |
|