HTML Elements

Ace your homework & exams now with Quizwiz!

What does HTML stand for?

Hypertext Markup Language

<body>

The HTML Body Element represents the content of an HTML document. There can be only one Body Element in a document.

<span>

The HTML span element is a generic inline container for phrasing 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 is appropriate. Span is very much like a <div> element, but <div> is a block-level element whereas a <span> is an inline element.

<hr>

The HTML horizontal rule 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 terms, rather than presentational terms.

<p>

The HTML paragraph element represents a paragraph of text.

<img>

The HTML Image Element represents an image in the document.

<!doctype html>

This element tells the browser what version of html we are using.

<h1> <h2> <h3> <h4> <h5> <h6>

Heading elements implement six levels of document headings, 1 is the most important and 6 is the least. A heading element briefly describes the topic of the section it introduces. Heading information may be used by user agents, for example, to construct a table of contents for a document automatically.

<abbr>

The 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.

<address>

The HTML Address Element supplies contact information for its nearest <article> or <body> ancestor; in the latter case, it applies to the whole document.

<a>

The HTML Anchor Element defines a hyperlink to a location on the same page or any other page on the Web. It can also be used (in an obsolete way) to create an anchor point—a destination for hyperlinks within the content of a page, so that links aren't limited to connecting simply to the top of a page.

<article>

The HTML Article Element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). This could be a forum post, a magazine or newspaper article, a blog entry, an object, or any other independent item of content. Each <article> should be identified, typically by including a heading (h1-h6 element) as a child of the <article> element.

<cite>

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.

<code>

The HTML Code Element represents a fragment of computer code. By default, it is displayed in the browser's default monospace font.

<dt>

The HTML Definition Term Element identifies a term in a definition list. This element can occur only as a child element of a <dl>. It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> element.

<dd>

The HTML Description Element indicates the description of a term in a description list (<dl>) element. This element can occur only as a child element of a definition list and it must follow a <dt> element.

<dl>

The 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).

<div>

The 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.

<em>

The HTML Emphasis Element marks text that has stress emphasis. The em element can be nested, with each level of nesting indicating a greater degree of emphasis.

<footer>

The HTML Footer Element represents a footer for its nearest sectioning content or sectioning root element. A footer typically contains information about the author of the section, copyright data or links to related documents.

<head>

The HTML Head Element provides general information (metadata) about the document, including its title and links to or definitions of scripts and style sheets.

<header>

The HTML Header Element represents a group of introductory or navigational aids. It may contain some heading elements but also other elements like a logo, wrapped section's header, a search form, and so on.

<link>

The HTML Link Element specifies relationships between the current document and an external resource. Possible uses for this element include defining a relational framework for navigation. This Element is most used to link to style sheets.

<li>

The 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.

<meta>

The HTML Meta Element represents any metadata information that cannot be represented by one of the other HTML meta-related elements (<base>, <link>, <script>, <style> or <title>).

<nav>

The HTML Navigation Element represents a section of a page that links to other pages or to parts within the page: a section with navigation links.

<ol>

The 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.

<pre>

The HTML Preformatted Text represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed.

<section>

The HTML Section Element represents a generic section of a document, i.e., a thematic grouping of content, typically with a heading. Each <section> should be identified, typically by including a heading (<h1>-<h6> element) as a child of the <section> element.

<strong>

The HTML Strong Element gives text strong importance, and is typically displayed in bold.

<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.

<title>

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 not interpreted.

<blockquote>

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.

<br>

The HTML br Element (or HTML Line Break Element) 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.

<html>

The HTML root element represents the root of an HTML document. All other elements must be descendants of this element.

<ul>

The HTML unordered list element represents an unordered list of items, namely a collection of items that do not have a numerical ordering, and their order in the list is meaningless. Typically, unordered-list items are displayed with a bullet, which can be of several forms, like a dot, a circle or a squared. The bullet style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type property.


Related study sets

Children's Exam 3 Practice Questions

View Set

Ex_04_01_ Fill in the blanks with "must", "should" or "ought (to)". Use the correct form of the infinitive

View Set

Social Psych Mid-Term #3 Chapter 9

View Set

Chapter 1- basic principles of insurance

View Set

BAS 282: New Product Development: SmartBook

View Set