HTML Reference

Basic Tags/Attributes

Tag/Attribute Description
<!-- --> Defines a comment
<!DOCTYPE html> Indicates that HTML5 is used on a page
<body> Contains the content appearing on a page
<br> Creates a line break
<h1>, <h2>, <h3>, <h4>, <h5>, <h6> Creates heading levels
<head> Contains the page title, style sheets, scripts, and metadata
<html> Identifies an HTML document
<meta> Defines extra information, or metadata, for a page
content Defines the metadata content
name Defines the type of metadata
<p> Defines a paragraph
<title> Creates a title for a Web page

Text Formatting Tags/Attributes

Tag/Attribute Description
<abbr> Defines abbreviated text
title Defines the abbreviated term
<address>

Get Teach Yourself Visually™ HTML5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.