Page 165 - Web Applications (803) Class 11
P. 165

Attribute Values
                            Value                                            Description

                           _blank            The linked document is opened in a new window or tab.

                            _self            The linked document is opened in the same frame as it was clicked (this is default).
                           _parent           The linked document is opened in the parent frame.
                            _top             The linked document is opened in the full body of the window.

                         Framename           The linked document is opened in the named frame.
                 Example:

                 Let us understand each one by one.
                 <!DOCTYPE html>

                 <html>
                 <body>
                 <h1>Using the target attribute to open the webpage in a new tab</h1>
                 <p>Open link in a new window or tab: <a href=https://www.cbse.nic.in target="_
                 blank">Visit CBSE Portal</a></p>

                 </body>
                 </html>














                 Email Links

                 To send an email, you can use the HTML <a> tag to specify an email address. The mailto: email address and the href
                 attribute are utilised when using the <a> tag as an email tag. The syntax for using mailto is as follows:
                 Syntax:

                 <a href = "mailto: xyz_email@gmail.com"> Email Address</a>
                 Example:
                 <! DOCTYPE html>

                 <html>
                 <head>
                 <title> Email link Example</title>
                 </head>

                 <body>
                 <h1> This page creates an emailing link in html webpage</h1>
                 <br>



                                                                            Website Development using HTML and CSS   163
   160   161   162   163   164   165   166   167   168   169   170