<p>Mat cat is very Grumpy</p>
- designates a paragraph with an opening tag <p>
and a closing tag </p>
.=
"value"
<p>My cat is <strong>very</strong> grumpy.</p>
<strong></strong>
element to make very
bold<img src="images/firefox-icon.png" alt="My test image" />
</image>
Every HTML document will have the following to identify it as an HTML file :
<!DOCTYPE html></html>
To designate the language:
<html lang="en-US">
The first portion after the preamble will be the head of the document for all the information that isn’t content:
<head></head>
To set the document to use UTF-8 to include the most characters from the vast majority of written languages:
<meta charset="utf-8">
Viewport element ensures the page renders at the width of viewport, preventing mobile browsers from rendering pages wider than the viewport and then shrinking them down.
<meta name="viewport" content="width=device-width">
Sets the title of your page, which is the title that appears in the browser tab the page is loaded in. It is also used to describe the page when you bookmark/favorite it.
<title></title>
Contains all the content that you want to show to web users when they visit your page.
<body></body>
Further broken down into:
<header></header>
<main></main>
<footer></footer>
Headings - can be between <h1></h1>
and <h6></h6>
, similar to MarkDown headings.
Paragraphs - contains paragraphs of text between <p></p>
.
Lists - can be an ordered or unordered list
<ul></ul>
.<ol></ol>
.<li></li>
.