Passionate Programmer

Saturday, July 16, 2016

What is an alt attribute of an image?

The alternative text is known as alt attribute in HTML image tag. When the source of the HTML image tag is missing then the alternative text is shown in place of image. See the example below:

<img src="https://i.stack.imgurr.com/cUizs.jpg" alt="Beroza Paul"> 

Output:
Beroza Paul
Posted by shiddhertha at 8:28 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: alt, alternative text, html, img

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contributors

  • beroza
  • shiddhertha

Blog Archive

  • ▼  2016 (16)
    • ►  September (1)
    • ▼  July (15)
      • What is a textarea field in HTML? Give an example.
      • What is a select field? Give an example.
      • What is an input element in HTML form? Explain inp...
      • What are the form elements?
      • What are the most frequently used CSS selector?
      • How many ways we can write css?
      • What is the HTML table?
      • What is unordered list and list item?
      • What is an anchor and how can we create a link to ...
      • What are the attributes of HTML tags?
      • What is an alt attribute of an image?
      • What is an img tag in HTML and how we can display ...
      • What are the block and inline HTML tags?
      • What are the most frequently used HTML tags?
      • How to create a HTML document?
Simple theme. Theme images by gaffera. Powered by Blogger.