HTML Image
HTML Image
To insert a picture into a web page, use the img tag.
The HTML img tag can have the following attributes:
The src attribute is used to provide the URL for a image.
The alt attribute is used to display an alternate text when an image fails to appear on the page.
The width attribute is used to set the width of an image.
The height attribute is used to set the height of an image.
HTML Image
<!DOCTYPE html> <html> <head>HTML Image </head> <body> </body> </html>
Result: