| The Basics... | |||
| Tags in General | |||
| Document Tags |
<HTML> ... <HEAD> ... <META> ...
<TITLE> ... <BODY> ... <!--Comment--> |
||
| <BODY> Structure |
Headings ... Paragraphs ...
Line Breaks ... <BODY attributes=" "> |
||
| Text Formats |
Bold and Italic
... Left-Center-Right ... <SMALL> ... <BIG> ... <FONT SIZE="x"> ... <FONT COLOR="#rrggbb"> ...<BLOCKQUOTE> |
||
| List Structures | |||
|
Images Anchors and Links |
|||
| ...Beyond the Basics | |||
|
Tables ... Imagemaps ... Frames ... Animations and Scripts under construction |
|||
|
Writing
Accessible
HTML: overcoming major WWW
barriers Web Designers Virtual Library: discussions, tutorials |
|||
|
...
Creating a
Web on Monon Back to ... Carl's Pages ... the MCCSC Pages |
|||
Full Page for Printing
HTML tags always appear inside pointed or angle brackets -- the "less than" and "greater than" symbols. Most HTML tags work in pairs around text and/or images: i.e. an opening tag (like <I>) to start the command and a closing tag (like </I>) to end the command. These tag pairs define containers. Any content within a container has the rules of that container applied to it.
| HTML Coding | Output |
|---|---|
| <I>10-Minute Guide to HTML</I> | 10-Minute Guide to HTML |
The opening "TAG," <I>, and the closing "SLASH TAG", </I>, contain the book title which has the Italic rule applied to it.
Thinking of
tag-sets as containers will help to keep tag-pairs nested within each
other, just as small cans are nested inside larger cans which can be
nested inside even larger cans. If containers are overlapped, the document
could be formatted in unexpected ways.
Back to...TOP
Back
to...Designing Web Pages
| HTML Coding | Output |
|---|
| <HTML> </HTML> |
The <META> tag used in this manner requires two "attributes": name and value.
| HTML Coding | Output |
|---|
| <META name="keywords" value="HTML, html,
HTML_ Tutorial, markup, MCCSC"> |
<META> is not a required tag.
This simple "Home Page Template," described in Creating a Web Page on Monon, contains a minimum of information but creates a technically valid Web page:
| HTML Coding | Output |
|---|---|
|
<HTML> <HEAD> <TITLE>Your Name's Page</TITLE> </HEAD> <BODY>Your Name </BODY> </HTML> |
In the browser title bar: Your Name's Page
In the browser window: Your Name |
| HTML Coding | Output |
|---|
| <!--Insert information about XYZ here --> |
Your note would go where the text Insert information about XYZ here appears. The most important part of the comment tag is the exclamation point: the <! defines the comment tag. Also, there is no slash or closing tag. The comment tag is an empty tag, not a container.
You can put comments pretty much anywhere, but you shouldn't put any HTML markup within a comment tag. Most browsers "choke" -- they either mess up or crash -- on this practice. While commenting is good programming technique, it is best used to describe that which is not made obvious by the context of the document. For example:
<!--This is the title -->is redundant and unnecessary. The HTML tags already identify the title. On the other hand, if you are creating a series of paragraphs or sections, comment tags can be used to remind the designer of where to add or insert information. Be judicious.
<TITLE>Your Name's Page</TITLE>
Forgot to include the exclamation point?
<--A comment tag -->would display exactly as typed: <--A comment tag -->
There is disagreement between browsers about the syntax of the "tagging" structure itself: Some will recognize
<!A comment tag >that is, without the "--" double dashes at beginning and end. At present, it is best to include the Standard Generalized Markup Language (SGML) pattern
<!--A comment tag -->in order to avoid the comment tag being displayed by the browser.
Back to...TOP
Back
to...Designing Web Pages