RomeScape
March 18, 2024, 11:48:30 pm
Welcome, Guest. Please login or register.

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

inline html width & height

Pages: [1]   Go Down
  Print  
Author Topic: inline html width & height  (Read 195 times)
0 Members and 1 Guest are viewing this topic.
Mazead
New-Member


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:
Quote
<img src="test.png" alt="test" width="120" height="80"/>

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

Quote
<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
  Print  
 
Jump to:  

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