Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 95 - 2607_Trackpad_Pro_5.1_flipbook_C5
P. 95

    THE <A> TAG

                     The <a> (anchor) tag in HTML is used to create hyperlinks. A hyperlink allows users to
                     navigate from one webpage to another. The key attribute of the <a> tag is href (hypertext
                     reference), which specifies the Uniform Resource Locator (URL) or path of the webpage
                     that is to be linked. For example:

                     <!DOCTYPE HTML>

                     <HTML>
                     <HEAD>
                     <TITLE>Simple Link</TITLE>

                     </HEAD>
                     <BODY>
                     <P>Click the link below to visit Google:</P>

                     <a href="https://www.google.com">Go to Google</a>
                     </BODY>
                     </HTML>

                     Once you click on the Go to Google link, the home page of the Google will open.

                          REVISIT

                       ▶   HTML or HyperText Markup Language is the primary building block for creating a webpage.
                       ▶   HTML5 documents can be written in text editors like Notepad.
                       ▶   An HTML document is made up of various tags or elements.
                       ▶   A tag is a coded HTML command that indicates how a part of the document will be displayed on
                         the web browser.
                       ▶   An attribute is used to define some extra features or properties of an HTML tag.
                       ▶   The <sub> (subscript) tag is used to display text below the baseline.
                       ▶   The <sup> (superscript) tag is used to display text above the baseline.
                       ▶   The <strong> tag emphasises the importance of the enclosed text, making it appear bold.
                       ▶   The <em> tag is used to place emphasis on certain parts of the text, typically displayed as italicized
                         text in most browsers.
                       ▶   The <img> tag allows you to add images to your webpage.
                       ▶   The <a> (anchor) tag in HTML is used to create hyperlinks.

                                                                                                 Introduction to HTML5  93

| 90 91 92 93 94 95 96 97 98 99 100 |