HTML Elements Flashcards
!
Pick the first option that shows up, it will prefill default HTML code
To write the copyright signal
©
& + copy
Need to tell it’s HTML
< !DOCTYPE html >
You always need this as first element
< head >
Title of the page, shows in browser tab
< title >
Here you can drop the CSS styling if you want it on the same page
< style >
Used for referring link to stylesheet.
< link >
Not the same as < a > element !!< /a >
All visible elements
< body >
Primary heading
< h1>
Each page should have only 1 h1 heading
< / h1 >
Heading: Marks importance, does not say anything about font size per se
< h2 > / < /h2 >< h6 >< /h6 >
Use instead of < b >< /b >
< strong >
Don’t use < b > but use <strong> instead to make text bold. It marks importance
< /strong >< /b >< /strong ></strong>
Use instead of < i >< /i >
< em >
Use <em> instead of < i > for italic text
< /i >< /em >< /em ></em>
Paragraph.
< p >
Paragraph. By closing the < /p > element there will be a space automatically
Image element
< img >
When wanting to create a container element
< div > < /div >