HTML Example & Code
HTML Example & Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<header>
<nav>
<p>HEADER</p>
<menu type="context" id="navmenu">
<menuitem label="Home" icon="icon.png"> <a href="#">Home</a>
</menuitem>
</menu>
</nav>
</header>
<main>
<h1> Heading... </h1>
<h2> Heading... </h2>
<h3> Heading... </h3>
<h4> Heading... </h4>
<h5> Heading... </h5>
<h6> Heading... </h6>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus
nisi lacus, auctor sit amet purus vel, gravida luctus lectus. Aenean rhoncus
dapibus enim, sit amet faucibus leo ornare vitae. <br>
<span> span </span>
<b>Bold word</b>
<i>italic</i>
<em>emphasis</em>
<mark>mark</mark>
<ol>
<li><data value="21053">data tag</data></li>
<li><data value="23452">data tag</data></li>
<li><data value="42545">data tag</data></li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
</ol>
<ul>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
</ul>
<hr>
<template>
<h2>Hidden content (after page loaded).</h2>
</template>
<pre>
_,'/
_.-''._:
,-:`-.-' .:.|
;-.'' .::.|
_..------.._ / (:. .:::.|
,'. .. . . .`/ : :. .::::.|
,'. . . . ./ \ ::. .::::::.|
,'. . . . . / `.,,::::::::.;\
/ . . / ,',';_::::::,:_:
/ . . . . / ,',','::`--'':;._;
: . . / ,',',':::::::_:'_,'
|.. . . . / ,',','::::::_:'_,'
|. /,-. /,',':::::_:'_,'
| .. . . /) /-:/,'::::_:',-'
: . . . // / ,'):::_:',' ;
\ . . // /,' /,-.',' ./
\ . . `::./,// ,'' ,' . /
`. . . `;;;,/_.'' . . ,'
,`. . :;;' `:. . ,'
/ `-._,' .. ` _.-'
( _,'``------''
`--''
</pre>
<code>
// code tag
#include <iostream>
int main()
{
cout << "Hello World!" << endl; return 0; } </code> <p>
<var> variable </var> = 1000;
<samp>Traceback (most recent call last):<br>NameError: name
'variabl' is not defined</samp>
</p>
<table>
<thead>
<tr>
<th>Numbers</th>
<th>Letters</th>
<th>Colors</th>
</tr>
</thead>
<tfoot>
<tr>
<td>123</td>
<td>ABC</td>
<td>RGB</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>1</td>
<td>A</td>
<td>Red</td>
</tr>
<tr>
<td>2</td>
<td>B</td>
<td>Green</td>
</tr>
<tr>
<td>3</td>
<td>C</td>
<td>Blue</td>
</tr>
</tbody>
</table >
<details>
<summary>Summary of content below</summary>
<p>Content 1</p>
<p>Content 2</p>
<p>Content 3</p>
<p>Content 4</p>
</details>
<section>
<h1>Content</h1>
<p>Informations about content.</p>
</section>
<select>
<optgroup label="Choice [1-3]">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</optgroup>
<optgroup label="Choice [4-6]">
<option value="4">Four</option>
<option value="5">Five</option>
<option value="6">Six</option>
</optgroup>
</select>
<div>
<div>
<p> div > div > p </p>
</div>
<br>
</div>
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-
width="4" fill="yellow" />
</svg>
<br>
<br>
<audio controls>
I'm sorry. You're browser doesn't support HTML5
<code>audio</code>.
<source
src="https://archive.org/download/ReclaimHtml5/ReclaimHtml5.ogg"
type="audio/ogg">
<source
src="https://archive.org/download/ReclaimHtml5/ReclaimHtml5.mp3"
type="audio/mpeg">
</audio>
<p>This is a recording of a talk called <cite>Reclaim
HTML5</cite> which was orinally delieved in Vancouver at a <a
href="http://www.meetup.com/vancouver-javascript-developers/"
taget="_blank">Super VanJS Meetup</a>. It is hosted by <a
href="https://archive.org/details/ReclaimHtml5"
target="_blank">The Internet Archive</a> and licensed under
<a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">CC
3.0</a>.</p>
<iframe
src="https://open.spotify.com/embed?uri=spotify%3Atrack%3A67HxeUADW4H3ERfaPW59ma?
si=PogFcGg9QqapyoPbn2lVOw" width="300" height="380" frameborder="0"
allowtransparency="true"></iframe>
<article>
<header>
<h2>Title of Article</h2>
<span>by Arthur T. Writer</span>
</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam volutpat sollicitudin nisi, at convallis nunc semper et. Donec ultrices
odio ac purus facilisis, at mollis urna finibus.</p>
<figure>
<img src="https://placehold.it/600x300" alt="placeholder-
image">
<figcaption> Caption.</figcaption>
</figure>
<footer>
<dl> <dt>Published</dt>
<dd>17 August 2020</dd> <dt>Tags</dt>
<dd>Sample Posts, html example</dd>
</dl>
</footer>
</article>
<form>
<fieldset>
<legend>Personal Information</legend>
<label for="name">Name</label><br>
<input name="name" id="name"><br>
<label for="dob">Date of Birth<label><br>
<input name="dob" id="dob" type="date">
</fieldset>
</form>
<aside>
<p> P inside ASIDE tag </p>
</aside>
<map name="shapesmap"> <area shape="rect" coords="29,32,230,215"
href="#square" alt="Square"> <area shape="circle" coords="360,130,100"
href="#circle" alt="Circle"> </map>
<footer>
<address> relevant contacts <a
href="mailto:mail@example.com">mail</a>.</address>
<div> created by <a
href="https://blazardsky.space">@blazardsky</a></div>
</footer>
</body>
</html>
Browser