<a> </a> Anchor tag, marks text as the start and/or destination of a link; requires the HREF or NAME attribute
- <href> hyperlink reference. Example:<a href=" www.site.com ">text link </a>
- <name> links in a document <a>. Example: <a href=#gohere>text link</a> <a name=gohere>.
<abbr><abbr>
- align
- class
- dir
- id
- lang
- style
- title
<acronym></acronym>
- align
- class
- dir
- id
- lang
- style
- title
<bdo> bi-directional override, expressly stops default direction for redirection.
- class
- dir
- id
- lang
- style
- title
<body></body> Divides the "meat" of the doc from the head.
- alink .
- bgcolor
- background
- link
- text
- vlink
<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
- class
- datetime
- dir
- id
- lang
- style
- title
<cite></cite>
- align
- class
- dir
- id
- lang
- style
- title
<code></cite>
- align
- class
- dir
- id
- lang
- style
- title
<dfn></dfn>
- align
- class
- dir
- id
- lang
- style
- title
<div></div> division, splits sections of a document.
- align
- class
- dir
- id
- lang
- style
- title
<!-- comment tag --> used to make comments that only appear in the source code, invisible in browser.
<em></em>
- align
- class
- dir
- id
- lang
- style
- title
<h1></h1> Heading Text (1-6), 1= largest, 4=normal, 6=smallest size.
- align
- class
- dir
- id
- lang
- style
- title
<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.
- dir - direction of text
- lang - language of text
- version
<img src="filename"> Insert Image.
<ins> Inserted text, used with <del> to show text to be added.
- cite
- class
- datetime
- dir
- id
- lang
- style
- title
<kbd><kbd>
- align
- class
- dir
- id
- lang
- style
- title
<nobr>/nobr> no break, often used with <wbr> and has no atributes.
<p></p> paragraph start & end.
- align
- class
- dir
- id
- lang
- style
- title
<pre> </pre> preformatted text, appears exactly as source.
<kbd><kbd>
- align
- class
- dir
- id
- lang
- style
- title
- width
<samp></samp>
<kbd><kbd>
- align
- clast;
- dir
- id
- lang
- style
- title
<strong></strong>
<kbd><kbd>
- align
- class
- dir
- id
- lang
- style
- title
<title> </title> Title of the doc, appears in the browser's titlebar.
- dir - direction of text
- lang - language of text
<var></var>
- align
- class
- dir
- id
- lang
- style
- title
<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.
- class - see Cascading Style Sheets.
- compact = (depreciated) squeeze text into smaller space.
- dir = direction of text.
- id = uniquely identify the list for hyperlink.
- lang = define the language used.
- start = change the begining value instead of 1.
- style - see Cascading Style Sheets
- title = label the list. Unlike id, the label does not have to be unique.
- type = A, cap letters; a, lowercase; I, roman numeral; i, roman lowercase; 1, number; list formats.
<ul></ul> Unordered (bulleted) list.
- class - see Cascading Style Sheets
- compact (depreciated) squeeze text into smaller space.
- dir = direction of text.
- id = uniquely identify the list for hyperlink.
- lang = define the language used.
- 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.
<li></li> List Item, used in conjunction with DL, UL & OL tags.
- class
- dir
- id
- lang
- style
- title
- type
- value
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.