![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
If the comment is imporant enough, it should be included either in the paragraph itself, a footnote, or end note. Example: p>Cats are good <sup><a href="#note1" title="Jump to note">1</a></sup> companions.</p p id="note1" class="notes">1. Rolo in particular</p |
#12
| |||
| |||
|
|
More on footnotes and endnotes in HTML: http://www.cs.tut.fi/~jkorpela/www/fn.html |
#13
| |||
| |||
|
|
Footnotes in HTML are really endnotes, not footnotes. Footnotes in a book appear at the bottom of the page you're reading, where your eye can flick to them with great ease. |
|
I loathe endnotes, they incense me. |
|
On screen, the best solution would be sidenotes, but there are plenty of irritations and difficulties in that. |
#14
| |||
| |||
|
|
Scripsit Adrienne Boswell: If the comment is imporant enough, it should be included either in the paragraph itself, a footnote, or end note. Example: p>Cats are good <sup><a href="#note1" title="Jump to note">1</a></sup> companions.</p p id="note1" class="notes">1. Rolo in particular</p Even this is questionable. First, the title attribute contains a predicate verb - always suspicious, usually a symptom of clickhereitis. Second, when the footnote is short, you might just as well copy it into a title attribute if you have one, so the user does not need to follow the link when he... er... doesn't need it: title="Note: Rolo in particular.". Third, a superscript 1 is really small, often unnoticeable, and hard to hit especially if you have a motoric disability. Finally, this would create the display Cats are good ¹ companions. It looks odd, and if you remove the space before the superscript 1, then it looks like associated with "good" only. Better: Cats are good companions. [1] More on footnotes and endnotes in HTML: http://www.cs.tut.fi/~jkorpela/www/fn.html |
#15
| |||
| |||
|
|
Gazing into my crystal ball I observed "Petr Vileta" stoupa (AT) practisoft (DOT) cz> writing in news:fkck5o$1o2k$1 (AT) ns (DOT) felk.cvut.cz: a name="text1" title="This is comment for text1"><p>this is text1....</p></a> <a name="text2" title="This is comment for text2"><p>this is text2....</p></a [...] 2. An inline element cannot contain a block element. The a element is inline, and p is block. I don't know if this is in compliance with RFCxyz ;-) but this work fine in |
#16
| |||
| |||
|
|
Scripsit Adrienne Boswell: If the comment is imporant enough, it should be included either in the paragraph itself, a footnote, or end note. Example: p>Cats are good <sup><a href="#note1" title="Jump to note">1</a></sup> companions.</p p id="note1" class="notes">1. Rolo in particular</p Even this is questionable. First, the title attribute contains a predicate verb - always suspicious, usually a symptom of clickhereitis. Second, when the footnote is short, you might just as well copy it into a title attribute if you have one, so the user does not need to follow the link when he... er... doesn't need it: title="Note: Rolo in particular.". Third, a superscript 1 is really small, often unnoticeable, and hard to hit especially if you have a motoric disability. Finally, this would create the display Cats are good ¹ companions. It looks odd, and if you remove the space before the superscript 1, then it looks like associated with "good" only. Better: Cats are good companions. [1] More on footnotes and endnotes in HTML: http://www.cs.tut.fi/~jkorpela/www/fn.html |
#17
| ||||
| ||||
|
|
2. An inline element cannot contain a block element. The a element is inline, and p is block. I don't know if this is in compliance with RFCxyz ;-) |
|
but this work fine in IE, Firefox, Opera and most other browsers (exclude text like e.g. lynx). |
|
You can put any object(s) into <a></a> tag and this <a> can be name or link type. |
|
I mean <a name=...> or <a href=...> When you use <a name=... |
#18
| |||
| |||
|
|
Petr Vileta wrote [also in part]: but this work fine in IE, Firefox, Opera and most other browsers (exclude text like e.g. lynx). It doesn't matter if it _might_ work or not. A bug is a bug. |
#19
| |||
| |||
|
|
.oO(Petr Vileta) 2. An inline element cannot contain a block element. The a element is inline, and p is block. I don't know if this is in compliance with RFCxyz ;-) It violates the HTML spec, which is reason enough to _not_ do it. but this work fine in IE, Firefox, Opera and most other browsers (exclude text like e.g. lynx). It doesn't matter if it _might_ work or not. A bug is a bug. And if it doesn't work in Lynx or similar browsers, it should be a hint for you that there's something wrong. It's never a good idea to rely on the browser's forgiveness to cater for such bugs, since the results can be completely unpredictable if the browser has to guess what the author might have had in mind. For you it might be absolutely clear how <a ...><p>...</p></a> should be interpreted, for the browser it isn't that clear at all, because there are different ways to solve this situation. Since it violates the DTD, the browser is not bound to any spec and has the free choice what to do with it. I disagree with you. If this is a bug why this bug is in all browsers (except |
#20
| |||
| |||
|
|
I disagree with you. If this is a bug why this bug is in all browsers (except text like)? In addition to his I can anytime define <a> as block element and W3C CSS2 documentation say this about it: --- CITE --- 9.2.5 The 'display' property 'display' Value: inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit Initial: inline Applies to: all elements Inherited: no Percentages: N/A Media: all --- CITE --- |
* -(A) -- anchor -->"![]() |
| Thread Tools | |
| Display Modes | |
| |