Horje

HTML Images Syntax

The HTML <img> tag is used to embed an image in a web page.

Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image.

The <img> tag is empty, it contains attributes only, and does not have a closing tag.

The <img> tag has two required attributes:

index.html
Example: HTML
<img src="url" alt="alternatetext">

Output should be:

HTML Images Syntax




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Basic
Uploaded by:
Admin