<!DOCTYPE html>
<html>
<head>
<title>My site</title>
</head>
<body>
<h1>Hello!</h1>
<p>this is so cool!</p>
<img src="https://http.cat/200"/>
</body>
</html>
this is so cool!
<p> Paragraph with <b>bold</b>, <i>italic</i>, and <u>underlined</u> text </p>
<ul>
</ul>
<a href="https://example.com">Link</a><img src="https://http.cat/200"/><br><div> is a container<div style="padding: 1em; background-color: lightblue">
<div style="padding: 1em; background-color: pink">
<div style="padding: 1em; background-color: white">
<marquee>hello!</marquee>
</div>
</div>
</div>
p { background-color: red; }
p is the selector, selecting all <p> elements, andbackground-color is a property…red<p class="my-cool-class">hi</p>
<p id="my-cool-id">hi</p>
p { background-color: red; }
.my-cool-class { background-color: green; }
#my-cool-id { background-color: blue; }
span.rainbow selects <span> with the rainbow classp img selects all <img> that are (somewhere) inside a <p>
p > img only selects ones that are direct childrena:hover selects all #foo that the user is hovering over
#link-pseudo-classes:hover {background-color: black; color: white}#bar:hover::before { content: "i am a link to " }this is some crazy stuff, all w/o javascript!
font-size, width, height, padding, margin, …
1 em = size of the font1px = 1 pixel1 vh (1 vw) = height (width) of the viewport0 (nothing)% (relative to parent)you’ll need:
npm i -g live-server, run: live-server
Options:
abcd1234
~ became synonymous with home~abcd1234/ = /home/abcd1234/~abcd1234/public_html/Apache 1.3 Documentation, 2001
webuser.uni-weimar.deabcd1234*******there’s also some more detailed documentation from SCC