Preparing Web Pages - HTML Preparing Web Pages with HTML Nancy McCracken NPAC Syracuse University 111 College Place Syracuse NY 13244-4100 May 1996 Click here for body text Preparing Web Pages with HTML HTML stands for HyperText Markup Language. It is defined using SGML (Standard Generalized Markup Language) and provides tags to identify document structure for later formatting and links to other documents. This presentation will cover the most commonly used or important features of HTML; more details can be found in the references. Topics will include formatting text on a web page and creating links to other web pages using images and imagemaps creating forms creating tables creating frames Features will be included from both HTML2.0 and HTML3.0, and the enhancements from the Netscape 1.1 and Netscape2.0 browsers. References: HTML and CGI Unleashed, John December and Mark GInsburg. http://www.netscape.com/toc.html - Various documents on html features, under the Assistance section of this Table of Contents from Netscape. HyperText Markup Language (HTML) is the formatting language used for creating hypertext documents on the World Wide Web, which can be displayed by Web browsers (sometimes referred to as viewers) such as Mosaic. HTML is very simple - a minimum of formatting functions consists of formatting commands called tags in a text file tags are in < > brackets most are paired for beginning and end: . . . not case sensitive: is the same as <title> Some tags have attributes within the brackets <tag attribute1=value1 attribute2=value2 . . . > In general, numeric values are just given as numbers, while text values are put into quotes. Creating a Web Page A web page has tags to show the different parts and to identify its purpose on the Web. Each web page is one Unix, Mac or PC file. The top level file (sometimes called the "home page" is usually named "index.html". You can actually call it anything.html, but if it's index.html, your URL can be shorter. The text of each web page is surrounded with html, head, body and title tags: <html> <head> <title>The Oriental Rug Company in Syracuse NY . . . {all your other html, text, links and images will go here} . . . The title does not actually appear in your homepage, but is an English version of your URL - it serves as a identifier to the WWW. Browers can show the title of the page they are viewing in the header bar and save it in the bookmarks. Formatting a Web Page: Headers and Paragraphs Headers come in different sizes, from

very large down to

very small. For example, a page might start with a large header of the name of the company, followed by a smaller header with a short description:

Oriental Rug Company

Imported Handmade Oriental Rugs

Blank space and line breaks in your file are ignored in HTML. It will format the lengths of your lines to whatever will fit in the window, disregarding however you may have typed it. To separate two sections of text, you can add a line break tag,
, with no blank lines, or a paragraph tag,

, which has extra blank lines. Every year we stock thousands of rugs in all patterns which we obtain in our annual rug-buying expeditions to the markets of the Middle East.

. . . Formatting a Web Page: Lists HTML can format three types of lists: an ordered list

    , an unordered list