Hours: Mon-Thurs 10-9, Fri - Sat 10-5, Sun 1-5 |
|
BASIC WEB PAGE DESIGNBy Irene E. McDermott, Librarian, Crowell Public Library, City of San MarinoEssential Tags on a Web Page<HTML> <HEAD> <TITLE> Web Site Title</TITLE> </HEAD> <BODY> Contents of Web Site </BODY> </HTML> Headings: H1 ... H6The six heading elements, H1 through H6, denote section headings. H1 is large; H6 is the smallest. Documents should not skip levels (for example, from H1 to H3).
<HEAD>
<TITLE>
Sample Headings</TITLE>
</HEAD>
<BODY>
<H1>
Engine Tune-Up</H1>
<H2>Change The Oil</H2>
<H2>Change the Spark Plugs</H2>
<H3>Prepare the New Plugs</H3>
<H4>Remove the Guards</H4>
<H4>Check the Gap</H4>
</BODY>
</HTML>
The output is:
Engine Tune-UpChange The OilChange the Spark PlugsPrepare the New PlugsRemove the GuardsCheck the GapParagraphThe P element indicates a paragraph. Typically, paragraphs are surrounded by a vertical space.<H1>This Heading Precedes the Paragraph</H1> <P>This is the text of the first paragraph. <P>This is the text of the second paragraph. Although you do not need to start paragraphs on new lines, maintaining this convention facilitates document maintenance.</P> <P>This is the text of a third paragraph.</P> Line BreakThe BR element specifies a line break between words. For example: Pease porridge hot<BR> ListsHTML supports unnumbered and numbered lists. You can nest lists too, but use this feature sparingly because too many nested items can get difficult to follow.To make an unnumbered, bulleted list,
<UL> The output is:
<OL> Produces this formatted output:
Logical Versus Physical StylesLogical StylesEmphasis: EMThe EM element indicates an emphasized phrase, typically rendered as italics. For example:A singular subject <em>always</em> takes a singular verb. Strong Emphasis: STRONGThe STRONG element indicates strong emphasis, typically rendered in bold. For example:<strong>STOP</strong>, or I'll say "<strong>STOP</strong>" again! Physical StylesThe I element indicates italic text. For example:A singular subject <i>always</i> takes a singular verb.The B element indicates bold text. For example: <b>STOP</b>, or I'll say "<b>IT</b>" again! URLs and HyperlinksA URL is a Uniform Resource Locator, that is, a Web address. HTTP stands for HyperText Transport Protocol. A file called "computer.html" on HTTP server "www.yoyodyne.com" in directory "/pub/files" corresponds to this URL:http://www.yoyodyne.com/pub/files/computer.htmlThe chief power of HTML comes from its ability to link text and/or an image to another document or section of a document. A browser highlights the identified text or image with color and/or underlines to indicate that it is a hypertext link HML's single hypertext-related tag is <A>, which stands for anchor. To include an anchor in your document:
<A HREF="http://www.ncsa.uiuc.edu/General/Internet /WWW/HTMLPrimer.html"> NCSA's Beginner's Guide to HTML</A>This entry makes the text NCSA's Beginner's Guide to HTML a hyperlink to this document. ImagesThe IMG element refers to an image or icon via a hyperlink. Attributes of the IMG element:
<IMG SRC="triangle.gif" ALT="Warning:" ALIGN=TOP> Be sure to read this!Or, to make the image a hyperlink: <a href="http://machine/htbin/imagemap/sample"> <IMG SRC="sample.jpg"> </a> Escape Sequences (a.k.a. Character Entities)Character entities have two functions:
Three ASCII characters--the left angle bracket (<), the right angle bracket (>), and the ampersand (&)--have special meanings in HTML and therefore cannot be used "as is" in text. (The angle brackets are used to indicate the beginning and end of HTML tags, and the ampersand is used to indicate the beginning of an escape sequence.) To use one of the three characters in an HTML document, you must enter its escape sequence instead: < the escape sequence for < > the escape sequence for > & the escape sequence for & mailto:%20%20Every good Web page should include a link to the page author. You can make it easy for a reader to send electronic mail to a specific person or mail alias by including the mailto attribute in a hyperlink: <A HREF="mailto:%20%20emailinfo@host">Name</a>For example, enter: <A HREF="mailto:%20%20pubs@ncsa.uiuc.edu"> NCSA Publications Group</a> Also, mark every page with the date that you made or updated it. For more information, see A Beginner's Guide to HTML by the National Center for Supercomputing Applications (NCSA) http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimerAll.html |
Web Site Content
|
Return to Home Page |
|