BDWS-Task5: CSS CLASSES AND IDS Summary

1. General: CSS is cascading style sheet that sefine appearance and format of html
- In order to format a specific nested html
- In order to format a specific nested HTML element, CSS allows us to access by form: (parent element) (child element)
2. CSS * selector: to apply a format to all elements of HTML.
3. Like a tree structure, CSS drive a format applying to specific element by parent-child relation: 2 types
4. Use space between parent-child elements to create a link to CSS format element.
5. Use “>” to point the similar elements belong immediately to a parent element.
6. It’s possible to put in HTML tag a Class or a an ID for applying a specific format to the tag:
7. CLASS and ID are used as an attribute of HTML Tags.
8. CLASS defined a style that applied to some similar elements.
9. ID should be applied to a unique element for tag management purpose.
10. A pseudo-class selector: CSS provide another method to apply directly to html element: pseudo-class selector.
11. Syntax: select: pseudo-class.
12. CSS allows formatting the display of link access by: a:(status). Status should be:
13. link: un-visited link status visited
14. hover. change color when mouse’s over.
15. In order to access each element directly belong to the parent element, CSS provide: parent element: child position. Syntax: parent-element (space) nth(number):
16. First Child: example: p: first-child
17. Next Children: example: p nth(number).
Nhận xét
Đăng nhận xét