Society for the Definitive Abolition of Tag AbuseA volunteer association of SGML and XML users for improving the quality and reliability of markup |
| silmaril | menu | ( | home | | | home | |||
|---|---|---|---|---|---|---|---|---|---|---|
![]() Frequently Asked Questions | members | | | members | |||||||
| join | | | join | ||||||||
| report | | | report | ||||||||
| links | | | links | ||||||||
| faq | ) | faq | > | |||||||
Questions about Tag AbuseTag Abuse is not necessarily a pejorative term, merely descriptive. What is Tag Abuse?Tag Abuse is the term which describes the wilful or accidental use of an element type or character entity in an SGML or XML document for a purpose for which it was not designed, in such a way as to be misleading or inaccurate. A minor example (abusing HTML): <p>The new number for your FooBank ATM card is <code>123456</code>.</p> The code element in HTML is for computer code (programming fragments), not for coded numbers like access keys or passwords. There is a special element for sample literal sequences of characters called samp. What does it matter?Often it's relatively harmless and all it demonstrates is that the author is unable to apply accurate markup because it doesn't exist in the DTD or Schema, or because they are insufficiently trained. But poor quality markup leads to poor quality documents: searching fails or becomes misleading; conversions don't produce the expected output; printer and browser formatting become unreliable, and in extreme cases, data may become corrupted or users may end up with wrong information, and in mission-critical systems that can lead to more serious damage. It also contribute to perpetuating bad practices, faulty beliefs, or urban myths. Tag Abuse demonstrates that the DTD or Schema doesn't properly match the type of document being written, or that the author doesn't know how to use it. Why does Tag Abuse happen?Three main reasons for Tag Abuse have been identified so far:
One aspect which shares features of all three, and is one of the most prevalent, is the abuse of HTML markup for its visual appearance in a particular browser. Some appropriate remedies are addressed here. |
Prevention is better than cureHow do I stop it?If there is a better markup choice available, persuade the offending user that there is a more appropriate way to encode the text in question and point them in the direction of the documentation (if there is any). If there is no better option, fill in the Report Form and submit it so that document type designers can refer to it as an example. If the author at fault is yourself, try to RTFM, and if you're still convinced that the DTD is wrong, talk to the authors. Some sage advice from an experienced user: if you think the DTD needs modifying, you're probably wrong. But there are occasions when you'll be right. How do I prevent it reoccurring?Discuss the problem with the document type designers. Faulty document analysis may be to blame, or insufficient research into the real needs of the user community. Or life may simply have moved on since the design stage, and now presents a different set of problems. For abuse for visual purposes, education may be needed about how formatting is appropriately addressed in a structured-markup environment (eg CSS for HTML or XML). | Electronic Publishing Unit Kane Building University College Cork, Ireland sdata@www.ucc.ie |
||||||||