What Is HTML?: Tag Tags
What Is HTML?: Tag Tags
HTML Tags
HTML markup tags are usually called HTML tags
HTML Elements
An HTML element is everything from the start tag to the end tag:
HTML Attributes
• HTML elements can have attributes
• Attributes provide additional information about the element
• Attributes are always specified in the start tag
• Attributes come in name/value pairs like: name="value"
Double style quotes are the most common, but single style quotes are
also allowed.
In some rare situations, like when the attribute value itself contains
quotes, it is necessary to use single quotes:
HTML Headings
Headings are defined with the <h1> to <h6> tags.
<h1> defines the largest heading. <h6> defines the smallest heading.
HTML Comments
Comments can be inserted in the HTML code to make it more readable
and understandable. Comments are ignored by the browser and are
not displayed.
HTML Paragraphs
Paragraphs are defined with the <p> tag.
superscript etc
This is subscript and
HTML styles
Look! Styles and colors
HTML links
A link is the "address" to a document (or a resource) on the
web.
HTML Images
The Image Tag and the Src Attribute
The <img> tag is empty, which means that it contains attributes only
and it has no closing tag.
To display an image on a page, you need to use the src attribute. Src
stands for "source". The value of the src attribute is the URL/local disk
address of the image you want to display on your page.
HTML Tables
Tables are defined with the <table> tag. A table is divided into rows
(with the <tr> tag), and each row is divided into data cells (with the
<td> tag). The letters td stands for "table data," which is the content
of a data cell.