PLC’s Technology Workshop

HyperText Markup Language (HTML)

Language Resource and Research Center (LaRRC)

Step - 1

Let us get to the server space where HTML files are stored:

At this point see if you have ‘html’. If you do, you have a html directory and continue to Step - 2. Otherwise type the following - followed by <enter key>. Don’t type what is within parenthesis.

If you use ccat.sas.upenn.edu, do the following

vii) mkdir html (This will make a directory called html

viii) chmod o=rx html (This will give read and execute permission to everyone.

chmod means ‘change mode’).

skip the steps below and go to Step - 2

If you are using mail.sas.upenn.edu or dolphin type:

makehome

This should create a html directory and a file called index.html with some text in it.

STEP - 2

Let us make a sample html file using the text processor pico

<html>

<title>This is my homepage </title>

<body>

<hr>

<h1><b>Welcome to my homepage</b></h1>

<hr>

</body>

</html>

iv) Now: Press control key (ctrl) and x

(This will ask whether you want to save the document. Press y)

(Now it will ask for file name with test.html on the prompt. Press enter key)

v) type: ls This will list the files you have in the directory html. See if you

have test.html

vi) type: chmod o=r This gives permission for everyone to read.

Step - 3

Let us use ‘NetScape Gold’ to view and edit sample.html

Choose a folder (public folder at MMETS) and press ‘ok’

v) You can now do all the editing such as: making bold face, giving background color, italics, centering text, making tables, inserting images, giving links to other pages etc.

vi) After you edit your document, Save your document from File menu

Step - 4

Let us use ‘fetch’ to upload your document back to the server.

(This should replace your old file with the new one)At this point you can "reload’ the document in Netscape and the new file should load.

step - 5

Let us learn more about HTML tags

HTML tags are made using < and > . Whatever given within two ankled brackets are commands. Every command should end with </..>, like <html>xxxxxxx </html>. The words given within < > are not case sensitive. So, <TITLE> and <tItle> are same. Following are the frequently used tags in HTML documents.

 Escape sequences: (For a list of escape sequences point your browser to: http://ccat.sas.upenn.edu/plc/larrc/accents.html)

Some of the predefined characters such as <, >, & etc. along with many other diacritic markers may be produced using & followed by respective names and ;. Note these escape sequences are case sensitive

The tag <font> This tag may be used for color, size, type etc., as follows.

These can be given in one tag as in: <font color="blue" size=-1 face=newyork>

Images:

.gif, jpg, jpeg, .tiff .xbm etc., are some of the imge types that can be used in html. Image files can be displaed or made as a hot spot.

TABLE

Tables can be made in html documents with the tag <table> begin </table> end. Following are the tags to be used in tabular environement:

Try this sample:

<table border>

<tr>

<td>This is first column</td>

<td>This is second column</td>

</tr>

</table>

FRAMES: Frames may be used to divide the page in to more than one sections. It can be either horizontally or vertically or both. In order to devide the window into two, you should have three html documents. One with the specification of frames and corresponding documents, and the other two documentes to go into two frames.

Frame1: Following code divides the browser window into two equal halfs horizontally. If you change ROWS into COLS, it will divide the window vertically.

frame1.htm:

doc1.htm should go into top window and doc2.htm at the bottom window. You will load frame1.htm and it will automatically load the other two documents.

STEP - 6

Let us create a fill-out form, add JavaScript code and send message via email:

Forms should begin with <form> and end with </form>. <input>, <textarea> etc., are some of the tags that can be used to enter data on the WEB.

This document is available at http://ccat.sas.upenn.edu/plc/larrc/html.html

Sample pages for fill-in forms, use of frames etc., with langauge learning materials may be seen at:

  • http://ccat.sas.upenn.edu/plc/larrc/webauthor.html

  • http://ccat.sas.upenn.edu/plc/larrc/learn.html