The alt Attribute
The alt attribute specifies an alternate text for an image, if the image cannot be displayed.
The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
If a browser cannot find an image, it will display the alt text.
Image Size - Width and Height
You can use the style attribute to specify the width and height of an image.
The values are specified in pixels (use px after the value).
Html Code:
<!DOCTYPE html>
<html>
<body>
<img src="Daddyfile.jpg" alt="Daddyfile" width="200" height="112">
</body>
</html>
Post a Comment