Skip to main content

HTML 5

<!DOCTYPE html>Declaration for an HTML Document
<html></html> lang enWraps an HTML Document What language the document is in. English
<body></body>Body of the File
<main></main>Main function
<h#></h#>Headers, Goes from 1(important) to 5(non-important)
<section></section>Isolated section of hmtl
<p></p>Paragraph
<a></a> Href targetA Link What the link points to _blank opens in a new tab
<img> Src altSelf closing photo tag Path to the image Message if the photo fails
<ul></ul>Unordered List
<ol></ol>Ordered List
<li></li>List Element
<figure></figure> <figcaption></figcaption>Surrounds an image and caption Caption for the image
<em></em>Italicize Characters
<strong></strong>Bold Characters
<form></form> actionCreates an interactable form Where the completed form is sent.
<input></input> type radio checked value text checkbox checked name requiredSelf closing tab input for a form What type of button Multiple Choice Checked by default What the multiple choice value is Textbox Checkbox Checked by default Name of the input can be used to make only one choice available. Make the input required.
<label></label>Surrounds an input to add a caption
<button></button>Makes a button
<fieldset></fieldset>Groups related inputs and labels together in a webform
<legend></legend>Caption for context of a fieldset element
<label></label> forAssociates text or an input Links to an id
<footer></footer>Adds a footer to the webpage
<head></head>Goes above the body element for important information
<title></title>Determines what browsers show in the title bar.