Quote:
Originally Posted by JSWolf
That I find rather sloppy and lazy to have styles in the XHTML code. The display:none should be done in CSS and the code would look like...
Code:
<h2 title="Copyright none"/>
|
I would normally agree with not using styles in the code...However, your solution doesn't work at all.
1) I don't want the title to be 'Copyright none' I want it to be 'Copyright'
2) Without assigning a class then the display:none would apply to ALL <h2>
3) If I assign a class to it, then I'm not really saving anything am I
Code:
<h2 title="Copyright" style="display:none" />
vs.
<h2 title="Copyright" class="nodisplay" />
4) Some older readers don't recognize CSS files, so having the embedded style assures that I don't have the header pop up when I really don't want it to.
5) This only applies to 1, maybe 2, headers in the entire book. Soooo I'm comfortable with having the embedded style in this case.