February 04, 2023, 03:00:18 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: My new email:
email me if u need anything Tongue
  Home   Forum   Help Search Arcade Staff List Login Register  

inline html width & height

Pages: [1]   Go Down
Author Topic: inline html width & height  (Read 168 times)

Reputation +0/-0
Offline Offline

Posts: 10

View Profile
« on: October 17, 2014, 05:22:42 am »

To speed up page load, I'm adding inline style to my html for the images - but curiously, the recommended w3schools method isn't working:
<img src="test.png" alt="test" width="120" height="80"/>

...while what I thought was 'old fashioned' is:

<img src="test.png" alt="test" style="width:300px; height:auto"/>

I'm using XHTML 1.0 Transitional - is the first example HTML5 only?
Report Spam   Logged

Share on Facebook Share on Twitter

Pages: [1]   Go Up
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum
Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy