im creating a site and my entire site is in javascript, but i was thinking do i need to have the site in html too and do i really need to have html for mobile version too?
desktop browser:
- html only version
- javascript version
mobile browser:
- html only version
- javascript version
do i really need to have html only version for people who dont have javascript and how much important it is to have html only version too?
A lot of this depends upon who your target audience which isn’t something you’ve told us anything about. It’s certainly reasonable these days for many sites to only target viewers who have Javascript capabilities.
But, assuming you want the search engines to index your site, you will have to offer something to them that meets their cloaking guidelines, yet shows content to them without javascript. If you aren’t aware of cloaking, it’s when a site shows one set of content to regular viewers and a different set of content to a search engine usually done in the interest of improving search results by deceiving the search engine about what content is really shown to viewers. You do not have to show exactly the same presentation to views and search engines, but you do need to show the same content.
As for a mobile-specific site, that is again up to you depending upon your target. You could turn the knob in a number of different places. On one end of the spectrum is just making sure that your regular site works in the popular smartphone browsers (Android, iPhone, Blackberry, Windows Phone, etc…). On the other end of the spectrum is a specific and different site design that is served up for mobile. In the middle is a small-screen aware design that adapts itself to smaller displays.