
On Fri, February 24, 2012 1:50 am, Keith J. Schultz wrote:
HI Lee,
Your continuous references to reading devices is interesting.
It shows one very important point that the HTML-standard is not well implemented or not fully implemented on such devices.
What it does show is that using complex style of mark-up (semantic mark-up) is a very bad idea!
No, it demonstrates that /relying/ on a complex style of mark-up is a very bad idea. But if you can create markup that looks good in a simple User Agent, and looks even better in a more powerful User Agent why wouldn't you do that? You don't want to make a document that looks crude even in the most powerful of environments, and you don't want to create a document that loses its formatting in a simple environment. But this is not a zero sum game -- you don't have to choose one or the other. Start with basic formatting for a User Agent that doesn't recognize CSS. Do the best job you can, recognizing that it won't be perfect. Now classify the markup (in HTML, classification involves adding 'class' attributes to elements) so that by adding a style sheet the presentation is improved. Be careful just to add class attributes, not to change any elements. What you have then is a win-win! Why would you want to penalize any group of users?
In order to achieve a better visual presentation it would be more appropriate to use just <p>.
No it is not, because paragraphs carry semantic baggage that you want to avoid. Try this experiment: Mark up a poem using <p> elements (no styles allowed). Look at the document in a browser; is it acceptable? Now look at the same poem on a User Agent that displays paragraphs indented. All good e-book readers, devices or software, will allow you to set the indentation of paragraphs: make it 50% or 25em, or some other really large value. How does your poem look now? (If you don't have a good e-book reader, you can simulate this by putting: <style type="text/css"> p { text-indent: 50% > </style> in the <head> element of your document, and then using a modern browser). Now try the same experiment again with <div> instead of <p>. How does that change the results? Yes, using basic markup is good, but you must always use markup that matches the semantics of what you're marking. And you should never disallow styles that makes the basic markup even better.