Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 34 - 2609_Logiccode
P. 34

    _self: It opens the linked web page in the current window or tab. It is the default value for the
                         target attribute.

                         _top: It opens the linked document in the window that is on top in all the windows.
                      The syntax for using the <A> tag is as follows:

                      <A HREF="URL" TARGET="VALUE">LINK CONTENT</A>
                      Code 1.  Write the HTML code to present the given web page using the <A> tag to create an internal
                              hyperlink.

                      <!DOCTYPE HTML>

                      <HTML>
                      <HEAD>

                      <TITLE>Famous Cities</TITLE>

                      </HEAD>
                      <BODY STYLE="BACKGROUND-COLOR: #FAFAD2; COLOR: #2F4F4F;">

                      <H1>Explore Famous Cities Around the World</H1>

                      <P><A HREF="#paris">Go to Paris</A></P>
                      <P><A HREF="#london">Go to London</A></P>

                      <P><A HREF="#tokyo">Go to Tokyo</A></P>

                      <P><A HREF="#newyork">Go to New York</A></P>

                      <H2 ID="paris">Paris</H2>
                      <P>Paris is known as the "City of Light" and is famous for the Eiffel
                      Tower.</P>

                      <H2 ID="london">London</H2>

                      <P>London is the capital of the UK and is home to landmarks like Big
                      Ben and the Tower of London.</P>

                      <H2 ID="tokyo">Tokyo</H2>
                      <P>Tokyo is the bustling capital of Japan, known for its skyscrapers,
                      shopping and culture.</P>

                      <H2 ID="newyork">New York</H2>

                      <P>New York is famous for the Statue of Liberty, Times Square and
                      Central Park.</P>

                      </BODY>
                      </HTML>

                       32   Premium Edition-VII

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