Jump to content

Suggestion for html tutorial, style


Tam Borine

Recommended Posts

Going through the html tutorial and on the 'html style' tab I was wondering what to do if I wanted to list many property:value sets in one style= attribute. So I googled it and found out you simply use a semicolon. I thought it would be helpful to add this to the html tutorial because often people don't simply want to change the colour but perhaps change colour,alignment and much more for just one thing.Example:<h1 style="text-align:center;font-size:300%">whatever you want to say</h1>

Link to comment
Share on other sites

IF you look at css tutorial under css syntax it does point out that 'one or more declarations should be followed by semicolon'.It would be better if w3schools tutorial followed this rule when using inline style attribute, personally i have always done it this way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...