HTML : Fill in the blanks

  1. Add a “tooltip” to the paragraph below with the text “Edyoda”.
    <p ____ ="Edyoda">Welcome to Edyoda.</p>
    A. title
    B. name
    C. value
    D. href

  2. Set the size of the image to 300 pixels wide and 300 pixels tall.
    <img src="w3schools.jpg" width="_____" _____="300">
    A. 300, width
    B. 400, width
    C. 600, height
    D. 300, height

  3. Make the element below into a link that goes to https://community.edyoda.com.
    <a ___="https://community.edyoda.com">Community</a>
    A. width
    B. link
    C. title
    D. href

  4. Specify an alternate text for the image.
    <img src="./logo.png" ___="Logo">
    A. href
    B. alt
    C. value
    D. All of them

  5. Add a class with the name of para
    <p _________>My paragraph</p>
    A. class=“para”
    B. id=“para”
    C. href = “para”
    D. value=“para”

  6. _____________ tag includes a title for the document, scripts, styles, meta information, etc
    A. <head> </head>
    B. <body> </body>
    C. <html> </html>
    D. All of the above

  7. _____ attribute of <img /> specifies the name of the image file.
    A. href
    B. alt
    C. src
    D. link

1 Like
  1. name
  2. 300,height
  3. href
  4. alt
  5. class=“para”
  6. A.
  7. src

1.title
2.300,height
3.href
4.alt
5.class=“para”
6.A
7.src

  1. name
  2. 300, height
  3. href
  4. alt
  5. class=“para”
  6. src
  1. Ans B
  2. Ans D
  3. Ans D
  4. Ans B
  5. Ans A
  6. Ans A
  7. Ans C
  1. name
  2. 300px,height

3.href
4. alt
5. class=“para”
6. head tag

1* Add a “tooltip” to the paragraph below with the text “Edyoda”.
< p title =“Edyoda”>Welcome to Edyoda.< /p >

2* Set the size of the image to 300 pixels wide and 300 pixels tall.
< img src=“w3schools.jpg” width=“300height=“300” >

3* Make the element below into a link that goes to https://community.edyoda.com.
< a _href__=“https://community.edyoda.com”>Community< /a >

4* Specify an alternate text for the image.
< img src=“./logo.png” _alt=“Logo” >

5* Add a class with the name of para
< p class=“para”>My paragraph

6* _< head > < /head > tag includes a title for the document, scripts, styles, meta information, etc

7* _src _ attribute of < img /> specifies the name of the image file.

answer1=option.A
2=option D
3=option D
4.B
5.A
6.A
7.B