Cheatography
https://cheatography.com
You will find all the useful tags for the semantics of your HTML 5 documents.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Structure of the document
<!DOCTYPE> |
(X) HTML version |
<html> |
HTML document |
<head> |
Page information |
<body> |
Page content |
Page information
<title> |
Page title |
<meta /> |
Metadata |
<base /> |
Base address |
<link /> |
External resource |
<style> |
Defining styles |
<script> |
Defining scripts |
Structure tags
<div> |
Block envelope |
<span> |
Chain envelope |
<section> |
Section |
<nav> |
Navigation |
<header> |
Header |
<footer> |
Footer |
<article> |
Article |
<aside> |
Associated / secondary content |
Text formatting
<h [1-6]> |
Title levels |
<p> |
Paragraph |
<br/> or <br> |
Line break |
<strong> |
Bold (SEO) |
<b> |
Bold |
<em> |
Italicization (SEO) |
<i> |
Italicized |
<blockquote> |
External quote |
<mark> |
Highlight |
<pre> |
Pre-formatted text |
<code> |
Coded |
<address> |
Address |
<cite> |
Quote |
Page information
hello how are you ? I'm fine thx!
|
|
|
Links
<a href=""> |
Link to a URL or file |
<a href="mailto:"> |
Link to an email |
<a name=""> |
Anchor |
<a href="#name"> |
Link to an anchor |
Picture Test
`<html>
<head>
<title>Titre de la page</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<nav></nav>
</header>
<section>
<article></article>
<article></article>
<article></article>
...
</section>
<aside></aside>
<footer></footer>
</body>`
Page information
<html>
<head>
<title>Titre de la page</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<nav></nav>
</header>
<section>
<article></article>
<article></article>
<article></article>
...
</section>
<aside></aside>
<footer></footer>
</body
Picture Test
<html>
<head>
<title>Titre de la page</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<nav></nav>
</header>
<section>
<article></article>
<article></article>
<article></article>
...
</section>
<aside></aside>
<footer></footer>
</body
Picture Test
<html>
--- <head>
------ <title>Titre de la page</title>
------ <meta charset="UTF-8" />
--- </head>
--- <body>
------ <header>
--------- <nav></nav>
------ </header>
------ <section>
--------- <article></article>
--------- <article></article>
--------- <article></article>
------ </section>
------ <aside></aside>
------ <footer></footer>
--- </body>
</html>
|
|
test
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Page information
<html>
<head>
<title>Titre de la page</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<nav></nav>
</header>
<section>
<article></article>
<article></article>
<article></article>
...
</section>
<aside></aside>
<footer></footer>
</body
|
Test
<div style="padding: 3px 8px;"><html><br>
<head><br>
<title>Titre de la page</title><br>
<meta charset="UTF-8" /><br>
</head><br>
<body><br>
<header><br>
<nav></nav><br>
</header><br>
<section><br>
<article></article><br>
<article></article><br>
<article></article><br>
...<br>
</section><br>
<aside></aside><br>
<footer></footer><br>
</body</div> |
|