SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 27 of 27

Thread: The <pre> tag

  1. #26
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Amit
    A quicke: But removing the prolog make non compliant to W3C standards ?
    The same thing happens with margin: auto; and no DOCTYPE.

  2. #27
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Amit
    A quicke: But removing the prolog make non compliant to W3C standards ?
    see point 5 under http://www.w3.org/TR/xhtml1/#strict
    An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol. Here is an example of an XHTML document. In this example, the XML declaration is included.
    so, it's not required (although you're strongly encouraged...which still only means it's optional). however, if you go for a different character encoding, you need to ensure it's set by some other means.

    if i'm not mistaken
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    and similar in your document head can be used quite compatibly for this...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •