Using HTML
As mentioned above, HyperText Markup Language is a language to
write documents to be viewed on the Web. All you need to do to create
one of these documents is to use a text editor such as emacs or
vi, have some information that you want anyone in the world to be
able to browse, and use the syntax of HTML. Here is a very simple
example of a Web document that can be viewed with a browser (note
that the desired effects of the HTML code will be seen only when
looking at the HTML file with a Web browser):
<HTML <HEAD>
<TITLE> Here is the title of this Web page </TITLE>
</HEAD>
<BODY>
<H1> This is a large heading </H1>
<H2> This is a somewhat smaller heading than
above </H2>
<H3> This heading is still smaller. These headings
can go up to number six,which means that the font will get smaller
and smaller. </H3>
<P>
The P above stands for a new paragraph.
<EM> This is emphasized text. </EM>
<B> This is bold text. </B>
If you would like to make a bulleted list then you will need to
do something like the following:
<UL>
<LI> This is the first item of the list.
<LI> This is the second item of the list.
<LI> You can have as many list items as you
want.
</UL>
If you want to make a link to another Web document, then you will
need to do something like this, which is a link to the Math Department's
home page.
<A HREF=``http://math.bu.edu"> Math's Home
Page </A>
The words ``Math's Home Page" will be underlined when this
file is viewed with a Web browser. The underlined words mean that
it is a link.
If you would like to have an image displayed on your Web page, then
you will need a line in your HTML file like this:
<IMG SRC=``name-of-picture">
</BODY>
</HTML>
In this example, you see characters in between angled brackets.
These are called tags and represent the HTML syntax. Some tags need
a beginning and ending, which is why you will see the forward slash
as the first character in a tag.
Next: Weaving Your
Own
Previous: Common Terminology
Associated
Nicole LaRock
|