|
|
Back to UserFriendly Strip Comments Index
|
Web-page-writing people; a survey... | by leistico | 2007-07-25 05:53:36 |
| 1) XHTML 1.1, if possible. 1.0-Strict otherwise. |
by bwkaz |
2007-07-25 16:05:06 |
Where "if possible" means "if the client will accept application/xhtml+xml", since you can't serve up XHTML 1.1 as text/html anymore. But you can serve up XHTML 1.0 as text/html, so if IE is going to be involved at all, I make them XHTML 1.0 Strict. (Actually I have a framework set up at work that chooses MIME type and DOCTYPE both based on the Accept: header from the client.)
2) It always validates, if that's what you meant. :-)
3) Semantic whenever possible. Sometimes the users' browsers can't deal with that though, and I have to drop in a couple of hints to get them to work properly. Or switch doctypes (for instance if they absolutely require an iframe).
4) Tables when displaying tabular data, since that's what they're *for*. :-P CSS everywhere else (including on the pages with tables).
Rule of thumb here: if it looks right with a table border (raised edge around the whole table, sunken edge around each cell), then it should use a table. If I need to remove the borders to make it look right, then it should be some other set of tags. |
|
[ Reply ] |
|
|
[Todays Cartoon Discussion]
[News Index]
|
|