Welcome to WebmasterWorld Guest from 54.224.57.95

Forum Moderators: open

Message Too Old, No Replies

Javascript over HTML?

Is Javascript advantageous over...

     
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.
4:37 pm on Apr 1, 2004 (gmt 0)

10+ Year Member



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)
5:23 pm on Apr 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
7:55 pm on Apr 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
8:33 pm on Apr 1, 2004 (gmt 0)

10+ Year Member



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.
11:37 pm on Apr 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month