Which is the correct HTML to insert "logo.png" with a border of 2?

  1. <img src="logo.png" border="2"
  2. <image src="logo.png" border=2</image
  3. <img alt="logo.png" size="2"
  4. <img href="logo.png" border="2"
Answer

A) <img src="logo.png" border="2"

src gives the file and border the thickness.

Computer Science MCQ · More HTML Links, Images, Colours, Frames and Tables MCQs · Practise