_____________________________________________
-Code-
<!DOCTYPE html>
<html>
<body>
<h2>The href Attribute</h2>
<p>HTML links are defined with the a tag. The link address is specified in the href attribute:</p>
<a href="https://www.youtube.com/channel/UCPfJgGcPAZFDnJWkveC3mrw">Visit asal education youtube</a>
</body>
</html>
The href Attribute
HTML links are defined with the a tag. The link address is specified in the href attribute:
_____________________________________________
-Code-
<!DOCTYPE html>
<html>
<body>
<h2>The src Attribute</h2>
<p>HTML images are defined with the img tag, and the filename of the image source is specified in the src attribute:</p>
<img src="img_girl.jpg" width="500" height="600">
</body>
</html>
The src Attribute
HTML images are defined with the img tag, and the filename of the image source is specified in the src attribute:

Width and Height Attributes
The width and height attributes of the img tag, defines the width and height of the image:


If we try to display an image that does not exist, the value of the alt attribute will be displayed instead.
_____________________________________________
कोई टिप्पणी नहीं:
एक टिप्पणी भेजें
hello friend
if you have any doubt related to the blog ,then write to us in the comment