| Single Full Line Indicates Designed Page Width and Standard Font Size |
|
Netscape Users should continue. |
Document Updated: |
Internet Explorer Users might contact Bill Gates. |
|
For those using Internet Explorer, you MUST set your FONT size to "medium" for this course. If you don't know how, then wait until you do to take this course. |
|
Author: Ronald Reed - [Freeback]
|
|
Preface
ñ÷õ
This course outline is designed for producing documents in HTML, the hypertext markup language used on the World Wide Web. This outline is intended to be an introduction to using HTML and creating files for the Web.
Links are provided to additional information. You should also check your local bookstore; there are many volumes about the Web and HTML that could be useful. Remember: you can print a copy of this outline for your personal use by using the Save as or Print feature in your browser. ¶
Table of Contents ñ÷õ <------- Click Table of Contents to align to this heading.>
Click the darkred textual phrase "Getting Started" to link to that section section. Click the green textual phrase "Part 2 Outline" to link to that section section in another file.
|
| ||||||||||||
| Single Full Line Indicates Designed Page Width and Standard Font Size |
This course outline assumes that you: know how to use the Windows operating system. know how to use a plain text editor, such as Notepad+, if you wish to prepare the exercises in the course. Do not use WORDPAD. Notepad.exe and Notepad+.exe are computer programs that emulates a typewriter, a machine no longer in use today. Wordpad.exe is a computer program the emulates a word processor. Please use Notepad+ or another simple straight text editor.. ¶
know how to use the Netscape browser, Internet/MS Explorer browser or some other Web browser. Some ISPs, like AOL-Online, have a version of one the major browsers embedded in their interface with the Web. ¶ have a general understanding of how the Internet works. have a understanding of how your ISP Web server works. ¶ have access to a Web server, or you want to produce HTML documents for personal use in local-viewing mode, like on your PC or on a Local Area Network (LAN). This means that you could develop HTML files for use off-line within the PC alone with the utilization of a browser on the PC. Of course, this means the usage of internet references would be meaningless. ¶ This course outline reflects the most current specification--HTML Version 4.0-- plus some additional features that have been widely and consistently implemented in browsers. Future versions and new features for HTML are under development. What an HTML Author Needs to Know ñ÷õ What does an HTML Author need to know? |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The head element identifies the first part of your HTML-coded document that contains the title.
|
The title element contains your document title and identifies its content in a global context. The title is typically displayed in the title bar at the top of the browser window, but not inside the window itself.
The above Title Block produces this Browser's Title Bar content.
Without the presence of a TITLE block the file's name is displayed.
The title is also what is displayed on someone's hotlist or bookmark list, so choose something descriptive, unique, and relatively short. A title is also used to identify your page for search engines. For example, you might include a shortened title of a book along with the chapter contents: NCSA Mosaic Guide (Windows): Installation. This tells the software name, the platform, and the chapter contents, which is more useful than simply calling the document Installation. Generally you should keep your titles to 64 characters or fewer. |
The second--and largest--part of your HTML document is the body, which contains the content of your document (displayed within the text area of your browser window). The tags explained below are used within the body of your HTML document.
|
HTML has six levels of headings, numbered 1 through 6, with 1 being the largest. Headings are typically displayed in larger and/or bolder fonts than normal body text. Headings are presented with a blank line preceding and following the output. The first heading in each document need not be tagged <H1>. The syntax of the heading element is:
The Heading tags automatically produce a blank (break) line before and after the text within the block. Also, the text is automatically presented with the bold font attribute. |
Unlike documents in most word processors, carriage returns in HTML files aren't significant. In fact, any amount of whitespace -- including spaces, linefeeds, and carriage returns -- are automatically compressed into a single space when your HTML document is displayed in a browser You don't have to worry about how long your lines of text are. Word wrapping can occur at any point in your source file without affecting how the page will be displayed. In the bare-bones example shown in the Minimal HTML Document section, the first paragraph is coded as
In the source file there are a couple of line breaks (i.e., carriage control and linefeed character) between the sentences. A web browser ignores these line breaks and starts a new paragraph only when it encounters another <P> tag. Important: You must indicate paragraphs with <P> elements. A browser ignores any indentations or blank lines in the source text. Without <P> elements, the document becomes one large paragraph. (One exception is text tagged as "preformatted," which is explained below.) For example, the following would produce identical output as the first bare-bones HTML example:
NOTE: The </P> closing tag may be omitted. This is because browsers understand that when they encounter a <P> tag, it means that the previous paragraph has ended. However, since HTML now allows certain attributes to be assigned to the <P> tag, it's generally a good idea to include it. Using the <P> and </P> as a paragraph container means that you can center a paragraph by including the ALIGN=alignment attribute in your source file.
|
HTML supports unnumbered, numbered, and definition lists. You can nest lists too, but use this feature spareingly because too many nested items can get difficult to follow. Unnumbered Lists To make an unnumbered, or "bullet" list, Below is a sample three-item "unnumbered" list:
Numbered (Ordered) Lists A numbered list (also called an ordered list, from which the tag name derives) is identical to an unnumbered list, except it uses <OL> instead of <UL>. The items are tagged using the same <LI> tag.
Here are some additional examples of "ordered" lists. Remember ordered list are only "numberic" by default.
Definition Lists A definition list (coded as <DL>) usually consists of alternating a definition term (coded as <DT>) and a definition definition (coded as <DD>). Web browsers generally format the definition on a new line and indent it. The following is an example of a definition list:
The COMPACT attribute can be used routinely in case your definition terms are very short. If, for example, you are showing some computer options, the options may fit on the same line as the start of the definition.
The output looks like:
Nested Lists (Illustrated with unnumbered lists) Lists can be nested. You can also have a number of paragraphs, each containing a nested list, in a single list item.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Use the<PRE> tag (which stands for "preformatted") to generate text in a fixed-width font. This tag also makes spaces, new lines, and tabs significant -- multiple spaces are displayed as multiple spaces, and lines break in the same locations as in the source HTML file. This is useful for program listings, among other things. For example, the following lines:
The <PRE> tag can be used with an optional WIDTH attribute that specifies the maximum number of characters for a line. WIDTH also signals your browser to choose an appropriate font and indentation for the text. Hyperlinks can be used within <PRE> sections. You should avoid using other HTML tags within <PRE> sections, however. Note that because <, >, and & have special meanings in HTML, you must use their escape sequences (<, >, and &, respectively) to enter these characters. See the section Escape Sequences for more information. |
|