
This product was created with support from the National Institute on Disability and Rehabilitation Research of the U.S. Permission is granted to use these materials in whole or in part for educational, noncommercial purposes provided the source is acknowledged. Spans cells across multiple rows.Ĭopyright © 2005-2023 by University of Washington. The scope attribute defines whether this is a row header or column header. Browsers typically display this element bold and centered within the table cell. When creating a table to display data, use this tag to differentiate the first row or column of cells as heading cells for all the other cells in the same column or row. Typically the footer contains information about the content, such as the author and a copyright statement. Opening TagĬontains introductory content for a page (e.g., a banner), or a section of a page.Ĭontains navigation content, such as a website navigation menu.Ĭontains the main content of the web page.Ĭontains content that is tangentially related to the main content of the page (often this is presented in a sidebar).Ĭontains the footer of a page, or of a section of a page. Prior to HTML5, developers just used tags for all blocks. These tags were designed to communicate the function of blocks of content that were common on many web pages.

HTML5 introduced several new tags called semantic tags.
#Definition html tags code
This is useful for making notes to yourself or to others who may view the source code of the web page. Anything between these tags is not displayed on the screen. List item, must be nested inside a list element such as a or Ĭomment.

Gives the contained text emphasis (usually as italics). H1 is the main heading, H2 is secondary, etc.Ī container for in-line content, such as content inside a paragraph. The section contains all the content of the web page. The second of two main sections of an HTML document. In HTML5, this is the only required tag other than the DOCTYPE declaration. This element is nested inside the section. The section is used to provide information about the document for use primarily by search engines and browsers. The first of two main sections of an HTML document. The final table contains tags that are used in markup of HTML tables, which are covered in Module 5 of this unit. Container tags (those that contain content) are presented in the second table, and non-container tags (those that stand alone) are presented in the third table. The second and third tables include tags that mark up the majority of web page content. The first table includes tags that control the overall structure of the web page. So, if you hit the space bar multiple times within a document, only one of those spaces will actually be displayed by the browser.Ĭommon HTML tags are presented below, organized into four tables based on their purpose. White space is ignored by web browsers.Even when coding in HTML, you should get in the habit of writing tags in lower case.


For example, the tag for a line break is. XHTML is more strict than HTML, and requires that all open tags must be closed, even if they're not container tags.
