+ 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" />

21st Jan 2017, 12:54 AM
Jose Ramos
Jose Ramos - avatar
6 Respostas
+ 6
The best is not to put those styles inline. Have a separate stylesheet in <style></style>. img { width: 40pt ; height: 60pt }
21st Jan 2017, 1:23 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 4
I've never tried that before but I guess I should try that too lol thanks @Cheeze
21st Jan 2017, 1:24 AM
Aquarius
Aquarius - avatar
+ 3
It's safe to keep the measurements and border before alt but it really doesn't matter the order.
21st Jan 2017, 1:13 AM
Aquarius
Aquarius - avatar
+ 3
My brother was just telling me the same @Cheeze. Stylesheet is the way to go.
21st Jan 2017, 1:30 AM
Levi Hornsby
Levi Hornsby - avatar
+ 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 ;)
21st Jan 2017, 10:57 AM
visph
visph - avatar
- 1
Haa
29th Jan 2017, 2:04 PM
ÁmàN