HTML image height and width And About using attributes Code For Website - Learn About Website | DaddyFile
Latest News

0

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>



Html Code Result:

Daddyfile

Post a Comment

Emoticon
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Top