User:Zuhui/Prototyping/HTML/CSS: Difference between revisions
< User:Zuhui | Prototyping
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Basic HTML= | |||
=Basic= | |||
[https://pad.xpub.nl/p/HTML-club 121124 with manetta] | |||
==HTML== | |||
HTML basic structure | HTML basic structure | ||
<!DOCTYPE html> | <!DOCTYPE html> | ||
Line 11: | Line 14: | ||
= | ==CSS== | ||
==:root== | ===:root=== | ||
:root{ | :root{ | ||
--(name of the var):(color, fontsize etc); | --(name of the var):(color, fontsize etc); |
Revision as of 11:24, 12 November 2024
Basic
HTML
HTML basic structure
<!DOCTYPE html> <html> <head> <title></title> </head> <body> </body> </html>
CSS
:root
:root{ --(name of the var):(color, fontsize etc); } //-- two dash is mendatory
//when use ex) font-size: var(--main-font-size);