MENU
Question -

Which attribute is used to specify the location of an image file in tag? Explain.



Answer -

The attribute you need to get an image to display on a Web page is the src attribute.
In the src attribute of the tag, you can specify the path of the image that you want to add to the Web page. This may be an image in the same directory, an image somewhere else on the same server, or an image stored on another server.
The syntax for src attribute is

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×