The document head describes the page contents on an internet site list. Nothing in the head will appear on the page! To begin the page, type <html> at the top of the page, and on the next line, type <head> Next, type <title> and then the page title and any description of the page, followed by </title> and </head>. Essentially, </> is used to close any html command given.
The body of the web page contains all of the material seen on the page itself. Begin the body with the command <body>. Within the body tag, include information like background color, text color, link color, and background textures or pictures, should you decide to include them (again, this is not a good idea unless you have a fast connection speed). For example, typing
creates a page with a white background, red text, and blue links.
Start each paragraph with the tag <p>, then begin typing. Creating headlines is easy. To denote the size and importance of a headline, tag the headlines "h1", "h2", "h3", et cetera. Within the headline tag, you can choose the alignment of the headline; the default alignment is left, but you can also choose right, center, or justified. For example, type
to get a size h2, right justified, italicized headline reading "Llamas".
If you want to skip a line, the tag is <br>, for line break. If you want a horizontal line across the page, type <hr> for horizontal rule. This tag may be embellished to delineate the line thickness in pixels, how far across the page the line extends, and the alignment of the line. Another example coming:
Lists can be of three types: definition lists <dl>, ordered lists <ol>, and unnumbered lists <ul>. A definition list sets up a listing of terms and their definitions. The listed terms are tagged <dt>, and their definitions are tagged <dd>. End the list by typing <dl>. Ordered lists and unnumbered lists differ in that ordered lists have numbered items, and unnumbered lists have bulleted items. In both cases, items are tagged < li> (for line item), and each list is ended with either </ol> or </ul>. Here are examples of first a definition list, then an ordered list and an unnumbered list:
Links provide the connection between your homepage and its subpages, or even to other websites. The link command is <a href="link"> linked words </a>, where link is the file, web site, or email address the link will connect to, and linked words are the text that will be highlighted as the link connection. For example,
Part of the web's appeal is the ability to transmit pictures, sounds, and even video clips in addition to text. Unfortunately, these files should only be used with high speed connections - otherwise, visitors will spend three hours downloading your site simply because of the memory required to support the image and audio files. Should you decide to use any of these, however, the commands are simple. For an image, the tag is <IMG SRC="picture.file">, where "picture.file" is the name of the image with its extension. Most extensions will be either .jpeg or .gif. Also, within the image source tag, you may include height and width measurements in pixels (the default size is the size of the original picture). For example,
A sound file is used just like a link. For example,
With this introduction to html, you should have a fairly broad spectrum of commands to create a page specifically tailored to your ideas and capabilities.