1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice


Discussion in 'Web Design, HTML And CSS Forums' started by gameyharp, Nov 6, 2007.

  1. gameyharp

    gameyharp New Member

    I'm having an issue putting JS into xhtml. The tutorial i'm going through at w3schools shows all of the JS in html and not xhtml. Can someone please tell me how to convert it? Heres a little bit of what I have
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    <title>simple document</title>
    <script type="text/javascript">
    document.write("<h1>Hello World!</h1>")
    The only thing that I think i could be doing wrong is in the document declartion or w/e I shouldn't be using strict I should be using somehting else. All help is appreciated.
    Last edited by a moderator: Nov 6, 2007
  2. pradeep

    pradeep Team Leader

Share This Page