5
Contributors
6
Replies
50
Views
4 Years
Discussion Span
Last Post by old_apache
2

The easiest way to add an image is via HTML, using the <img/>element. However, you can assign a background image to certain elements.

I don't think there is a right or wrong.. What are you trying to accomplish?

0

to put an image(the best practice to do is), use "HTML" and use the "<img />" tag with "src" attribute.

Edited by oanahmed

0

There is no "best practice" to code images into a web page, there's only a correct syntax of doing it!
Which is the image tag: <img src="...">

A correct code/syntax is always the best practice.

2

Generally, if its part of the page or menu structure then put it in the CSS, using the background-image property.

If its part of the content, then in the markup. That way you can make sure the Alt tag is filled out properly and an individual that's using an AT (Assistive Technology) device can understand what the image is about.

Edited by ggamble

Votes + Comments
I agree!
0

A correct code/syntax is always the best practice.

i don't think so

Generally, if its part of the page or menu structure then put it in the CSS, using the background-image property.

If its part of the content, then in the markup. That way you can make sure the Alt tag is filled out properly and an individual that's using an AT (Assistive Technology) device can understand what the image is about.

thanks, i think this helps

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.