Table of contents
Base elements in HTML5
The HTML elements that allow you to build the most basic web page
<body>
The container for a web page's content. Must be a direct child of , and must be an ancestor of all HTML elements (except where noted).
<head>
defines a container for a web page's metadata.
<html>
Defines the root element of an HTML document. All other elements must be contained within this root element.
<link>
Defines a link between the current web page and an external link or resource.
Forms in HTML5
<button>
Defines a clickable button
fieldset
Defines a group of controls within a form.
<form action="/subscribe" method="post">
<fieldset>
<legend>Subscribe to the Newsletter</legend>
<input type="email" name="email">
<button>Ok</button>
</fieldset>
</form>
form
Defines an interactive form with controls.
<form action="/signup" method="post">
<p>
<label>Title</label><br>
<label>
<input type="radio" name="title" value="mr">
Mr
</label>
<label>
<input type="radio" name="title" value="mrs">
Mrs
</label>
<label>
<input type="radio" name="title" value="miss">
Miss
</label>
</p>
<p>
<label>First name</label><br>
<input type="text" name="first_name">
</p>
</form>
List
<li>
Defines a list item within an ordered list<ol>
or unordered list<ul>
<ul>
Defines an unordered list. Bullet point list
<ol>
Defines an ordered list. Numbered list