Skip to Page Content | Navigation for Module


Navigation for Module 9: HTML
Page 3 of 16

  1. * Basic Concepts

Basic Concepts of HTML

Before getting into the details of making HTML documents accessible, an understanding of basic HTML concepts is needed. If you are familiar with the general structure and coding of HTML , you can skip this page and move onto the the first common HTML element to be covered, Making Images Accessible.

Tags, Attributes, and Elements

There are several versions of HTML that have evolved since its inception in 1989; HTML 4.0 is the latest and most prevalent version. HTML code, or mark-up, consists of tags, which are a set of symbols defined in HTML to have special meaning.

Tags start with a less-than sign (<) followed by a keyword, and conclude with a greater-than sign (>). (These signs are known as angle brackets.) For example: <img>, <form>, <table> are all tags and respectively represent images, forms, and tables.

Note: Tags are not case-sensitive, so <img>, <Img>, and <IMG> all have the same meaning.

There are two types of tags:

An attribute is a word separated from the keyword by a space which generally requires a value in quotes preceded by an equal sign, such as <table width="90%"> (which calls for a table that is 90 percent of the width of the screen display.)

When many web developers talk about tags, their preferred term is "element". An HTML element defines the structures and behaviors of the different parts of a document. Most elements consist of three parts:

For example: <p>This is a paragraph</p> creates a paragraph element.

Empty elements have no content and never have end tags. Some common empty elements are:

In this module, you will be taught the proper use of the most common HTML elements along with any necessary accessibility-related attributes of the start tag.

Basic Structure of an HTML Document

Every HTML document consists of four basic structure elements: html, head, title, and body. Each of these is explored in detail below:

  1. Start tag: <body> - Sixth tag, follows the </head> tag to denote starting the content of the document.
  2. End tag: </body> - Next to last tag in the document, follows the end of the document content and precedes the </html> tag.

Code sample for basic structure of an HTML document:

<html>
  <head>
    <title>
Put the title of the document here. Making certain there are no extra spaces between the title itself and the title tags. </title>
  </head>

  <body>
     
Put the document content here.
  </body>
</html>

The next page presents information on the use of images in HTML.

Top of Page arrow up
       Page 3


 
-- END OF PAGE