IMG tag being taken out of HTML?

  • 1
  • Question
  • Updated 8 years ago
  • Answered
Hello, someone told me on this forum that the img tag was going to be taken out of HTML on the newer browsers. I did a google search and did not find anything on this. They said we will have to use CSS for images.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
  • confused

Posted 8 years ago

  • 1
Photo of petercsea

petercsea

  • 153 Posts
  • 19 Reply Likes
img tag is not being taken out. "Image tags" are being deprecated.
In HTML 4.01 tags: align, border, hspace, vspace have all been deprecated. Use styling instead.
Ref: http://www.w3schools.com/tags/tag_img...
http://en.wikipedia.org/wiki/HTML_ele...
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Oh, I'm sorry I misunderstood you! :) I understand now, I thought you meant the actual things themselves are being deprecated.

Thanks for replying!

Nathan
Photo of petercsea

petercsea

  • 153 Posts
  • 19 Reply Likes
That's OK.
Image tags have been continually deprecated from HTML2 onwards. The absolute requirement for img are src and alt attributes. I have never noticed a browser reject an image because the alt hadn't been nominated. It's good practice though. Another one which I hadn't realised is the <!--<center>--> tag. Many have noticed the inconsistencies with the center tag and I presume that this is the reason?