티스토리 뷰

AU Study/TAFE

CSS begining

Last72 2017. 7. 26. 23:59
css is similar to function in c. it defines font, color, size.


It can be loaded by html.
1. A CSS selector targets an HTML element.

like size, color
2. CSS declarations style HTML elements. Declarations must contain the following two things:
property - the property you want to style.
value - the value for the property you are styling.

like c. we need to say that its end.
3. CSS declarations must end in a semicolon (;)

we can define separately. p is for paragragh, h1 is for h1 and so on.
4. A CSS rule consists of a CSS selector and the declarations inside of the selector.

when we use (*)this symbol, it effect to whole html
5. Multiple element selectors can be used to style multiple elements at once.

/*comment doesn't effect to css*/
6. Comments keep code easy to read and allow you to experiment with new code without having to remove old code.

there is specific role for writing.
7. CSS follows certain best practices for spacing and indentation:
One line of spacing between a selector and the opening curly brace.
No spacing between CSS declarations and the opening and closing curly braces of the CSS rule.
Two spaces of indentation for CSS declarations.
One line of spacing between CSS rules.

'AU Study > TAFE' 카테고리의 다른 글

W2 thu morning  (0) 2017.07.29
CSS  (0) 2017.07.29
W2 Wed afternoon  (0) 2017.07.26
W2 Wed morning  (0) 2017.07.26
CSS basic  (0) 2017.07.26
댓글
Announcement
Recent Posts
Recent Comments
Total
Today
Yesterday
Link
TAG
more
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Search by month