![]() |
#1 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Error: no declaration found for element 'u'
I'm pretty sure I remember using just <u> and </u> tags for underlined text in the past. But now it seems Sigil will always spit out an error about any 'u' tags used anywhere.
If you turn on HTML Tidy and let it change all underlines, italics, bold, etc. to sgc-# for each page, you no longer get the error. I prefer not using HTML Tidy though since the sgc-# for italics, bold or underline can change for each page, making it more difficult to find if you're making corrections. Is there no way to use the plain 'u' tag any longer? |
![]() |
![]() |
![]() |
#2 | |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I found this message from pdurrant:
Quote:
CSS answers though: http://www.w3schools.com/cssref/pr_t...decoration.asp It can also be used as a span style as well. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
That explains it, thanks for the info.
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
|
I think that you can use the <ins> ... </ins> tags for this task.
|
![]() |
![]() |
![]() |
#5 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I think you are right about <ins>, for now. But its purpose is not decorating text, but showing where text has been inserted, as texts of laws which have been revised. So if it works now, it might now work in the future.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
As you say, <ins> is intended for inserted text, the fact that it's usually rendered as underlined by default should not be relied upon. If one wants underlined text, it's better to use <span> with a class, or maybe a styled <em> (emphasized), with or without class, if that's what the underlined text represents:
Code:
An <span class="uline">underlined</span> word. An <em>underlined</em> word. An <em class="uline">underlined</span> word. Code:
span.uline { text-decoration: underline } em { text-decoration: underline; font-style: normal } em.uline { text-decoration: underline; font-style: normal } |
![]() |
![]() |
![]() |
#7 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Presumably, though it will offend the technically minded, you could future proof <ins> by listing it in the stylesheet, just as you have defined <em> above.
But if the document were one that needed to be searched, this trick could cause you grief. Things that you meant only to emphasize could be picked up as added phrases when that is not the case. I can imagine a lover's note where you emphasized the phrases but the machine says they were all an afterthought! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub validation error help "attribute border is not declared for element img | bmacklin | ePub | 12 | 11-06-2015 11:00 AM |
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" | oren | Android Devices | 1 | 02-20-2012 04:10 AM |
Unfinished Element error | Vagabondista | ePub | 3 | 09-14-2010 12:12 PM |