img src Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:img

Description

The required src attribute specifies the URL of the image.

Attribute Values

Value Description
URL The URL of the image.

An image is marked up as follows:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<img src="https://www.java2s.com/style/demo/Opera.png" alt="Smiley face" width="42" height="42">

</body><!--  ww  w.j a v a 2  s .c o  m-->
</html>

Related Tutorials