HTML5 Cheat Sheet - MikkeGoes
HTML5 Cheat Sheet - MikkeGoes
CHEAT
SHEET
Your quick cheat sheet to use HTML5
the right way and build front-end web
development projects faster.
BY MIKKE HELSINGIUS
Copyright & Disclaimer
Copyright Affiliate disclaimer
© Copyright by Mikke Helsingius This guide contains affiliate links. If you choose to
purchase a product through an affiliate link, at no
All right reserved, including resale rights. This guide extra cost to you I may earn a small commission
or any portion thereof may not be reproduced or for referring you.
used in any manner whatsoever without the express
written permission of the publisher. Regardless of whether or not I receive a commission,
I only recommend products and resources that I
https://mikkegoes.com personally pay for, use, and trust. Everything I
[email protected] recommend in this guide has helped me grow my
online business faster.
Disclaimer
This guide is for your personal use only. You are not Should you choose to opt for these tools, too, I want
allowed to give or sell it to anyone else. Any portion to thank you for supporting me and making this
thereof may not be reproduced or used in any guide possible!
manner whatsoever without the express written
permission of the publisher.
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.
To create an HTML file, you need to use a code or text editor and save your file with
the extension .html. You can open your file in your web browser to see the output of
your HTML markup.
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.
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.
For example, the <a> tag defines a hyperlink. The href attribute specifies the URL of
the page the link goes to:
IMAGES
PAGE INFORMATION
<img src="" /> Image
<form> Form
HEADINGS, TEXT, FORMATTING <fieldset> Collection of fields
<legend> Caption for <fieldset>
<h1> ... <h6> Headings <label> Input label
<p> Paragraph <input /> Form input
<br /> Line break <select> Group of options
<hr /> Horizontal line <option> Drop-down options
<b> or <strong> Bold <textarea> Large text input box
<i> or <em> Italic <button> Button
<u> Underline
<sup> Superscript
TABLES
<sub> Subscript
<del> Struck oput / Deleted
<!----> Comment <table> Table
<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
<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
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>
Codecademy.com freeCodeCamp.org
Udemy Udemy
TO THE BLOG
COURSES
RESOURCES
I hope you found this little HTML5 cheat sheet helpful. HTML really is one of the
easiest languages out there – and it's so much fun to start experimenting with it once
you learn your first HTML elements, tags and attributes.
If you're not sure what to create, start by building a very simple website for yourself.
Choose a topic you like, such as a hobby you enjoy spending time with.
Remember: your first HTML web page will look super basic and simple, but that's OK.
We all have to start somewhere!
Later on, when your HTML skills improve and you learn CSS (Cascading Style Sheets),
you can start improving your website step-by-step. You can add new elements,
adjust your HTML page structure, and most importantly: make it look beautiful with
some very easy CSS styling.
With that said, check out The Complete Web Developer Course 2.0 and combine it
with the tutorials at freeCodeCamp – that's an unbeatable combo for learning all the
basics and then some!
Mikke
Founder and Creator, Mikke Goes Coding
https://mikkegoes.com