Date: 2008-12-27 11:50 pm (UTC)
XHTML rules in a nutshell:
* Use the proper doc-type declaration.
* All tags (and attributes) are lower cased.
* Nest tags correctly: [b][i]stuff[/b][/i] <-- wrong.
* Use quotes for values [table cellpadding="0"] <-- correct
* Every attribute has to have a value, which makes things like "selected" weird for options or checked for radio/checkboxes. So, you either say checked="true" or checked="checked" or whatever makes you comfortable.
* Use the proper character encoding. & is &amp;, etc.
* Anything tag that has a starting tag, must have a closing tag.
* Break tags are closed in this fashion: <br /> - Image tags and such follow the same suite. The space between "br" and "/" is important.
* target="_top" and such are illegal in XHTML strict, so you should try to be compliant in transition, but it's not required. Use javascript if you need to open a new page or whatnot.
* I'm sure there's more, but those are the more important ones off the top of my head.

Styling should always be done via CSS regardless if it's HTML, XHTML, XML (XSTL is the XML stylesheet) as it's not only good coding practice, but reskinning for future usage makes it stupidly simple if you coded everything properly.

If you have any CSS / HTML / jQuery questions, poke me. :) I'll be glad to answer even if it's just a simple css question. I've been really focusing on nailing this down at work and coming up with a best practice and simplifying work.
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

flexagon: (Default)
flexagon

June 2025

S M T W T F S
1 23456 7
891011121314
151617 18192021
22 232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 25th, 2025 01:19 am
Powered by Dreamwidth Studios