开发者

Can I use HTML4 and Javascript for a mobile version of my site?

开发者 https://www.devze.com 2023-04-12 08:48 出处:网络
I want to create a mobile version to http://thenamestork.com. After reading a few posts as well as the official google blog, I understand that a valid mobile site, that will get indexed in google mobi

I want to create a mobile version to http://thenamestork.com. After reading a few posts as well as the official google blog, I understand that a valid mobile site, that will get indexed in google mobile search, is made with different markup languag开发者_运维技巧es than html4. I also understand there's a problem with using JS, and my site is JS based (works more like an app than a content-website).

My focus is on smartphones, that CAN handle my site anyway - I thought all I'll need to do is changing the css layout - but there is no point if it won't get indexed by google.

So what's the best way to convert a html4 javacsript site into a valid, search engine friendly mobile version?


Google is actually quite forgiving and will index most sites that use something that looks a bit like HTML, even if it's nog 100% valid. Just to be on the safe side, though, you could try validating your HTML.

On the other hand, if you load content asynchronously (i.e. through AJAX), Google might not index it. Search engines generally only index the HTML that's sent to the browser when the page is loaded, without running any JavaScript.


You can certainly use html and javascript for a mobile site for smart phones. Browsers on smart phones are mostly the same as the ones you find on a desktop (with some added features).

jQuery Mobile is a good place to start. I have used it for a few sites I've worked on.


Yes you can, you might also want to check a little of CSS3 and Html5 since mobile devices are mostly compatible with!

0

精彩评论

暂无评论...
验证码 换一张
取 消