Internet
|
HTML stands for HyperText Markup Language. It consists of the tags and codes used to tell browsers how to display the text and graphics that make up a web page. Because HTML goes across computer platforms, there will be some variation in display between systems. However, HTML allows these different computers to view the same document in approximately the same layout. There are lots of WYSIWYG HTML editors to make the task of web page creation easier, but these may not always give the expected results. A knowledge of the basic HTML tags will allow for more precise control over the look of the web page.
Web pages are text and graphics which have tags around them to specify what is displayed and how it is displayed. Many of the tags have functions similar to those of a word processor. The difference is that the web page may be viewed on different types of computers running a variety of browsers. Standard tags are used as a common language that all of these can understand. However, there is always some difference of interpretation. What you have designed will display a little bit differently on each computer.
Tags usually come in pairs, one to begin a section of text, and another with a slash in it to end the section. Pairs of tags bracket the entire document. Below is the basic layout of all web pages.
|
<HTML> <HEAD> <TITLE>Title which appears in the title bar of the browser at the top of the window.</TITLE> </HEAD> <BODY>This is where the actual content of the page resides. Other tags will be inserted here to make the text shape itself as desired.
</BODY> </HTML> |
Most tags are matched by end tags after the text that is to be affected. If more than one tag is applied to the same text, be careful to nest them from the inside out, e.g.,
<TAG2><TAG1>text</TAG1></TAG2>.
Do not mix up the order of the nesting, e.g., this is wrong:
<TAG1><TAG2>text</TAG1></TAG2>.

Note: the address of the graphic may be written out in full (http://pegasus.cc.ucf.edu/~kmontgom/bullettx.gif). This is known as an absolute address. Or, if the graphic is on the same directory of the same server as your web page and if your account allows access to it, you may put in a partial address consisting of just the filename, <IMG SRC="bullettx.gif"></IMG> or supplying the directory and filename (for images in another directory). This is known as a relative address.
Be careful not to overuse graphics. Too many can overpower the message.
Lists use special tags to format how the items in the list are displayed. Items may be shown in numbered, bulleted or definition type formats.
| HTML for an Ordered List is : | Displays as: |
|
<OL> <LI>Pick up laundry. </LI> <LI>Go to the bank.</LI> <LI>Go to the grocery store</LI> </OL> |
|
| HTML for an Unordered List is: | Displays as: |
|
<UL> <LI>Apples</LI> <LI>Pears</LI> <LI>Oranges</LI> </UL> |
|
| HTML for a Definition List is: |
| <DL> <DT>Breakfast</DT> <DD>Meal eaten at the beginning of the day, soon after waking.</DD> <DT>Lunch</DT> <DD>Meal eaten in the middle of the day, usually during a break in the workday.</DD> <DT>Dinner</DT> <DD>Meal eaten in the evening, usually after coming home from work.</DD> </DL> |
Displays as: |
|
HTML tables may look like obvious tables. Or, they may be used to place a color behind paragraphs, to create newspaper-style columns, or to force right, left and centered alignments of text. Tables can be complicated, but they greatly increase control over text and image placement. Special tags are used to create a table, although the tags discussed above may be used to format text within cells.
Table sections are dealt with one row at a time, working on cells from left to right.
This is the basic layout of a table. Rows and columns can be added or merged as needed. For the sake of clarity, a border has been added to this example.
<TABLE BORDER>This displays as:
| This text would appear in the 1st row, 1st column of the table | This would be the 1st row, 2nd column |
| 2nd row, 1st column | 2nd row, 2nd column |
| This row spans two columns | |
Note how the first row is defined with the opening <TR>, followed by the first data cell, <TD>text</TD>, the second data cell of the same row, and finally the closing </TR> tag. Only after this is the second row begun.
| This is a table with the border feature turned on, but no specification made about how thick the border is. |
| The border is shaded to give the illusion of depth. |
| Note that while the borders are wider, there is not an increase in shading depth as seen above when border size was adjusted. |
| This gives the table a flatter look. |
| This text avoids the crowded look. |
| This table should always be 600 pixels wide, regardless of how big or small the browser window is set. |
| The width of this table should change as the browser window is made more narrow. |
| This table is 200 pixels tall. |
| 1. Hightlight Paragraphs of Text |
HTML is:
<TABLE BORDERS=0 BGCOLOR="#FFFFCC" WIDTH=500 CELLPADDING=10>
<TR>
<TD>Web pages are text and graphics which have tags around them to specify what is displayed and how it is displayed. Many of the tags have functions similar to those of a word processor. The difference is that the web page may be viewed on different types of computers running a variety of different browsers. Standard tags are used as a common language that all of these can understand. However, there is always some difference of interpretation. What you have designed will display a little bit differently on each computer.
<P>Tags usually come in pairs, one to begin a section of text, and another with a slash in it to end the section. Pairs of tags bracket the entire document.</TD>
</TR>
</TABLE>
Displays as:
|
Web pages are text and graphics which have tags around them to specify what is displayed and how it is displayed. Many of the tags have functions similar to those of a word processor. The difference is that the web page may be viewed on different types of computers running a variety of different browsers. Standard tags are used as a common language that al of these can understand. However, there is always some difference of interpretation. What you have designed will display a little bit differently on each computer. Tags usually come in pairs, one to begin a section of text, and another with a slash in it to end the section. Pairs of tags bracket the entire document. |
| 2. Alignment of Text |
HTML is:
<TABLE BORDER="0">
<TR>
<TD ALIGN="RIGHT">Red: </TD>
<TD>255</TD>
</TR>
<TR>
<TD ALIGN="RIGHT">Green: </TD>
<TD>255</TD>
</TR>
<TR>
<TD ALIGN="RIGHT">Blue: </TD>
<TD>221</TD>
</TR>
</TABLE>
Displays as:
| Red: | 255 |
| Green: | 255 |
| Blue: | 221 |
Note: forces an extra space into the text. If this is not used, browsers will place only one space between words no matter how many are typed into the HTML.
| 3. Alternating Colored Rows |
HTML is:
<TABLE BORDER="0" CELLPADDING=10>
<TR>
<TD VALIGN="TOP" BGCOLOR="#C0C0C0" COLSPAN="4"><STRONG>MAIN LIBRARY LOCATION CODES</STRONG></TD>
</TR>
<TR BGCOLOR="FFFFCC">
<TD VALIGN="TOP"><STRONG>LUIS LOCATION DISPLAYS</STRONG></TD>
<TD VALIGN="TOP"><STRONG>LOC</STRONG></TD>
<TD VALIGN="TOP"><STRONG>LCN</STRONG></TD>
<TD VALIGN="TOP"><STRONG>SLOC</STRONG></TD>
</TR>
<TR>
<TD VALIGN="TOP">Atlas</TD>
<TD VALIGN="TOP">main</TD>
<TD VALIGN="TOP">ucf</TD>
<TD VALIGN="TOP">atls</TD>
</TR>
<TR BGCOLOR="#DFDFDF">
<TD VALIGN="TOP">Browsing</TD>
<TD VALIGN="TOP">main</TD>
<TD VALIGN="TOP">bro</TD>
<TD VALIGN="TOP"> </TD>
</TR>
<TR>
<TD VALIGN="TOP">General Collection</TD>
<TD VALIGN="TOP">main</TD>
<TD VALIGN="TOP">ucf</TD>
<TD VALIGN="TOP">gen</TD>
</TR>
<TR BGCOLOR="#DFDFDF">
<TD VALIGN="TOP">General Collection – OVERSIZE</TD>
<TD VALIGN="TOP">main</TD>
<TD VALIGN="TOP">ucf</TD>
<TD VALIGN="TOP">osze</TD>
</TR>
<TR>
<TD VALIGN="TOP">General Collection (periodical)</TD>
<TD VALIGN="TOP">main</TD>
<TD VALIGN="TOP">ucf</TD>
<TD VALIGN="TOP">per</TD>
</TR>
</TABLE>
Displays as:
| MAIN LIBRARY LOCATION CODES | |||
| LUIS LOCATION DISPLAYS | LOC | LCN | SLOC |
| Atlas | main | ucf | atls |
| Browsing | main | bro | |
| General Collection | main | ucf | gen |
| General Collection – OVERSIZE | main | ucf | osze |
| General Collection (periodical) | main | ucf | per |
The top row spans the four columns of the table. Light gray is used on alternate rows to make it easier to read across. The color in the white rows is not specified. These rows will be whatever color is designated for the page in the BODY tag. Note: the forces the background color to show in an empty data cell.
For more information on writing HTML, see the links listed at Authoring on the Internet.
kkm/2-04-98, Rev. 5-28-98, Rev. 8-7-98
Return to K.K. Montgomery's Homepage