Page 179 - Webapplication11_C11_Flipbook
P. 179

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>
                 <a href= "mailto:info@orangeeducation.in"> Send an email </a>
                 </body>
                 </html>
















                   2.11 HTML IMAGES

                 An image is embedded in an HTML page using the <img> tag. Images are linked to web pages rather than being
                 physically put into them. The <img> tag produces a placeholder for the picture that is being referred. Two attributes
                 are required for the <image> tag:

                 Ð Ðsrc: Defines the image's location.

                 Ð Ðalt: Provides an alternative text for the image if it can't be displayed for some reason.
                 Always give the image's width and height as well. The page may flicker while the image loads if the width and height
                 are not provided.
                 Example:

                 <img src="flower.jpg" alt="Red Rose" width="500" height="450">
                 To make your webpage more attractive, you can also change the alignment of an image.
                 The following are the five types of alignment that can be used on an image:

                 Ð ÐLeft                            Ð ÐTop                             Ð ÐMiddle
                 Ð ÐRight                           Ð ÐBottom
                 Images are orientated to the left by default. The image with top and bottom alignment will be placed at the top or
                 bottom of the line, respectively.

                                                                                Website Building Using HTML and CSS  177
   174   175   176   177   178   179   180   181   182   183   184