homepage Welcome to WebmasterWorld Guest from 54.226.0.225
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript over HTML?
Is Javascript advantageous over...
sderenzi




msg:1475405
 3:45 pm on Apr 1, 2004 (gmt 0)

I'm currently coding in HTML & CSS. I've been wondering lately about whether Javascript combined with CSS might be a better approach. I have seen how Javascript works and the variety of methods one can use. I was also considering XHTML until I was told by a webmaster that most browsers do not support it and it would simply limit the number of users visiting my site.

 

anime_otaku




msg:1475406
 4:37 pm on Apr 1, 2004 (gmt 0)

the main advantage for html over js is of course spiders. javascript is harder for bots to digest (if at all) than html. (especially if the js is in an external file)

Rambo Tribble




msg:1475407
 5:23 pm on Apr 1, 2004 (gmt 0)

JavaScript and CSS are tools meant to be used in conjunction with HTML. It isn't a question of one or the other, it's a question of how to best use them together.

RonPK




msg:1475408
 7:55 pm on Apr 1, 2004 (gmt 0)

Client settings, firewalls, company regulations may prevent JavaScript from being executed - whereas the web browser that does not support HTML has yet to be invented.

webnerd




msg:1475409
 8:33 pm on Apr 1, 2004 (gmt 0)

Typically javascript is used to enhance a site such as adding dynamic content etc.
After adding the enhancement to a webpage the page should be tested with both javascript enabled and disabled on your browser.
That way both the javascript enabled and disabled clients would have a meaningful page presented to them.

Rambo Tribble




msg:1475410
 11:37 pm on Apr 1, 2004 (gmt 0)

RonPK,

If you check out the W3C's latest trick in XHTML 2, the deprecated HTML tag, you'll see it's on the way.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved