0% found this document useful (0 votes)
110 views8 pages

HTML Tag Definitions Guide

The document describes several HTML tags and their purposes. It provides a table with the tag name, description, and DTD (document type definition) for common tags like <p>, <a>, <abbr>, <acronym>, and <address>. The DTD specifies the rules for the markup language to allow browsers to render the content correctly.

Uploaded by

LuisCarlos
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views8 pages

HTML Tag Definitions Guide

The document describes several HTML tags and their purposes. It provides a table with the tag name, description, and DTD (document type definition) for common tags like <p>, <a>, <abbr>, <acronym>, and <address>. The DTD specifies the rules for the markup language to allow browsers to render the content correctly.

Uploaded by

LuisCarlos
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

Tag Description DTD

<!--...--> <!--This is a STF


comment. Comments
are not displayed
in the browser-->

<p>This is a
paragraph.</p>
<!DOCTYPE> <!DOCTYPE html
PUBLIC
"-//W3C//DTD XHTML
1.0
Transitional//EN"
"[Link]
/TR/xhtml1/DTD/xht
ml1-
[Link]">
<html>
<head>
<title>Title of
the
document</title>
</head>

<body>
The content of the
document......
</body>

</html>
Definition and
Usage
The doctype declaration
should be the very first
thing in an HTML
document, before the
<html> tag.

The doctype declaration


is not an HTML tag; it is
an instruction to the
web browser about
what version of the
markup language the
page is written in.

The doctype declaration


refers to a Document
Type Definition (DTD).
The DTD specifies the
rules for the markup
language, so that the
browsers can render
the content correctly.

<a> <a STF


href="[Link]
[Link]">Visi
t [Link]!
</a>
Definition and
Usage
The <a> tag defines an
anchor. An anchor can
be used in two ways:

To create a link to
another
document, by
using the href
attribute
To create a bookmark
inside a
document, by
using the name
attribute
The a element is
usually referred to as a
link or a hyperlink.

The most important


attribute of the a
element is the href
attribute, which
indicates the link’s
destination.

By default, links will


appear as follows in all
browsers:

An unvisited link is
underlined and
blue
A visited link is
underlined and
purple
An active link is
underlined and
red
<abbr> The <abbr STF
title="World
Health
Organization">WHO<
/abbr> was founded
in 1948.

The <abbr> tag


describes an
abbreviated phrase.

By marking up
abbreviations you can
give useful information
to browsers,
spellcheckers, screen
readers, translation
systems and search-
engines.

<acronym> Can I get this STF


<acronym title="as
soon as
possible">ASAP</ac
ronym>?

The <acronym> tag


defines an acronym.

An acronym can be
spoken as if it were a
word, example NATO,
NASA, ASAP, GUI.

By marking up
acronyms you can give
useful information to
browsers,
spellcheckers, screen
readers, translation
systems and search-
engines.

<address> <address> STF


Written by
[Link]<br /
>
<a
href="[Link]
[Link]">Email
us</a><br />
Address: Box 564,
Disneyland<br />
Phone: +12 34 56
78
</address>
Definition and
Usage
The <address> tag
defines the contact
information for the
author or owner of a
document. This way,
the reader is able to
contact the document's
owner.

The address element is


usually added to the
header or footer of a
webpage.

<applet> <applet TF
code="[Link]
s" width="350"
height="350">
Java applet that
draws animated
bubbles.
</applet>
The <applet> tag
defines an embedded
apple

<area /> Defines an area inside STF


an image-map
<b> Defines bold text STF
<base /> Defines a default STF
address or a default
target for all links on a
page
<basefont /> Deprecated. Defines a TF
default font, color, or
size for the text in a
page
<bdo> Defines the text STF
direction
<big> Defines big text STF
<blockquote> Defines a long STF
quotation
<body> Defines the document's STF
body
<br /> Defines a single line STF
break
<button> Defines a push button STF
<caption> Defines a table caption STF
<center> Deprecated. Defines TF
centered text
<cite> Defines a citation STF
<code> Defines computer code STF
text
<col /> Defines attribute values STF
for one or more
columns in a table
<colgroup> Defines a group of STF
columns in a table for
formatting
<dd> Defines a description of STF
a term in a definition
list
<del> Defines deleted text STF
<dfn> Defines a definition STF
term
<dir> Deprecated. Defines a TF
directory list
<div> Defines a section in a STF
document
<dl> Defines a definition list STF
<dt> Defines a term (an STF
item) in a definition list
<em> Defines emphasized STF
text
<fieldset> Defines a border STF
around elements in a
form
<font> Deprecated. Defines TF
font, color, and size for
text
<form> Defines an HTML form STF
for user input
<frame /> Defines a window (a F
frame) in a frameset
<frameset> Defines a set of frames F
<h1> to <h6> Defines HTML headings STF
<head> Defines information STF
about the document
<hr /> Defines a horizontal STF
line
<html> Defines an HTML STF
document
<i> Defines italic text STF
<iframe> Defines an inline frame TF
<img /> Defines an image STF
<input /> Defines an input control STF
<ins> Defines inserted text STF
<isindex> Deprecated. Defines a TF
searchable index
related to a document
<kbd> Defines keyboard text STF
<label> Defines a label for an STF
input element
<legend> Defines a caption for a STF
fieldset element
<li> Defines a list item STF
<link /> Defines the relationship STF
between a document
and an external
resource
<map> Defines an image-map STF
<menu> Deprecated. Defines a TF
menu list
<meta /> Defines metadata about STF
an HTML document
<noframes> Defines an alternate TF
content for users that
do not support frames
<noscript> Defines an alternate STF
content for users that
do not support client-
side scripts
<object> Defines an embedded STF
object
<ol> Defines an ordered list STF
<optgroup> Defines a group of STF
related options in a
select list
<option> Defines an option in a STF
select list
<p> Defines a paragraph STF
<param /> Defines a parameter for STF
an object
<pre> Defines preformatted STF
text
<q> Defines a short STF
quotation
<s> Deprecated. Defines TF
strikethrough text
<samp> Defines sample STF
computer code
<script> Defines a client-side STF
script
<select> Defines a select list STF
(drop-down list)
<small> Defines small text STF
<span> Defines a section in a STF
document
<strike> Deprecated. Defines TF
strikethrough text
<strong> Defines strong text STF
<style> Defines style STF
information for a
document
<sub> Defines subscripted STF
text
<sup> Defines superscripted STF
text
<table> Defines a table STF
<tbody> Groups the body STF
content in a table
<td> Defines a cell in a table STF
<textarea> Defines a multi-line STF
text input control
<tfoot> Groups the footer STF
content in a table
<th> Defines a header cell in STF
a table
<thead> Groups the header STF
content in a table
<title> Defines the title of a STF
document
<tr> Defines a row in a table STF
<tt> Defines teletype text STF
<u> Deprecated. Defines TF
underlined text
<ul> Defines an unordered STF
list
<var> Defines a variable part STF
of a text
<xmp> Deprecated. Defines
preformatted text

You might also like