Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 35 - 2609_Logiccode
P. 35

    The output of the preceding code is as follows:

                     When you click on any one of the given internal links, it will take you to the respective section on
                     the same web page.

                     Code 2.  Write  the  HTML code  to  present  the  given  web  page  using  the  <A> tag  to  create  an
                             external hyperlink.

                     <!DOCTYPE HTML>

                     <HTML>

                     <HEAD>
                     <TITLE>The Water Cycle</TITLE>

                     </HEAD>

                     <BODY STYLE="BACKGROUND-COLOR: #E0F7FA;
                     TEXT-ALIGN: CENTER;">

                     <H1>The Water Cycle</H1>

                     <P STYLE="FONT-SIZE: 20PX; TEXT-ALIGN: JUSTIFY;">

                     The water cycle is the process by which water moves through the Earth's
                     atmosphere, land and oceans. Learn more about the stages of the water
                     cycle:</P>
                     <A HREF="https://en.wikipedia.org/wiki/Water_cycle"  style="FONT-SIZE:
                     24PX;">

                     Explore the Water Cycle

                     </A>

                     </BODY>
                     </HTML>
                     When you click on the given external link, it will take you to the URL specified in the HREF attribute.

                                                                                               Making Web Pages Alive  33

| 30 31 32 33 34 35 36 37 38 39 40 |