A HTML Cheat Sheet I Compiled Without Checking To See If Anything I Remember Is Accurate or True
start with a doctype (to indicate that you know what kind of doctor this code requires)
html
for the whole diggitydoohead
for the metadatatitle
for the titlelink
for CSS (note that, despite "zelda" being the name on the box,zelda
is not interchangeable withlink
here)script
for JSbody
for the stuff you actually seesoul
for stuff that doesn't go in thehead
or thebody
(note, not supported in materialist browsers) (p.s. soul is only available if you are a soldier, unless you are in The Killers)div
is a box for holding literally anythingsection
is "div" for people with too much time on their handsp
for paragraphsb
for bearagraphsh1
h2
h3
h4
h5
h6
for headersf1
f2
f3
f4
f5
f6
for footersspan
for stuff like individual text that's in a line and doesn't need a whole box on its ownspain
for the country, spain, where therain
ismain
ly on theplain
ol
andul
are the containers for ordered lists and unordered listsli
for the list items that goes into whichever list.la
, a note to followso
ti
, a drink with jam and breadblockquote
for quotesimg
for images (note: Tim Berners-Lee sold thea
ande
for beer money)abbr
is the sound you make when you give your cat a raspberryhe will scratch your face but it is worth it
I'm pretty sure there's an
audio
and avideo
but I have to look these ones up every time I use them because they have complicated formats inside of them.pre
andcode
for stuff you want to look like codemarquee
to let people know you're a ballerform
for formsvoid
isform
but it doesn't do anything (it is public and static, though)button
for buttonsinput
... okay, I usually have to look up the syntax for inputs, but there's a whole mess of 'emoutput
was made illegal in 1998 and doesn't get used anymoreem
andstrong
for emphasis and STRONKweak
is likestrong
but it setsfont-weight:100
table
is for layout, if you like pain, but otherwise thetr
(table rows) andth
(table headers) andtd
(table data) andtm
(trademarks) mostly only come up if you're actually rendering tabular data. Which still happens sometimes, if you’re the sort of person who wears a TIE. And PANTS.<!--
is Athena's arrow of wisdom, any text that you spear with it is rendered invisible to the reader-->
center
is no longer supported, it's been replaced by the vastly superior canadianism,centre
iframe
is a little web browser that lives inside your web browser, with its whole own little society. hi there little iframe people! what is it like in there?aframe
is a house that is shaped like this/\