This work is not my own nor has the information been modified from its original source(Link here). Markdown has been added to the content to make titles,subtitles, & text stand out from each other.
An HTML element (or tag) is an individual component of an HTML document. Here below is a full list of HTML elements listed by category.
* Basic HTML Elements * Formatting HTML Elements * Forms and Input HTML Elements * Images and Multimedia HTML Elements * Link HTML Elements * Lists HTML Elements * Metadata HTML Elements * Programming HTML Elements * Styling HTML Elements * Text Level Semantic HTML Elements * Table HTML Elements
The HTML <body>
element represents the content of an HTML document. There can be only one <body>
element in a document.
onafterprint | onbeforeprint | onbeforeunload | onblur | onerror | onfocus | onhashchange | onlanguagechange | onload | onmessage | onoffline | ononline | onpopstate | onredo | onresize | onstorage | onundo | onunload
<head>
<title>Here goes the title of the document</title>
</head>
<body>
Here goes the content of the document......
</body>
</html>
Line break. 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. Do not use <br>
to increase the gap between lines of text; use the CSS margin property or the <p>
element.
Attributes (modifiers)
<p>Digital.com<br>xx <br>xx</p>
Paragraph-level thematic break. The HTML <hr>
element represents a thematic break between paragraph-level elements (for example, a change of scene in a story, or a shift of topic with a section).
In previous versions of HTML, it represented a horizontal rule. It may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic rather than presentational terms.
Code example
<p>This is the first paragraph of text.</p><hr><p>This is second paragraph of text.</p>
The HTML <html>
element (or HTML root element) represents the root of an HTML document. All other elements must be descendants of this one. Since the <html>
element is the first in a document other than comments, it is called the root element. Although this Tag can be implied, or not required, with HTML, it is required to be opened and closed in XHTML.
<!DOCTYPE html>
<html>
<head>...</head>
<body>...</body>
</html>
Paragraph content. The HTML <p>
element (or HTML paragraph element) represents a paragraph of text. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by vertical blank space and/or first-line indentation.
The paragraphs are block-level elements.
<p>This is the first paragraph of text.</p><p>This is the second paragraph of text.</p>
Document title or name. The HTML <title>
element defines the title of the document, shown in a browser’s title bar or on the page’s tab. It can only contain text, and any contained Tags are ignored.
<title>This is the page title</title>
Back to categories Formatting HTML Elements
Abbreviation or acronym. The <abbr>
element (or HTML abbreviation element) represents an abbreviation and optionally provides a full description for it. If present, the title attribute must contain this full description and nothing else.
<p>This is <abbr title="Hypertext Markup Language">HTML</abbr></p>
The HTML <address>
element supplies contact information for its nearest <article>
or <body>
ancestor; in the latter case, it applies to the whole document.
<address>Digital.com<br>xx<br> xx<br> xx </address>
Stylistically separated text of equal importance, such as a product name. The HTML <b>
element represents a span of text stylistically different from normal text, without conveying any special importance or relevance.
It is typically used for keywords in a summary, product names in a review, or other spans of text whose typical presentation would be boldfaced.
Another example of its use is to mark the lead sentence of each paragraph of an article.
<p>This article describes several <b>text-level</b> elements. It explains their usage in an <b>HTML</b> document. </p>
Defines directional formatting for content. The HTML <bdi>
element (or Bi-directional isolation element) isolates a span of text that might be formatted in a different direction from other text outside it.
dir +
<p dir="ltr">This arabic word <bdi>ARABIC_PLACEHOLDER</bdi> is automatically displayed right-to-left.</p>
Defines directional formatting for content. The HTML <bdo>
element (or HTML bidirectional override element) is used to override the current directionality of text. It causes the directionality of the characters to be ignored in favor of the specified directionality.
dir +
<p><bdo dir="rtl">This text will go right to left.</bdo></p>
Quote from another source. The HTML <blockquote>
element (or HTML Block quotation element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see notes for how to change it).
A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the <cite>
element.
cite +
<blockquote cite="https://digital.com"><p>This is a quote taken from Digital.com.</p></blockquote>
Title of a referenced piece of work. The HTML citation element (<cite>)
represents a reference to a creative work. It must include the title of a work or a URL reference, which may be in an abbreviated form according to the conventions used for the addition of citation metadata.
<blockquote cite="https://digital.com"><p>This is a quote taken from Digital.com</p></blockquote>
Fragment of computer code. The HTML code element (<code>)
represents a fragment of computer code. By default, it is displayed in the browser’s default monospace font.
<p>Regular text. <code>This is code.</code> Regular text.</p>
Text that has been removed during document editing. The HTML deleted text element (<del>)
represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strike-through text.
cite | datetime +
<p><del>This text has been deleted</del>, here is the rest of the paragraph.</p><del ><p >This paragraph has been deleted.</p ></del >
Defining instance of a term. The HTML definition element (<dfn>)
represents the defining instance of a term.
<p><dfn id="def-internet">The Internet</dfn> is a global system of interconnected networks that use the Internet Protocol Suite (TCP/IP) to serve billions of users worldwide.</p>
Text that should be emphasized. The HTML element emphasis <em>
marks text that has stress emphasis. The <em>
element can be nested, with each level of nesting indicating a greater degree of emphasis.
<p>In HTML 5, what was previously called <em>block-level</em> content is now called <em>flow</em> content.</p>
Text in an alternate voice or mood, such as a technical term. The HTML <i>
element represents a range of text that is set off from the normal text for some reason, for example, technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type.
<p>The Latin phrase <i>Veni, vidi, vici</i> is often mentioned in music, art, and literature.</p>
Text that has been inserted during document editing. The HTML <ins>
element (or HTML Inserted Text) HTML represents a range of text that has been added to a document.
cite | datetime +
<ins>This text has been inserted</ins>
Example input (usually keyboard) for a program. The HTML keyboard input element (<kbd>)
represents user input and produces an in-line element displayed in the browser’s default monospace font.
<p>Save the document by pressing <kbd>Ctrl</kbd> + <kbd>S</kbd></p>
MARK Tag Text highlighted for referencing elsewhere. The HTML mark element () represents highlighted text, i.e., a run of text marked for reference purposes, due to its relevance in a particular context. For example, it can be used on a page showing search results to highlight every instance of the searched-for word. Code example
The element is used to highlight text
METER Tag Control for entering a numeric value in a known range. The HTML element represents either a scalar value within a known range or a fractional value. Attributes (modifiers) high | low | max | min | optimum | value | form + Code exampleHeat the oven to 350 degrees.
PROGRESS Tag Control for displaying progress of a task. The HTML element is used to view the completion progress of a task. While the specifics of how it’s displayed is left up to the browser developer, it’s typically displayed as a progress bar. Javascript can be used to manipulate the value of progress bar. Attributes (modifiers) max | value + Code example 70 % Q TagPhrasing content quoted from another source. The HTML quote element () indicates that the enclosed text is a short in-line quotation. This element is intended for short quotations that don’t require paragraph breaks; for long quotations useelement. Attributes (modifiers) cite + Code exampleEverytime Kenny is killed, Stan will announce
RP TagOh my God, you/they killed Kenny!.