HTML Ccheatsheet
HTML Ccheatsheet
Semantic Tag HTML elements that introduce meaning to Options include, but not limited to:
the web page rather than just presentation. <strong> <main> <section>
<header> <blockquote> <code>
<em>
Deprecated/ Tags that are discouraged to use and Options include, but not limited to:
Presentational browsers may remove support for them in the <center> <font> <b> <i> <u>
Tags future if they haven’t already. Many are <strike> <s> <applet>
presentational tags originally used to control
display without semantic value.
Tag Description
<title> text <
/title> title shown on page tab
attribute="value" .
<meta .. /> page metadata
url" rel="stylesheet" />
<link href=" links to a CSS style sheet
url"></script>
<script src=" link to JavaScript program
<!-- c
omments --> comment (can appear in head o
r body
)
Tag Description
<header> Header of a page or another structural element
Main content of a page. The content inside should be unique to the document and not
<main> contain content that is shared across pages (e.g., website nav links, search bars, etc.)
<footer> Footer of a page or another structural element
<article> A standalone piece of content (e.g., entire blog post including title, author, etc.)
<section> A piece of content that is part of another (e.g., a chapter section of a reading)
<aside> Defines some content aside from the content it is placed in (e.g., a sidebar in an article)
<nav> Navigational element, often containing links to navigate within/between pages
num" cols="
<textarea rows=" num"> Inline multi-line text input box
initial text
</textarea>
text <
<label> /label> Inline clickable text l abel around a form control
<select> Inline drop-down selection box (select
);
text <
<option> /option> each option within the box (option
);
<optgroup label="text"> a labeled group of option (optgroup
);
text <
<option> /option>
text <
<option> /option>
</optgroup>
...
</select>