Inside the section, you may (and probably should) define all kinds of labels and information, including a title. Such definitions help you describe the document that follows, including the character sets it uses, metadata for search engines and page descriptions, and instructions to the web server that delivers your page, default style sheets, page refresh behavior, and lots more.
(Note: Metadata literally means “data about data” — in this case, it means information about the web page that follows.) To find out more about the HTML element, please visit these sites:
The section is where real content lives in HTML documents and where the vast majority of HTML elements and markup appears.
Document headings
Headings in HTML are usually denoted using elements through . These are different from an HTML document because they establish running heads within document content in the .
Text containers
The paragraph () element in HTML is probably the best known text container, but HTML supports all kinds of other text containers, too. Other such elements include the following (in alphabetical order):
: Represents an article, a piece of standalone content.
: Represents content related to surround content that could stand alone.
: Declares the navigation section in an HTML document. This element is usually reserved for tabs, buttons, or links to access major site components.
: Presents standard content or information at the top of a web page (banner, navigation aids, shared text, and so forth).
: Presents standard content or information at the bottom of a web page (copyright notices, minor navigation, feedback solicitation, and so on).
HTML also includes all kinds of ways to emphasize or identify text inside paragraphs or other text containers.
Lists
HTML supports easy definition of numerous kinds of lists, including bulleted (unordered) lists, numbered (ordered) lists, and even lists of definitions (which include terms and descriptions). You can nest lists within lists to create as many levels of hierarchy as you might need. (Nesting your lists is particularly useful when outlining a complex subject or modeling a table of contents with numerous heading levels.)
Tables
In addition to a variety of listing mechanisms, HTML includes markup for defining tables. Tables were really popular in the 1990s for managing complex page layouts; today they’re used primarily for tables of information, as they should be. Structure is part of how markup works, so within the definitions for an HTML table, you can
Distinguish between column heads, table data, and table footers or comments.
Manage how rows and columns are defined, with controls that let you span rows or columns for grouping and organization.
Cascading Style Sheets (CSS) markup
CSS markup may occur in separate style sheet documents, in a block of text inside an HTML document , in a style attribute for an individual HTML element within the document body, or in some combination of all three forms.
CSS provides detailed control over font selection, use of color for text and backgrounds, positioning of text and other elements on a page, and (as the old Ronco ad intones) much, much more!
You can build a website without using CSS (using CSS requires more work), but it’s the right tool for precise control over look and layout. Highly recommended!
Ed Tittel is a 28-year veteran of the computer industry. A seasoned author and consultant, Ed has more than 140 books to his credit.
Chris Minnick is an accomplished author, teacher, and programmer. Minnick authored or co-authored over 20 books, including titles in the For Dummies series. He has developed video courses for top online training platforms and he teaches programming and machine learning to professional developers at some of the largest global companies.