HTML Tutorial

The following presentation explains some basics of HTML so that you can understand it. This is an overview rather than an in-depth HTML reference.

HTML


Page Source


HTML Tags


The Head Section

The Head Section
<HTML>

<HEAD>
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>Vina's Web Page </TITLE>
</HEAD>

<BODY>
</BODY>

</HTML>


The Body Section

The Body Section
<HTML>

<HEAD>
<TITLE>Vina's Web Page </TITLE>
</HEAD>

<BODY>
<P ALIGN="CENTER">Vina's Home Page </P>
</BODY>

</HTML>


Colors and Fonts

Colors and Fonts
<...>

<BODY BGCOLOR="black" TEXT="white">
<P ALIGN="CENTER"><B><font size="8" face="Arial"> Vina's Home Page</font></B> </P>
</BODY>

<...>


Headings and Paragraphs

Headings and Paragraphs
<BODY ...>

<H1>My Bio</H1>
<P>Hi, I'm Vina. ...</P>

<H1>Favorite Activities</H1>
<P>My favorite activities are ...</P>
</BODY>


Links

Links
<BODY ...>

<H1>My Bio</H1>
<P>Hi, I'm Vina. ... the <a href="http://www.spca.org.hk">SPCA</A> found me ... a family at <a href="http://www.ust.hk">HKUST</A></P>

<...>

Brighter Links
<BODY BGCOLOR="black" TEXT="white" link="lime" vlink="red" alink="yellow">

<...>

Links to Subpages
<...>
<a href="vinabio.htm"><strong><font size=+1>Bio</strong></font></A><br>

<a href="activities.htm"><strong><font size=+1>Favorite Activities</strong></font></A><br>

<...>


Images

Images
<BODY ...>

<P ALIGN="CENTER"><B><font size="8" face="Arial">Vina's Home Page</font></B></P>

<CENTER><IMG SRC="vina1.jpg"></CENTER>

<...>

    • Move the mouse over the image on the Web page
    • Click the right mouse button
    • Select "Save Image As"
    • Save the rainbow image in the same directory with the Home Page
Rainbow
<IMG SRC="rainbow.gif" HEIGHT=20 WIDTH=100%>


Sounds

Sounds
<BODY ...>

<a href="roar.wav"><strong><font size=+1>Self-Introduction</strong></font></A><br>

<...>


Page Layout

Comments
<...>

<!--<P ALIGN=CENTER><B><font size="8" face="arial">Vina's Home Page</font></B></P>-->

<...>

Background
<...>

<BODY BACKGROUND="vinatitle.gif" BGCOLOR="black" TEXT="white" link="lime" vlink="red" alink="yellow">

<...>

Move Photo
<...>

<CENTER><IMG SRC="vina1.jpg"><CENTER>

<...>

Rescale Photo
<...>

<IMG SRC="vina1.jpg" HEIGHT=185 WIDTH=175

<...>


Horizontal Rule
<...>

<br><hr>

<...>


Tables

Tables
<TABLE BORDER>
<TR>
<TD>
Sunday
</TD>
<TD>
<...>
</TD>
</TR>
</TABLE>
Header Cells
<TABLE BORDER>
<TR>
<TH COLSPAN=7>
<CENTER>My Weekly Schedule</CENTER>
</TH>
</TR>
<TR>
<TD>
<...>
</TD>
</TR>
</TABLE>
Picture Frame
<TABLE BORDER=2>
<TR>
<TD>
<IMG SRC="vina1.jpg" HEIGHT=185 WIDTH=175>
</TD>
</TR>
</TABLE>


Finishing Touches

Vina's Finished Page
<TABLE WIDTH=100%>
<TR>
<TD align=right>
<IMG SRC="fire.gif">
</TD>
</TR>
<...>
</TABLE>