| Home Homework Resources Slides |
Continuing Studies cs21 Beginning Web Site Design |
|||||||||||||||||||||||||||||||
|
Basic HTML TagsStructural Tags <HTML> <HEAD> <BODY> <TITLE> Sample Structure
<HTML> Layout TagsContainersHeader TagsUsed for marking sections and sub-sections in a document<H1> Header 1 </H1> <H2> Header 2 </H2> <H3> Header 3 </H3> <H4> Header 4 </H4> <H5> Header 5 </H5> <H6> Header 6 </H6> Header 1Header 2Header 3Header 4Header 5Header 6Paragraphs <P> Container Attributes Paragraphs can be modified with the following attribute:
align=left/center/right <P
ALIGN="LEFT"> <P
ALIGN="CENTER"> <P
ALIGN="RIGHT"> Related Tags<BR>Line Break This allows text within a paragraph or header to stop and start on the very next line. Line Break Attributes <BR CLEAR="ALL"> This allows the line break to "clear" any alignment features that might be carrying over and affecting the look of a page. It is especially useful after aligned graphics -- see GRAPHICS. <HR> Horizontal
Rule Horizontal Rule Attributes NOSHADE WIDTH="xx%/xx" SIZE="xx" ALIGN="left/center/right" Text Formatting TagsBasic Text Formatting Styles
ListsUnnumbered
Numbered
Definition
LinksThe ANCHOR tag is used to link from one document to another or from one part of a document to another part of the same document. Because of the way URL (Uniform Resource Locators) work, one can also specify an email link.Basic Links<A HREF="http://www.stanford.edu/">Stanford University</A>Stanford University Inter-Document Links<A HREF="http://www.stanford.edu/#spot">Point to Spot</A>Point to Spot Specifying a Point in a Document<A NAME="spot">Spot</A>Spot Email Link<A HREF="mailto:sample@stanford.edu">Sample Email Link</A>Sample Email Link Graphics<IMG SRC="http://www.stanford.edu/group/csp/cs21/raincloud.jpg">![]() Graphics Attributes alt="text text text" (type in a description of the graphic) This attribute is used as a courtesy to those who cannot see graphics for various reasons. Keep the description brief but make sure it is a good description of the graphic. The text will appear if the user has graphics turned off on their browser or if they are using a web page reader for the blind.width="xx" (specify pixels) height="xx" (specify pixels) These two attributes should be used to specify the actual size of a graphic. This allows the webpage to load more quickly. They can also be used to display a smaller version of the graphic. Be aware that this does not change the size or download time of the graphic. It should be used with care.border="xx" (specify pixels) Specify a value of 0 (zero) if you want no border to show up. This attribute is especially useful if you are creating a linked button (ie. a graphic that is also a link). hspace="xx" (specify pixels) vspace="xx" (specify pixels) These two attributes put a buffer around the graphic. A value of "5" is useful when you have text and graphics butted up against each other. Hspace defines the buffer horizontally and vspace defines the buffer vertically.align=top/middle/bottom/right/left This is the most complicated attribute for graphics. It is used to specify how text and graphics will line up with each other. For more information on HTML Tags, visit the Bare Bones Guide to HTML (http://werbach.com/barebones/barebone.html).
|
||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||
| ©
2000, Mark Branom All rights reserved. Created: March, 2000 |
||||||||||||||||||||||||||||||||