What all web servers support HTML 5? [closed] - html

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
What all web servers support HTML 5 content? Do they have some config that allows to switch between HTML versions based on client browsers?

HTML 5 was explicitly designed to degrade gracefully in older browsers that do not understand it. As such, there's no need to serve different versions. You may or may not have to put in some client-side Javascript-based shims for some of the more advanced HTML 5 features, but there's no need to have several versions of the same HTML document.

You can determine the users browser agent in PHP or some other web-cgi, look it up in some giant array to determine if it's HTML5 compatible, and serve them a HTML5 page if so, HTML4 if not.
In pure HTML, browsers ignore elements they don't understand, but will treat it like it's not there, so you can use that for SOME tricks, but it's mostly done by serving a different page for HTML4/HTML5 browsers.

Web servers would know client's browser by Useragent.
And with browers' names and versions, the server can identify whether a client's browser
supports HTML5 or not.
With that information, you can dynamically change DOCTYPE in your page

Related

Do I need to change older HTML to new HTML5 standards? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
So say I have a website that was built using tables and specifically width tags (Awful I know). According to w3schools that website isn't using HTML5 because the width is no longer supported. My question is would I need to change that code, because it wouldn't be supported by modern day browsers? Or perhaps because it won't be supported later down the road?
That all depends on what browsers you want your site to support. However, as a practical matter most browsers are going to be backward compatible for a while. Most modern browsers still support very early versions of HTML going back to the mid 90's.
That said, it is always a good idea to make sure you are setting the doctype tag on the page appropriately so the browser knows what it is getting and can accommodate it.
There never was a width tag in HTML. For some elements, the width attribute can be used. There is no change in browser support to it; HTML5 drafts require browsers to support legacy attributes even though those drafts declare them as obsolete. W3schools is unreliable and misleading; see w3fools.
As a general rule I would say no. I haven't read the spec or anything but it sounds like the width tag is being depreciated on tables?
If this site was intended to last 6-7 years without major changes then maybe you might want to futureproof it but it seems rather unlikely that the browser venders will break support any time soon. Too much of the web would be broken.

Providing website in only html 5? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am designing a website which has to reach old and new browsers. With this in mind should I program in HTML5? Currently the website is only in html 5. The question is: Is it stupid in my case to use HTML5, should I use a "switch"(is this even possible) to redirect old browsers?
The question is, what aspects of html5 do you plan to use?
If your website is mostly static html & javascript, no audio and no embedded video, then I would say it use HTML4.
If your not using any tags in html5 dont rush it, no
If you're trying to reach a broad audience, I wouldn't necessarily jump into HTML 5 yet. It's still not supported widely or consistently enough to rely on it. However, there are several resources available if you want to give it a shot.
When Can I Use... should be a big help. It shows which features of HTML 5 are supported in which browsers fairly clearly. It would probably be good to research further about each tag you plan on using. Learn how the major browsers have implemented the tags, and if there's any quirks or bare-bones implementations that might be an obstacle to the average user.
I've heard Modernizr listed as a means of leveraging HTML 5 elements while maintaining backwards support for old browsers. Do note that I can't testify personally to how well it performs, having never used it before.

Is there something like an equivalent of a "Go get Flash" link for HTML5? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm building a website that requires HTML5 features in order to run. If the features are not present in the browser we display a message to the user that they need to upgrade their browser in order to fully view the content.
What I would like to do is provide a link to a site with some information on what HTML5 is and what browsers support it, etc.
We'd prefer not have to build out our HTML5 information pages and just link to something "official" instead. Similar to the "Go get Flash" link (to http://get.adobe.com/flashplayer/) that is usually used to direct the user to Adobe if Flash isn't present.
Does such a site exist?
Try the API from html5please.com . It will show a message if the HTML5 features your site requires are unavailable on the user's browser and give them links to where they can download a browser that supports those features.
The message is configurable, but can look like this:
http://api.html5please.com/
These are some websites that may help explain the need to upgrade your browser:
http://browsehappy.com/
http://www.updatebrowser.net/
http://www.whatbrowser.org/en/
http://upgradeyourbrowser.net/

Statistics about HTML versions [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
There are various statistics on the web, about browser usage, OS usage etc.
Is there a statistics about HTML versions? Where we can see percentage of HTML 5, HTML 4.01, HTML 3.2 in certain month and see increasing number of documents in HTML 5?
I could find these links:
http://w3techs.com/technologies/details/ml-html_transitional/4/all
http://try.powermapper.com/demo/statsversions.aspx
It doesn’t really matter which DOCTYPE you use, as long as you use one. All HTML versions are backwards compatible by design, so I’m not sure how this would be useful.
To answer your question though, you could use Blekko to grep the web for <!DOCTYPE html>: http://blekko.com/webgrep?page=view&id=596317f0c5088f34763e084129481a90
Powermapper claims to track this on their HTML Version Statistics page. As of Mar 2012, HTML5 is around 15%.
You probably have to derive that information from the browser usage. E.g. check which browser supports which html version and then search for browser usage by version.
http://www.netmarketshare.com/browser-market-share.aspx?qprid=1&qpcustomb=1 (Browser usage by version).

(HTML + CCS3 Generated Content for Paged Media) to PDF? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Is there any way to render a PDF from a HTML doc styled with CSS3 Generated Content for Paged Media?
If there is not an application like that, what can I use as a base to build such a converter?
Thanks
They only application I know of that can possibly convert HTML/CSS3 to good quality PDF is PrinceXML. (And it is my impression, that Google licensed and utilizes their code somehow in GoogleDocs for PDF export.)
However, this is a commercial application, and I think it comes with a hefty price tag.
One of it's leading lights is Håkon Lie, who is also behind all the technical achievements of the Opera web browser.
Here is a 2 years old Google Tech Talks video where Lie outlines some of the technologie behind PrinceXML:
http://www.youtube.com/watch?v=vcXUrNSvjhU
wkhtmltopdf should handle this very nicely.
http://code.google.com/p/wkhtmltopdf/
Searching the web, I have found
several command line tools that allow
you to convert a HTML-document to a
PDF-document, however they all seem to
use their own, and rather incomplete
rendering engine, resulting in poor
quality. Recently QT 4.4 was released
with a WebKit widget (WebKit is the
engine of Apples Safari, which is a
fork of the KDE KHtml), and making a
good tool became very easy.good tool became very easy.
DOMPDF is an open source PHP project to convert HTML to PDF documents, but it doesn't support CSS3 generated content, but the project is very active. You are welcome to participate !
It's CSS 2.1 support is pretty good, and a few CSS3 properties have been added recently in the SVN trunk.