Computer Science HTML 5 Tags

Ace your homework & exams now with Quizwiz!

<p>

The <p> tag defines a paragraph. Browsers automatically add a single blank line before and after each <p> element.

<q>

The <q> tag defines a short quotation. Browsers normally insert quotation marks around the quotation. Defines a short quotation

<!DOCTYPE>

All HTML documents must start with a <!DOCTYPE> declaration. The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect. Defines the document type

<abbr>

The <abbr> tag defines an abbreviation or an acronym, like "HTML", "CSS", "Mr.", "Dr.", "ASAP", "ATM". Tip: Use the global title attribute to show the description for the abbreviation/acronym when you mouse over the element. Defines an abbreviation or an acronym

<Address>

The <address> tag defines the contact information for the author/owner of a document or an article. The contact information can be an email address, URL, physical address, phone number, social media handle, etc. The text in the <address> element usually renders in italic, and browsers will always add a line break before and after the <address> element. Defines contact information for the author/owner of a document/article

<b>

The <b> tag specifies bold text without any extra importance.

<blockquote>

The <blockquote> tag specifies a section that is quoted from another source. Browsers usually indent <blockquote> elements (look at example below to see how to remove the indentation). Defines a section that is quoted form another source

<body>

The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

<br>

The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems. The <br> tag is an empty tag which means that it has no end tag.

<hr>

The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems. The <br> tag is an empty tag which means that it has no end tag.

<cite>

The <cite> tag defines the title of a creative work (e.g. a book, a poem, a song, a movie, a painting, a sculpture, etc.). Note: A person's name is not the title of a work. The text in the <cite> element usually renders in italic. Defines the title of a work

<code>

The <code> tag is used to define a piece of computer code. The content inside is displayed in the browser's default monospace font. Tip: This tag is not deprecated. However, it is possible to achieve richer effect by using CSS (see example below). Defines a piece of computer code

<del>

The <del> tag defines text that has been deleted from a document. Browsers will usually strike a line through deleted text. Defines text that has been deleted from a document

<em>

The <em> tag is used to define emphasized text. The content inside is typically displayed in italic. A screen reader will pronounce the words in <em> with an emphasis, using verbal stress. Defines empharized text

<h1> to <h6>

The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading. Note: Only use one <h1> per page - this should represent the main heading/subject for the whole page. Also, do not skip heading levels - start with <h1>, then use <h2>, and so on.

<head>

The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. Metadata is data about the HTML document. Metadata is not displayed. Metadata typically define the document title, character set, styles, scripts, and other meta information. Contains metadata/information for the document

<html>

The <html> tag represents the root of an HTML document. The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag). Defines the html document

<i>

The <i> tag defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic. Tag defines a text that has been inserted into a document The <i> tag is often used to indicate a technical term, a phrase from another language, a thought, a ship name, etc. Use the <i> element only when there is not a more appropriate semantic element, such as: <em> (emphasized text) <strong> (important text) <mark> (marked/highlighted text) <cite> (the title of a work) <dfn> (a definition term)

<small>

The <small> tag defines smaller text (like copyright and other side-comments). Tip: This tag is not deprecated, but it is possible to achieve richer (or the same) effect with CSS. Defines a smaller text

<strong>

The <strong> tag is used to define text with strong importance. The content inside is typically displayed in bold. Tip: Use the <b> tag to specify bold text without any extra importance! Defines a important text

<sub>

The <sub> tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O. Defines subscripted text

<sup>

The <sup> tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW[1]. Defines Superscripted text

<title>

The <title> tag defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. The <title> tag is required in HTML documents! The contents of a page title is very important for search engine optimization (SEO)! The page title is used by search engine algorithms to decide the order when listing pages in search results.

<!--...-->

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code. Defines a document


Related study sets

Accounting: Chapter3 and Chapter 4 Review

View Set

APUSH: AP Exam Review Periods 1 & 2 & 3

View Set

Lord Of The Flies Quotes ~ Sympathy

View Set

Homeopathic & Naturopathic Medicine

View Set

6.13.W - Lesson: Europe: Economy and Environment Review

View Set

Chapter 13 - Research and Data Analysis

View Set

Важные слова турецкий

View Set