Welcome to WebmasterWorld Guest from 54.196.217.43

Forum Moderators: open

Message Too Old, No Replies

Javascript over HTML?

Is Javascript advantageous over...

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

New User

joined:Mar 17, 2004
posts:39
votes: 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)

New User

10+ Year Member

joined:Dec 3, 2003
posts:33
votes: 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)
5:23 pm on Apr 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 14, 2004
posts:1181
votes: 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.
7:55 pm on Apr 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 22, 2002
posts:1749
votes: 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.
8:33 pm on Apr 1, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 17, 2004
posts:41
votes: 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.
11:37 pm on Apr 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 14, 2004
posts:1181
votes: 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.