diff options
Diffstat (limited to 'CSS.md')
-rw-r--r-- | CSS.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +--- +tags: + - css +--- +CSS is used to style [[HTML]]. + +Three ways to load: +- `<link rel="stylesheet" href="pathto.css">` +- `<style>css content</style>` +- or style attributes on elements + +Link is preferred: easier to work with everything in 1 place; browser can cache file. + +Both link and style blocks should go in the `<head>` to prevent repainting of elements.
\ No newline at end of file |