Results 1 to 3 of 3

Thread: May use in HTML doc(DTD), XHTML(DTD) tags ?

  1. #1
    Join Date
    Oct 2004
    Posts
    425
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default May use in HTML doc(DTD), XHTML(DTD) tags ?

    May use in HTML doc(DTD), XHTML(DTD) tags ? When this page rendered (HTML) in a newest browser the xhtml will appear [or i must have XHTML(DTD) doc) ? In an old browser they just ignored ?
    eg.
    <input type="button".... />
    <br />

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Hmm...your English isn't clear but I think I understand.

    There is nothing stopping you from using XHTML syntax with an HTML doctype. The page, in terms of content will be rendered identical.

    The problem you'll have is that the HTML won't validate -- thereby perhaps putting browsers in quirks mode and throwing off any CSS styling.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Medyman is correct. But I don't understand why you want to. If you do that, you will have invalid code. It won't help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •