Tuesday, December 25, 2018

Alt attribute

The alt Attribute:-

<html>
<body>

<h2>Alt Attribute</h2>
<p>Alt attribute should reflect the image content, so users who cannot see the image gets an understanding of what the image contains:</p>

<img src="imgtag.jpg" alt="Tag with image" width="200" height="300">

</body>
</html>

OUTPUT:-

  • Alt attribute should reflect the image content
  • users who cannot see the image gets an understanding of what the image contains

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...