Web Design Course Starter Pack: HTML Tags Elements
Web Design Course Starter Pack: HTML Tags Elements
Document Metadata
<base> The HTML element specifies the base URL to use for all relative
URLs contained within a document. There can be only one
element in a document.
<head > The HTML element provides general information (metadata) about
the document, including its title and links to its scripts and style
sheets.
<meta > The HTML element represents any metadata information that
cannot be represented by one of the other HTML meta-related
elements (<base>, <link>, <script>, <style> or <title>
<style > The HTML <style> element contains style information for
a document, or part of a document. By default, the style
instructions written inside that element are expected to be
CSS.
Text content
Use HTML text content elements to organize blocks or sections of
content placed between the opening <body> and closing </body>
tags. Important for accessibility and SEO, these elements identify the
purpose or structure of that content.
<div> The HTML <div> element (or HTML Document Division
Element) is the generic container for flow content, which
does not inherently represent anything. It can be used to
group elements for styling purposes (using the class or id
attributes), or because they share attribute values, such as
lang. It should be used only when no other semantic
element (such as <article> or <nav>) is appropriate
<dl> The HTML <dl> element (or HTML Description List
Element) encloses a list of pairs of terms and descriptions.
Common uses for this element are to implement a glossary
or to display metadata (a list of key-value pairs).
<li> The HTML <li> element (or HTML List Item Element) is
used to represent an item in a list. It must be contained in a
parent element: an ordered list (<ol>), an unordered list
(<ul>), or a menu (<menu>). In menus and unordered lists,
list items are usually displayed using bullet points. In
ordered lists, they are usually displayed with an ascending
counter on the left, such as a number or letter.
<ol> The HTML <ol> Element (or HTML Ordered List Element)
represents an ordered list of items. Typically, ordered-list
items are displayed with a preceding numbering, which can
be of any form, like numerals, letters or Romans numerals
or even simple bullets. This numbered style is not defined
in the HTML description of the page, but in its associated
CSS, using the list-style-type property.
<br> The HTML element line break <br> produces a line break
in text (carriage-return). It is useful for writing a poem or an
address, where the division of lines is significant.
<small> The HTML Small Element (<small>) makes the text font size one
size smaller (for example, from large to medium, or from small to
x-small) down to the browser's minimum font size. In HTML5, this
element is repurposed to represent side-comments and small
print, including copyright and legal text, independent of its styled
presentation.
<strong> The HTML Strong Element (<strong>) gives text strong
importance, and is typically displayed in bold.
<tbody> The HTML Table Body Element (<tbody>) defines one or more
<tr>element data-rows to be the body of its parent <table>
element (as long as no <tr> elements are immediate children of
that table element.) Inconjunction with a preceding <thead>
and/or <tfoot> element, <tbody> provides additional semantic
information for devices such as printers and displays. Of the
parent table's child elements, <tbody> represents the content
which, when longer than a page, will most likely differ for each
page printed; while the content of <thead> and <tfoot> will be the
same or similar for each page printed. For displays, <tbody> will
enable separate scrolling of the <thead>, <tfoot>, and <caption>
elements of the same parent <table> element.
<th> The HTML element table header cell <th> defines a cell
as a header for a group of cells of a table. The group of
cells that the header refers to is defined by the scope
and headers attribute.
<tr> The HTML element table row <tr> defines a row of cells
in a table. Those can be a mix of <td> and <th>
elements.
Forms
HTML provides a number of elements which can be used together to
create forms which the user can fill out and submit to the Web site or
application. There's a great deal of further information about this
available in the HTML forms guide.
<datalist> The HTML Datalist Element (<datalist>) contains a set of
<option>elements that represent the values available
for other controls.
<fieldset> The HTML <fieldset> element is used to group several controls as
well as labels (<label>) within a web form.