User:Zuhui/Prototyping/HTML/CSS: Difference between revisions
< User:Zuhui | Prototyping
(→Basic) |
No edit summary |
||
Line 1: | Line 1: | ||
=Basic= | =Basic HTML= | ||
HTML basic structure | HTML basic structure | ||
<!DOCTYPE html> | <!DOCTYPE html> | ||
Line 9: | Line 9: | ||
</body> | </body> | ||
</html> | </html> | ||
=Basic CSS= | |||
==:root== | |||
:root{ | |||
--(name of the var):(color, fontsize etc); | |||
} | |||
//-- two dash is mendatory | |||
//when use | |||
ex) font-size: var(--main-font-size); |
Revision as of 11:12, 12 November 2024
Basic HTML
HTML basic structure
<!DOCTYPE html> <html> <head> <title></title> </head> <body> </body> </html>
Basic CSS
:root
:root{ --(name of the var):(color, fontsize etc); } //-- two dash is mendatory
//when use ex) font-size: var(--main-font-size);