These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:23 pm Advanced search

A small HTML5 question (but a long intro).

If you are stuck or have questions regarding HTML or other Web technologies, ask your questions here. No question too dumb!

A small HTML5 question (but a long intro).

Postby Ascendancy » Wed Nov 23, 2011 6:03 pm

Is the bolded text acceptable by HTML5 standards, or is it deprecated?

style="float: left"

In the context of:

Code: Select all
<td><input type="submit" value="Submit" style="float: left" /><input type="reset" value="Clear" /></td>


I believe I could have assigned the 'Submit' input an id, and styled it with an external style sheet, but it was a quick fix at the time.
Ascendancy
<h6>
 
Posts: 1
Joined: Wed Nov 23, 2011 5:30 pm

Re: A small HTML5 question (but a long intro).

Postby JAB Creations » Thu Nov 24, 2011 1:54 am

First off no, I don't see why that wouldn't technically be valid HTML5 though there have been some very odd things in the HTML5 spec so always best to ask.

Secondly what you'll want to do is standardize your CSS. Are you going to randomly style elements across a site without consistency or are you going to have an idea of how you previously approached it and implement a more uniform and easier to work with solution? Quick and easy fixes quickly accrue long term damage to the time you will end up spending more time on maintenance than adding new content and features.

You should use those practices in all your work. Working with other people and their code? Get them in to good practices such as never using padding (except in the dumb collapsed margin issue for paragraphs). When you and the people around you start using good coding practices you stop getting stuck on prolonged maintenance and you get more done in less time. :)
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA


Return to Help & Advice

Who is online

Users browsing this forum: No registered users and 0 guests