HTML Course

 

Page 4 : Page 4 - Alignment

  • Lets Add Some Of These Font Effects To Our Existing HTML Document.

    <HTML>
    <HEAD>
    <TITLE>My First Web Page</TITLE>
    </HEAD>
    <BODY BGCOLOR="#000000" TEXT="#00FF00" LINK="yellow" VLINK="orange" ALINK="red">
    <H1><i><u>Welcome To My Home Page</u></i></H1>
    <P>
    <FONT SIZE="3" COLOR="white">
    <b><tt>You have just entered<BR>
    my first web page.<BR>
    I'm just starting out <BR>
    writting html, it's fun.</tt></b>
    </FONT>
    </BODY>
    </HTML>

    Click Here To See Our HTML Document So Far

    Use Your Back Button To Return Here

  • Text Alignment
  • Here is how to alter the alignment of your text. The text automatically aligns to the left by default. You can alter the alignment for text either to the right or to the center.

    HTML Attribute
    Effect

    ALIGN="CENTER"
    Centers text within the left and right margins

    ALIGN="RIGHT"
    Aligns text on the right margin

    Lets Add These Alignment Attributes To Our Existing HTML Document.

    <HTML>
    <HEAD>
    <TITLE>My First Web Page</TITLE>
    </HEAD>
    <BODY BGCOLOR="#000000" TEXT="#00FF00" LINK="yellow" VLINK="orange" ALINK="red">
    <H1 ALIGN="CENTER">
    <i><u>Welcome To My Home Page</u></i></H1>
    <P ALIGN="RIGHT">
    <FONT SIZE="3" COLOR="white">
    <b><tt>You have just entered<BR>
    my first web page.<BR>
    I'm just starting out <BR>
    writting html, it's fun.</tt></b>
    </FONT>
    </BODY>
    </HTML>

    Click Here To See Our HTML Document So Far
    Use Your Back Button To Return Here