Structure Tags

Common Elements    Lists    Unclosed    Depreciated    Executables    Attibutes

<a> </a> Anchor tag, marks text as the start and/or destination of a link; requires the HREF or NAME attribute

<abbr><abbr> <acronym></acronym> <bdo> bi-directional override, expressly stops default direction for redirection. <body></body> Divides the "meat" of the doc from the head.
<br /> (space /) Line Break. With HTML you don't need the space / but it's needed for XHTML.

<del> shows text as stike through, to be deleted. Used with <ins>.
<cite></cite> <code></cite> <dfn></dfn> <div></div> division, splits sections of a document.
<!-- comment tag --> used to make comments that only appear in the source code, invisible in browser.

<em></em> <h1></h1> Heading Text (1-6), 1= largest, 4=normal, 6=smallest size.
<head></head> Put doc discriptions like title here. <hr /> Horizontal Rule. HR attributes:
<html> </html> Identifies the doc as HTML, needed at begining and end of every HTML doc.
<img src="filename"> Insert Image.

<ins> Inserted text, used with <del> to show text to be added.
<kbd><kbd> <nobr>/nobr> no break, often used with <wbr> and has no atributes.

<p></p> paragraph start & end.
<pre> </pre> preformatted text, appears exactly as source.

<kbd><kbd>
<samp></samp>

<kbd><kbd> <strong></strong>

<kbd><kbd> <title> </title> Title of the doc, appears in the browser's titlebar. <var></var> <wbr /> when used with <nobr> advises potential line break if needed.No attributes.


Common Elements

Every HTML document needs (at least common to all HTML documents) the following:
<html> starts the document
<head> divides the doc description from the actual doc
<title>Title of doc, appears in browser window bar</title></head>
<body>
The text of the document.
</body>
</html>
The order of tags and /endtags should be "nested", notice how html starts and /html ends the document.


Lists

<dl></dl> Definition List.

class
compact
dir
id
lang
style
title
<dt></dt> Definition Title used only in a definition list as a decription.
class
dir
id
lang
style
title
<dd></dd> Definition Description used only in a definition list which indents text.
class
dir
id
lang
style
title <ol></ol> Ordered (numbered) list.
  1. class - see Cascading Style Sheets.
  2. compact = (depreciated) squeeze text into smaller space.
  3. dir = direction of text.
  4. id = uniquely identify the list for hyperlink.
  5. lang = define the language used.
  6. start = change the begining value instead of 1.
  7. style - see Cascading Style Sheets
  8. title = label the list. Unlike id, the label does not have to be unique.
  9. type = A, cap letters; a, lowercase; I, roman numeral; i, roman lowercase; 1, number; list formats.
<ul></ul> Unordered (bulleted) list. <li></li> List Item, used in conjunction with DL, UL & OL tags.


Unclosed Tags - tags that have no /end tag.This gets significant because XHTML demands end tags for everything.
<area>
<base>
<basefont>
<br>
<col>
<frame>
<hr>
<img>
<input>
<isindex>
<link>
<meta>
<param>
<wbr>


Depreciated Tags - Tags that may still work, but are being phased out.

<center> - being replaced with <div align=center> or various tags with align=center attribute abilities.
<basefont>
<font> - change a font characteristic, now used in style sheets.
<listing> - show text without any formatting.
<plaintext> - show text without any formatting.
<xmp> - show text without any formatting.


Attributes - change the way tags work, but aren't tags themselves.

  • alink - currently selected link color.
  • bgcolor - back ground color by name or a hex value.
  • background - background image as a page's background.
  • class - see Cascading Style Sheets
  • compact (depreciated) squeeze text into smaller space.
  • dir - direction of text
  • noshade - rule without a shadow.
  • id = uniquely identify the list for hyperlink.
  • lang - language of text
  • link - link color, using a name or a hex value.
  • style - see Cascading Style Sheets.
  • title = label the list. Unlike id, the label does not have to be unique.
  • type - specify disc,circle,square bullet symbol.
  • size - the size (height) of a rule.
  • text - text color, using a name or a hex value
  • version
  • vlink - followed links color, using a name or a hex value.
  • width - the width of a rule, in percentage or absolute value.
  • class - see Cascading Style Sheets.
  • start = change the begining value instead of 1 (used in .
  • style - see Cascading Style Sheets
  • title = label the list. Unlike id, the label does not have to be unique. 1