HTML Cheat Sheet ~ The Basics by elitecx764

VIEWS: 10 PAGES: 2

									                    HTML Cheat Sheet ~ The Basics

Core Tags:                                Link Tags:

<html>         Tells browser that it is   <a href= ”
</html>        a web page                 http://www.espn.com”>ESPN</A>

<head>         The first part of the            Creates a link to a site
</head>        web page
                                          <A
<title>        Will appear in the title   HREF=”mailto:billgates@msn.co
</title>       bar                        m”> some message</A>

<body>         The second part of the           Opens an email dialogue box
</body>        web page
                                          <BODY
<!         >   A comment, will not        BACKGROUND=”somefile.gif”
               display on page            BGPROPERTIES=FIXED>

Text Tags:                                      Tiles an image as a
                                                background
<h1>           Displays text in large
</h1>                headline             Line Tag:

<H6 ALIGN=CENTER>                         <HR SIZE=10 WIDTH=50%
</h6>     Displays text in small          NOSHADE ALIGN=LEFT>
          headline, centered
                                          List Tags:
<b>            Displays text in bold
</b>                                      <UL TYPE=CIRCLE>
                                          <LI>Mickey
<i>            Displays text in italics   <LI>Donald This is an unordered
</i>                                      list
                                          <LI>Goofey disc, circle, square are
<P>            Marks a paragraph          <LI>Pluto the possible bullets
</P>                                      </UL>

<br>           Breaks a paragraph         <OL TYPE=1 START=1>
               with line feed             <LI>Mickey
                                          <LI>Donald This is an ordered list
Color Tags:                               <LI>Goofey TYPE is 1 or I
                                          <LI>Pluto
<font color=”red”>                        </OL>
            Changes text color


<body bgcolor=”blue”>
     Changes background color
         HTML Cheat Sheet ~ Intermediate


Marquee:
                                (This makes the image a link.)
<MARQUEE
HEIGHT=50                       <A
WIDTH=75%                       HREF=”www.somewhere.com”>
HSPACE=5                        <IMG SRC=”file.gif”
VSPACE=5                        BORDER=”0”></A>
ALIGN=TOP
BGCOLOR=YELLOW                  <TABLE BORDER=”0”
DIRECTION=LEFT                  CELLPADDING=”3”
LOOP=INFINITE                   CELLSPACING=”3”>
BEHAVIOR=SCROLL                 <TR>
SCROLLAMOUNT=5                    <TD>Some text</TD>
SCROLLDELAY=100>                  <TD><IMG
This is the marquee message.    SRC=”somefile.gif”></TD>
</MARQUEE>                        <TD>Some more text</TD>
                                </TR>
(marqueee does not work in      </TABLE>
Netscape browsers)
                                Sound Tags:
Table Tags:
                                <BGSOUND SRC="somefile.wav"
<TABLE BORDER = 1>              LOOP=2>
<TR>
                                <BGSOUND SRC="somefile.wav"
<TD>Snoppy</TD><TD>Dog</TD      LOOP=INFINITE>
>
</TR>                           (sound file types supported are
<TR>                            .wav, .au, and .midi)

<TD>Fluffy</TD><TD>Cat</TD>     Text Font Tags:
</TR>
<TR>                            <FONT SIZE=”4”>Some
                                text</FONT>
<TD>Babe</TD><TD>Pig</TD>
</TR>                           <FONT FACE=”comic sans
</TABLE>                        ms”>Some text</FONT>

Image Tags:

<IMG SRC="somefile.jpg"
ALIGN=MIDDLE>Some text.
<A
HREF=”http://www.somewhere.co
m”><IMG SRC=”file.gif”></A>

								
To top