HTML5 Cheat Sheet
HTML5 Cheat Sheet
HTML5
CHEAT
SHEET
mikkegoes.com
What Is HTML?
HTML stands for HyperText Markup Language. It is the standard markup language
for creating web pages. HTML defines and describes the structure of a web page.
Just like you see headings, paragraphs, lists, quotes, and sections in a magazine,
HTML helps you organize your web page with a logical structure in a similar way.
Please note: You can’t use standard text processors like Google Docs or MS Word for
this. They don’t output clean HTML markup code.
Please note: This freebie contains affiliate links to products I use and recommend. If you choose to purchase
using these links, I may receive a small commission for referring you. But please, only buy products you
believe will help you achieve your goals faster. Thank you for your support!
mikkegoes.com
HTML Tags
HTML elements are represented by tags, which are characters you place inside
angled brackets, < and >. Browsers do not display the HTML tags, but use them to
render the content of the page.
Each tag is like a container for HTML code. HTML tags label pieces of content such as
"heading", "paragraph", "table", and so on.
Most tags come in pairs: an opening tag denotes the start of an element, a closing
tag ends it. However, some tags are self-closing and they don’t need a closing tag.
<p> </p>
OPENING TAG CLOSING TAG
Opening tags often carry attributes. They allow you to add even more information
about the contents of an element. Each attribute requires a name and a value.
mikkegoes.com
HTML Document: A Simple Example
mikkegoes.com
Common HTML Elements
IMAGES
PAGE INFORMATION
<img src="" /> Image
<form> Form
HEADINGS, TEXT, FORMATTING <fieldset> Collection of fields
<label> Input label
<h1> ... <h6> Headings <input /> Form input
<p> Paragraph <select> Group of options
<br /> Line break <option> Drop-down options
<hr /> Horizontal line <textarea> Large text input box
<b> or <strong> Bold <button> Button
<i> or <em> Italic
<u> Underline
TABLES
<sup> Superscript
<sub> Subscript
<table> Table
<del> Struck out / Deleted
<caption> Caption
<thead> Table header
LISTS <tbody> Table body
<tfoot> Table footer
<ol> Ordered list <col /> Column
<ul> Unordered list <tr> Table row
<li> List item <th> Header cell
<td> Table cell
mikkegoes.com
New HTML5 Elements
<bdi> Part of text that might be formatted in a different direction from other text
outside it
<menuitem> A menu item that user can invoke from a pop-up menu
<time> A date/time
mikkegoes.com
New HTML5 Elements
mikkegoes.com
HTML5 Semantic Elements: Page
Structure
HTML5 offers a few new semantic elements to define different parts of the web page.
You can use these semantic elements instead of creating <div> elements for your
header, navigation, or footer.
<body>
<header>
<nav>
<article> <aside>
<section>
<section>
<section>
<footer>
mikkegoes.com
Learn HTML Online
Codecademy.com freeCodeCamp.org
Udemy Udemy
mikkegoes.com
Find more free resources
for learning to code:
TO THE BLOG
COURSES
RESOURCES
mikkegoes.com
Thanks for reading!
Cheers,
- Mikke
mikkegoes.com