Connect with us

HTML

HTML Images

In HTML, images use the tag. The tag does not have a closing tag. Image tag contains two attributes src and alt. Src specifies the URL of the image and alt tag specifies the alternative name of image.

mm

Published

on

In HTML, images use the <img> tag. The <img> tag does not have a closing tag. Image tag contains two attributes src and alt. Src specifies the URL of the image and alt tag specifies the alternative name of image.

Example:–

<!DOCTYPE html>

<html>

<body>

<img src=”Image URL” alt=”alternative image name” other attributes-list/>

</body>

</html>

Image Width/Height

You could use image width and height based on your condition using width and height attributes.
Example:–

<!DOCTYPE html>

<html>

<body>

<img src=”Image URL” alt=”alternative image name” width=”400” height=”50” />

</body>

</html>

Image Map

The <map> tag used to identify an image-map. An image-map is a clickable area. The name element of the <map> tag is linked with the <img> usemap which creates a relationship b/w the image and the map.

Example:–

<!DOCTYPE html>

<html>

<body>

<img src=”today.png” alt=”today” usemap=”#today” style=”width:125px;height:120px;”>

<map name=”today”>
<area shape=”rect” coords=”0,0,62,166″ alt=”moon” href=”moon.htm”>
<area shape=”circle” coords=”80,68,5″ alt=”earth” href=”earth.htm”>
<area shape=”circle” coords=”132,60,12″ alt=”Venus” href=”venus.htm”>
</map>

Also Read :   PHP Web Development

</body>

</html>

Hi, Thank you for reading my article. I am Victor, a professional blogger from Jaipur, India.I started webetutorial for blogging & sharing solution for developer questions, and now it’s empowering globally by helping them to make money.I am writing about starting & managing a blogs, WordPress, Magento, Social Media, SEO, Marketing, making money online, Investment, Finance, Gadgets, Fitness and more.

Continue Reading
Advertisement
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

fourteen + 4 =

HTML

HTML Character Sets

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

mm

Published

on

To display an HTML page properly, a web browser must know the character set to use.

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

ASCII supported numbers (0-9), English letters (A-Z), and some special characters. UTF-8 (Unicode) covers almost all of the characters and symbols in the world.

ISO-8859-1 was the default character. It also supported 256 different character codes.
The HTML charset Attribute:-
This is specified in the <meta> tag:-

<meta charset=”UTF-8″>

Also Read :   HTML Comments
Continue Reading

Subscribe to our newsletter

Enter your email address to subscribe to blog and receive notifications of new articles by email.
100% Privacy. No spam guaranteed

Trending