+ 2
When integrating an image, width, height, border and alt, does it have to be in an orderly fashion?
for example: <img src="www.someimage.com/house.jpg" height="60pt" width="40pt" alt="image not found" />
6 Réponses
+ 6
The best is not to put those styles inline. Have a separate stylesheet in <style></style>.
img {
width: 40pt ;
height: 60pt
}
+ 4
I've never tried that before but I guess I should try that too lol thanks @Cheeze
+ 3
It's safe to keep the measurements and border before alt but it really doesn't matter the order.
+ 3
My brother was just telling me the same @Cheeze. Stylesheet is the way to go.
+ 3
All that you can define in externalized css rules, you must do it.
Anyway, all attributes in all html tags are unordered...
Just an advice on the way to use the 'alt' attribut: its purpose is firstly and mainly to provide information for blind people or any device unable to display the picture for any reason... 'image not found' is a very particular case beside the general semantic meaning of this attribut ;)
- 1
Haa