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:
Example:
HTML
<img src="url" alt="alternatetext">
Example of HTML Image Code | HTML Basic |
Definition HTML Images | HTML Basic |
HTML Images Syntax | HTML Basic |
The src Attribute of HTML Images | HTML Basic |
HTML Documents | HTML Basic |
HTML <!DOCTYPE> Declaration | HTML Basic |
HTML Headings | HTML Basic |
HTML Paragraphs | HTML Basic |
HTML Text Links | HTML Basic |
HTML Images | HTML Basic |
How to View HTML Source | HTML Basic |
Type
: |
html |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Basic |
Uploaded by
: |
Admin |