just curious.

<img src="filepath.jpeg" id="idhere?" />

or

<img id="idhere?" src="filepath.jpeg" />

which is valid? are they both vaild? and differences?

Both order is valid but attribute "alt" is necessary for valid "img" tag

Thank you very much Andris. Having the ID before the src is weird!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.