eTianbun Posted November 3, 2011 Share Posted November 3, 2011 Is it possible to use the <link> tag to link to another page depending on the media type?EX: <link type="text/html" media="Handheld" rel="Mobile_Version" /> I saw something like this some time ago, so i just want to know if its possible. Link to comment Share on other sites More sharing options...
eTianbun Posted November 3, 2011 Author Share Posted November 3, 2011 Any idea? Link to comment Share on other sites More sharing options...
Ingolme Posted November 3, 2011 Share Posted November 3, 2011 You can use the <link> element to load different stylesheets, but not different HTML pages. If the HTML is well structured, you should only need to change the CSS for handheld devices. After all, HTML is only intended to describe data, and not change the presentation.If you need to change the HTML, you'll have to tell your mobile users to go to a different domain, like m.mysite.com Link to comment Share on other sites More sharing options...
eTianbun Posted November 3, 2011 Author Share Posted November 3, 2011 Hmmm! I thought i saw it on Waptrick.com(?) Link to comment Share on other sites More sharing options...
Ingolme Posted November 3, 2011 Share Posted November 3, 2011 I don't see a <link> element in their source code. The HTML looks like it's from the year 2000. They probably use a server-side language to detect mobile devices. That's kind of tricky. You could look for a list of most popular User Agent strings for mobile devices and make the server display different content for those browsers. Link to comment Share on other sites More sharing options...
eTianbun Posted November 3, 2011 Author Share Posted November 3, 2011 Ok, thanks... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.