HTML Tag

Example

How to insert an image:
<img src="smiley.gif" alt="Smiley face" height="42" width="42">

Definition and Usage

The <img> tag defines an image in an HTML page.
The <img> tag has two required attributes: src and alt.
Note: Images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.
Tip: To link an image to another document, simply nest the <img> tag inside <a> tags








Differences Between HTML 4.01 and HTML5

The following attributes: align, border, hspace, and vspace are not supported in HTML5.

Differences Between HTML and XHTML

In HTML the <img> tag has no end tag.
In XHTML the <img> tag must be properly closed.

Default CSS Settings

Most browsers will display the <img> element with the following default values:

Example


img { 
    display: inline-block;
}

0
Add comment
Name:*
E-Mail:


reload, if the code cannot be seen
(↑) Write code
www.northkoala.com
Attantion! Corona virus Countrys: Africa: Algeria Burkina Faso Cameroon Democratic Republic of Congo Nigeria Senegal South Africa Togo ---- Americas: Argentina Bolivia Brazil Canada Chile Colombia Costa Rica Dominican Republic Ecuador French Guiana Guadalupe Honduras Jamaica Martinique Mexico Panama Paraguay Peru United States -- Eastern Mediterranean: Afghanistan Bahrain Egypt Iran Iraq Jordan Kuwait Lebanon Morocco Oman Pakistan Qatar Saudi Arabia Tunisia United Arab Emirates Europe Albania Andorra Armenia Austria Azerbaijan Belarus Belgium Bosnia and Herzegovina Bulgaria Croatia Cyprus Czechia Denmark Estonia Finland France Georgia Germany Gibraltar Greece Holy See (Vatican City) Hungary Iceland Ireland Israel Italy Latvia Liechtenstein Lithuania Luxembourg Malta Moldova Monaco Netherlands North Macedonia Norway Poland Portugal Romania Russia San Marino Serbia Slovakia Slovenia Spain Sweden Switzerland Turkey Ukraine United Kingdom South-East Asia Bangladesh Bhutan India Indonesia Maldives Nepal Sri Lanka Thailand Western Pacific Australia Brunei Darussalam Cambodia China Hong Kong Japan Macau Malaysia New Zealand Philippines Republic of Korea Singapore Taiwan Vietnam
Famous Quotes for you

"I alone cannot change the world, but I can cast a stone across the water to create many ripples." -Mother Teresa


Last Comments
Follow us
Flag's Cloud
Flag Counter

WELLCOME TO NORTHKOALA.COM!

Sign in for a closer look at the website
Regstration
Create your own account!

Regster
Sign in
Already registered? Very nice, just sign in!

Enter Website