Page 93 - 2403_Trackpad_V5.1_C5_Fb
P. 93

THE <EM> TAG
                 The <em> tag is used to place emphasis on certain parts of the text, typically displayed as italicized

                 text in most browsers. For example:

                 <!DOCTYPE HTML>
                 <HTML>

                 <HEAD>
                 <TITLE> Emphasises Using em Tag </TITLE>

                 </HEAD>

                 <BODY>
                 <P>Please <EM>do not forget</EM> to submit your assignment by Monday.
                 </P>

                 </BODY>
                 </HTML>














                 THE <IMG> TAG
                 The <img> tag allows you to add images to your webpage. It has the following attributes:




                         Attribute                                     Description



                            src             Specifies the path of the image.

                            alt             Provides alternative text if the image fails to load.

                           width            Specifies the width of the image.

                           height           Specifies the height of the image.

                 For example:

                 <!DOCTYPE HTML>

                 <HTML>
                 <HEAD>

                 <TITLE> Adding an Image </TITLE>





                                                                                             Introduction to HTML5  91
   88   89   90   91   92   93   94   95   96   97   98