Validate by URI

Enter the URI of a document you would like checked

Results for https://www.w3.org/TR/NOTE-xml-ql/

Error 1Warning 4Suggestion 2

HTML 4.01  -  text/html Information

Character encoding Code
HTTP Content-Type iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Byte order mark (BOM) No
Meta tag None found
Language Code
HTML tag None <html>
HTTP Content-Language None found
All language tags None found
Text direction Code
Default direction LTR (by default)
Unicode control codes None found
Markup Code
Non-ascii class or id names None
Non-NFC class or id names None
Notable attributes None found
Notable elements None found
Request headers Code
Accept-Language None found
Accept-Charset None found

TOP

Detailed report

  1. ErrorThe align attribute is used

    Explanation

    In the following tag or tags the align attribute was used:

    1. <p align="right">
    2. <img align="left" alt="W3C" border="0" src="/Icons/WWW/w3c_home" width="72" height="48"/>
    3. <h1 align="center">
    4. <h3 align="center">
    5. <img src="ex1.gif" align="MIDDLE" alt="[diagram]"/>
    6. <tr align="LEFT">
    7. <td align="RIGHT" valign="BASELINE">
    8. <td align="CENTER" valign="BASELINE">
    9. <td align="LEFT" valign="BASELINE">
    10. <td align="RIGHT">
    11. <td align="RIGHT">
    12. <td align="RIGHT">
    13. <td align="RIGHT">
    14. <td align="RIGHT">
    15. <td align="RIGHT">
    16. <td align="RIGHT">
    17. <td align="RIGHT">
    18. <td align="RIGHT">
    19. <td align="RIGHT">
    20. <td align="RIGHT">
    21. <td align="RIGHT">
    22. <td align="RIGHT">
    23. <td align="RIGHT">
    24. <td align="RIGHT">
    25. <td align="RIGHT">
    26. <td align="RIGHT">
    27. <td align="RIGHT">
    28. <td align="RIGHT">
    29. <td align="RIGHT">
    30. <td align="RIGHT">

    This attribute should no longer be used in HTML. In addition to being obsoleted by the HTML specification, embedding its values of left and right into the markup causes difficulties when translating into languages using right-to-left scripts, because the values need to be painstakingly reversed one by one. It is much better to handle this using CSS, since CSS makes it easy to propagate changes throughout this document, and indeed the site (and will in the future make life even easier as the start and end property values become more widely supported).

    What to do

    Remove the align attribute and use CSS to achieve the same effect.

    Further reading

    1. Presentational elements and attributes
    2. Quick tips: Presentation vs. content

    TOP

  2. WarningNon-UTF-8 character encoding declared

    Explanation

    The page currently uses the following non-UTF-8 character encoding declaration(s):

    Content-Type: text/html; charset=iso-8859-1

    UTF-8 is based on Unicode. A Unicode character encoding makes it easier to use a wide range of characters, from the registered trademark symbol to characters in multiple languages. It also simplifies the use of scripts and databases for multilingual sites, and allows you to more easily expand your site to cover new languages, when needed. Using non-UTF-8 encodings can also have unexpected results on form submission and URL encodings, which use the document's character encoding by default. The HTML5 specification and the Encoding specification recommend its use in the strongest terms.

    (UTF-16 is also a character encoding based on Unicode, but is little used on the Web, and you should not use it.)

    What to do

    Set your authoring tool to save your content as UTF-8, and change the encoding declarations.

    Further reading

    1. Character encodings explained
    2. Choosing and applying a character encoding
    3. Changing to UTF-8

    TOP

  3. WarningNon-preferred name used for legacy character encoding

    Explanation

    The page currently declares the character encoding using a non-preferred name:

    ISO-8859-1

    The preferred encoding name is:

    WINDOWS-1252

    A wider range of browsers will support your page if you use the preferred encoding name. However, it is strongly recommended that you convert your page to use the UTF-8 character encoding.

    What to do

    Preferably, set your authoring tool to save your content as UTF-8, and change the encoding declarations. Otherwise, change the name of the encoding for your page to the preferred name. (Legacy encoding names are listed in the Encoding specification, in the left column of the table in the section Names and labels.)

    Further reading

    1. Character encodings explained
    2. Choosing and applying a character encoding
    3. Changing to UTF-8

    TOP

  4. WarningEncoding declared only in HTTP header

    Explanation

    A character encoding is specified in the HTTP header (Content-Type: text/html; charset=iso-8859-1), but there was no matching encoding declaration in the page. This may lead to problems later if there is a chance that the document will be read from or saved to disk, CD, etc.

    In addition, the W3C Internationalization (i18n) Group recommends to always include a visible encoding declaration in a document, because it helps developers, testers, or translation production managers to check the encoding of a document visually.

    What to do

    Add information to indicate the character encoding of the page inside the page itself.

    Further reading

    1. Character encodings explained
    2. Declaring the character encoding for HTML

    TOP

  5. WarningThe html tag has no language attribute

    Explanation

    There is no language attribute in the html tag.

    <html>

    A language attribute on the html tag sets the default natural language for the page. This information is used for processing the content in various ways, including such things as spell-checking, accessibility, data formatting, hyphenation, default fonts and line-breaking, case conversion, and various other features for rendering the page. Every page should have the correct default language specified.

    What to do

    Add a lang attribute to the html tag that indicates the default language of your page.

    Example: <html lang='de'>

    Further reading

    1. Language declarations explained
    2. Declaring the overall language of a page
    3. Identifying in-document language changes
    4. Choosing language values

    TOP

  6. Suggestionb tags found with no class attribute

    Explanation

    One or more b tags that don't use a class attribute were found in the source code for this page. These tags may cause problems for localization if the content for which they are used has more than one semantic value.

    Total number of b tags: 28.

    Number of b tags without a class attribute: 28.

    What to do

    You should not use b tags if there is a more descriptive and relevant tag available. If you do use them, it is usually better to add class attributes that describe the intended meaning of the markup, so that you can distinguish one use from another.

    Further reading

    Using <b> and <i> tags

    TOP

  7. Suggestioni tags found with no class attribute

    Explanation

    One or more i tags that don't use a class attribute were found in the source code for this page. These tags may cause problems for localization if the content for which they are used has more than one semantic value.

    Total number of i tags: 44.

    Number of i tags without a class attribute: 44.

    What to do

    You should not use i tags if there is a more descriptive and relevant tag available. If you do use them, it is usually better to add class attributes that describe the intended meaning of the markup, so that you can distinguish one use from another.

    Further reading

    Using <b> and <i> tags

    TOP

W3Cx logo

Interested in “developing” your developer skills? In W3Cx’s hands-on Professional Certificate Program, learn how to code the right way by creating Web sites and apps that use the latest Web standards. Find out more!

Donate and help us build better tools for a better web.