W3C HTML Validation Question

Posted:
in Genius Bar edited January 2014
I was validating the HTML in one of my pages using the W3C HTML Validation Service, and one of the lines that it had a problem with was this:



<script language="JavaScript">

Error: required attribute "TYPE" not specified



I assume that means that it should read:

<script language="JavaScript" type="something">



but what the hell is the something? the line looks okay to me, that is, I've never written it differently.



Any help is appreciated.

Comments

  • Reply 1 of 6
    eugeneeugene Posts: 8,254member
    type="text/javascript"
  • Reply 2 of 6
    stroszekstroszek Posts: 801member
    [quote]Originally posted by Eugene:

    <strong>type="text/javascript"</strong><hr></blockquote>



    thanks, Eugene. Do you know why this is necessary? I know HTML, but the way that I learned it was by studying what Dreamweaver wrote and figuring out what everything does, but Dreamweaver has NEVER written that...



    And, for that matter, why the hell does Dreamweaver not write valid HTML?! <img src="graemlins/bugeye.gif" border="0" alt="[Skeptical]" />
  • Reply 3 of 6
    i am monkeyi am monkey Posts: 324member
    It's funny when the term "Web Standards" isn't so standard after all!!!!! Actually it's not funny!



    BBedit is your friend!
  • Reply 4 of 6
    stroszekstroszek Posts: 801member
    BBedit is your friend if you think like that. I don't. I'm a designer, not an engineer. I think visually, not in HTML.
  • Reply 5 of 6
    r. h.r. h. Posts: 56member
    [quote]Originally posted by Stroszek:

    <strong>And, for that matter, why the hell does Dreamweaver not write valid HTML?! <img src="graemlins/bugeye.gif" border="0" alt="[Skeptical]" /> </strong><hr></blockquote>



    That ones easy... the good folk over at Macromedia just can't keep up with those hyperactive standards organizations. Unfortuantely, the best we can hope for is compliance with last years standard. But then again... that's about how old most of the browsers in active use are too -- so frankly, I don't see any problems with Dreamweaver's code.
  • Reply 6 of 6
    burningwheelburningwheel Posts: 1,827member
    [quote]Originally posted by Stroszek:

    <strong>BBedit is your friend if you think like that. I don't. I'm a designer, not an engineer. I think visually, not in HTML.</strong><hr></blockquote>



    i'm a designer too but i use bbedit. i learned html by hand coding, doesn't bother me or affect the way i see a page design. maybe i'm special
Sign In or Register to comment.