These specify the location of a resource for a hypertext link:Uniform Resource Locators (URLs)
http: |
// |
www.isprs.org/ |
samples/ |
sample_page.html |
?searchterm |
one of... |
Internet server hostname |
Path |
Filename and filetype |
Options: |
|
Note mailto: and news: have no double slash. |
|||||
| HTML-code | Outlook |
<HTML>
<HEAD>
<!-- A sample document -->
<TITLE>Document title</TITLE>
</HEAD>
<BODY>
<H1>Top-level heading</H1>
<P>First paragraph of text.</P>
<UL> <!-- A bulleted list -->
<LI><P>First list item</P></LI>
<LI><P>Second list item, with a hypertext
<A HREF="../isprs.html">link</A> to another
file.</P></LI>
</UL>
<H2>Second-level heading</H2>
<P>Another paragraph, <IMG ALT="ISPRS logo"
ALIGN="bottom" SRC="../images/logo_new_small.gif"> with an
illustration.</P>
<HR>
<ADDRESS>
Last change: 08-Dec-1998 by Fabio Remondino
|
Top-level headingFirst paragraph of text.
Second-level headingAnother paragraph, Last change: 08-Dec-1998 by Fabio Remondino Problems and/or queries, send e-mail: markus.englich@ifp.uni.stuttgart.de |
Users should be aware that HTML is an evolving language, and
different World-Wide Web browsers may recognize slightly different sets of
HTML elements.
For general information about HTML including plans for new versions, see
www.w3.org/hypertext/WWW/MarkUp/MarkUp.html.
An HTML element may include a name, some attributes and some
text or hypertext, and will appear in an HTML document as
The structure of a Uniform Resource Locator (URL) may be expressed as:
Strictly speaking, the
For general information about HTML, see
http://www.w3.org/TR/html401/
Demonstration of Basic and Advanced HTML Tags, see
http://www2.utep.edu/~kross/tutorial/
For an HTML Tutorial, see
http://www.htmlprimer.com/
HTML quick reference
The HyperText Markup Language (HTML) is composed of a set of elements
that define a document and guide its display.
This document presents a concise reference guide to HTML,
listing the most commonly used elements from Versions 1 and 2 of HTML,
and giving a brief description of those elements.
For specification of HTML language see
www.w3.org/TR/REC-html40/
Introduction
For example:
<tag_name> text </tag_name>
<tag_name attribute_name=argument>
text </tag_name>, or just
<tag_name>
and
<title> My Useful Document </title>
An HTML document is composed of a single element:
<a href="argument"> text </a>
that is, in turn, composed of head and body elements:
<html> . . . </html>
and
<head> . . . </head>
To allow older HTML documents to remain readable, <body> . . . </body>
<html>,
<head>, and <body> are actually
optional within HTML documents.
Elements usually placed in the head element
<isindex>
<title> . . . </title>
<base href="URL"><link rev="RELATIONSHIP" rel="RELATIONSHIP" href="URL">
rel attribute specifies the
relationship between the HTML file and the Uniform Resource
Locator (URL).
The rev attribute (for "reverse")
specifies the relationship between the URL and the HTML file.
For example, <link rev="made" href="URL">
indicates that the file maker or owner is
described in the document identified by the URL.
(Note that link tags are not displayed on the screen as part of
the document. They define static relationships, not hypertext links.)
Elements usually placed in the body element
The following sections describe elements that can be used in the body of the document.Text Elements
<p><pre> . . . </pre>
<pre> tag can be used to include tables in
documents.
<listing> . . . </listing>
<xmp> . . . </xmp>
<pre> except no embedded tags will
be recognized.
<plaintext>
<pre> except no embedded tags will
be recognized, and since there is no end tag, the remainder of the
document will be rendered as plain text. This is an archaic tag.
Note that some browsers actually recognize a </plaintext>
tag, even though it is not defined by the standard.
<blockquote> . . . </blockquote>
Hyperlinks or Anchors
An anchor must include a <a name="anchor_name"> . . .
</a><a href="#anchor_name"> . . .
</a><a href="URL"> . . .
</a><a href="URL#anchor_name"> . . .
</a><a href="URL?search_word+search_word"> . . .
</a>name or href attribute,
and may include both. There are several optional attributes, but they
are rarely encountered.
where the possible resource types include: file,
http, news, gopher,
telnet, ftp,
and wais, among others, and each resource type relates to
a specific server type. Since each server performs a unique function,
each resource type requires different additional_information.
For example http and gopher URLs will
have a structure like:
The colon followed by an integer TCP port
number is optional, and is used when a server is listening on a
non-standard port.
anchor_name
and search_word information included
in the name and href attributes in the examples above are part of the URL.
They are presented as separate entities for simplicity. A more complete description of URLs is presented in
http://www.w3.org/hypertext/WWW/Addressing/Addressing.html
Headers
<h1> . . .
</h1> Most prominent header
<h2> . . .
</h2>
<h3> . . .
</h3>
<h4> . . .
</h4>
<h5> . . .
</h5>
<h6> . . .
</h6> Least prominent header
Logical Styles
<em> . . .
</em><strong> . . .
</strong><code> . . .
</code><samp> . . .
</samp><kbd> . . .
</kbd><var> . . .
</var><cite> . . .
</cite>Physical Styles
<b> . . . </b><i> . . . </i><u> . . . </u><tt> . . . </tt>Definition list/glossary: <dl>
The <dl>
<dt> First term to be defined
<dd> Definition of first term
<dt> Next term to be defined
<dd> Next definition
</dl>
<dl> attribute compact can be used to
generate a definition list requiring less space.Present an unordered list: <ul>
<ul>
<li> First item in the list
<li> Next item in the list
</ul>
Present an ordered list: <ol>
<ol>
<li> First item in the list
<li> Next item in the list
</ol>
Present an interactive menu: <menu>
<menu>
<li> First item in the menu
<li> Next item
</menu>
Present a directory list of items: <dir>
Items should be less than 20 characters long.<dir>
<li> First item in the list
<li> Second item in the list
<li> Next item in the list
</dir>
Entities
&keyword;
& specifies the
ampersand ( & ),
and the entity < specifies the less than
( < ) character.
Note that the semicolon
following the keyword is required, and the keyword must be one from the
lists presented in:
http://www.w3.org/pub/WWW/MarkUp/html-spec/html-spec_9.html#SEC9.7
&#ascii_equivalent;
Miscellaneous
<!-- text --><address> . . .
</address><img src="URL" alt="Alternate Text">
src
alt
align
align can be one of top,
middle, or bottom.
ismap
ismap is present and the image tag is within
an anchor, the image will become a "clickable image". The pixel
coordinates of the cursor will be appended to the URL specified in the
anchor if the user clicks within the ismap image. The resulting URL will
take the form "URL?m,n" where m and n are integer coordinates, and the
URL will specify the location of a program that will examine
the pixel coordinates, and return an appropriate document.
<br>
<hr>
Additional Information
For a tutorial introduction to HTML see:
http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html.