Advertisement Remove all ads

Give function of following tags with an example of each : <img>, <em>, <dl> - Computer Science 1

Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads

Give function of following tags with an example of each

  1. <img>
  2. <em>
  3. <dl>
Advertisement Remove all ads

Solution

 (i)<img>: is image tag.Its purpose is to include graphic images in the body of the web page.

     ex: 

<img src ="Mickey Mouse.jpg" alt="MICKEY">

(ii) <em> : The tag is a phrase tag. It renders as emphasized text.

     Emphasized text

(iii)  The <dl> tag defines a description list.

<dl>
  <dt>Coffee</dt>
  <dd>Black hot drink</dd>
  <dt>Milk</dt>
  <dd>White cold drink</dd>
</dl>
Concept: Hyper Text Markup Language (HTML)
  Is there an error in this question or solution?

APPEARS IN

Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×