MoonPoint Support Logo


Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals

Advanced Search
Sun Mon Tue Wed Thu Fri Sat

Fri, Feb 24, 2012 4:10 pm

JavaScript Language Versus Type Attribute

After updating an old webpage, I validated the HTML on the page with the W3C Markup Validation Service. One of the errors reported for the page was the following one:

Error image - white x in red circle Line 19, Column 30: required attribute "TYPE" not specified

<script language="JavaScript">

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type= "text/javascript" for <script>.

In the head section of the HTML code, I had the following line:

<script language="JavaScript">

I didn't realize that the language attribute has been deprecated in favor of the type attribute. According to a posting I found at HTML Script tag: type or language?

The language attribute has been deprecated. Both will work in pretty much all browsers, but the first better adheres to modern standards.

The javascript code on the page was working as expected when I viewed the page with a browser, but I changed the line to the one below:

<script type="text/javascript">

[/network/web/browser/javascript] permanent link

Fri, Feb 17, 2012 9:36 pm

Viewing Message Headers in Hotmail

For Hotmail email accounts, I've posted the steps for viewing an email message's headers, which can provide information about the true orgination point, for an email message here.

[/network/email/hotmail] permanent link

Tue, Feb 07, 2012 11:25 pm

Connecting to a Wireless Network with OS X

I've provided instructions here for connecting to a wireless network from a Mac OS X laptop.

[/os/os-x/wireless] permanent link

Sat, Feb 04, 2012 9:45 pm

Microsoft Windows Live Messenger Winks .dt2 Files

Microsoft Windows Live Messenger, at least with version 2009, stores a Flash file within a .dt2 file associated with a "wink". The .swf file provides the animation associated with a wink. The .swf file can be extracted from the .dt2 file using Microsoft's expand utility.

[ More Info ]

[/network/chat/live_messenger] permanent link

Once You Know, You Newegg AliExpress by

Shop Amazon Local - Subscribe to Deals in Your Neighborhood

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo