如何使用 HTML 5?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2572902/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 02:37:55  来源:igfitidea点击:

How can I use HTML 5?

html

提问by Strawberry

I want to get ready for HTML 5 and start playing around with it. Do I need to install it or something before using it? How does it work? I'm currently on shared hosting.

我想为 HTML 5 做好准备并开始使用它。在使用它之前我需要安装它还是什么?它是如何工作的?我目前在共享主机上。

回答by Can Berk Güder

HTML5 isn't a server-side technology. All you need to get started is a browser that supports HTML5.

HTML5 不是服务器端技术。您所需要的只是一个支持 HTML5 的浏览器。

See these pages for HTML5 support in different layout engines:

请参阅这些页面以了解不同布局引擎中的 HTML5 支持:

http://wiki.whatwg.org/wiki/Implementations_in_Web_browsershttp://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)

http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)

回答by drewrockshard

You don't "install" HTML5 - did you install XHTML 1.1, or HTML 4.x? (no is the answer I'm looking for). Certain browsers support HTML 5 and some don't.

您没有“安装” HTML5 - 您安装的是 XHTML 1.1 还是 HTML 4.x?(否是我正在寻找的答案)。某些浏览器支持 HTML 5,有些不支持。

HTML 5 Browser Support/Engines: Comparison of layout engines (HTML5)

HTML 5 浏览器支持/引擎:布局引擎的比较 (HTML5)

HTML 5 Working Draft:HTML 5 Working Draft

HTML 5 工作草案:HTML 5 工作草案

回答by surabhi

It is the fifth revision of the HTML standard. HTML5 is also a potential candidate for cross-platform mobile applications.On 18 January 2011, the W3C introduced a logo to represent the use of or interest in HTML5.

它是 HTML 标准的第五次修订。HTML5 也是跨平台移动应用程序的潜在候选者。2011 年 1 月 18 日,W3C 引入了一个标志来表示对 HTML5 的使用或兴趣。

回答by BalusC

You don't need to install anything. Just a texteditor and a webserver is enough. You only need to hope that the webpage visitors uses a webbrowser which supports HTML5 fully. Right now, there aren't many of them out.

你不需要安装任何东西。只需一个文本编辑器和一个网络服务器就足够了。您只需要希望网页访问者使用完全支持 HTML5 的网络浏览器即可。目前,他们中的人并不多。

回答by Ming-Tang

<!DOCTYPE html>is the doctype of HTML 5, add it on the top of your document.

<!DOCTYPE html>是 HTML 5 的文档类型,请将其添加到文档的顶部。

Even if you didn't add the doctype, HTML 5 tags still work (if supported).

即使您没有添加文档类型,HTML 5 标签仍然有效(如果支持)。

回答by RvdK

No.

不。

Like all HTML it has nothing to do with hosting (unlike PHP etc).

像所有 HTML 一样,它与托管无关(与 PHP 等不同)。

Just create your own page with HTML5 elements and upload it to your hosting. Then you can view the page in you browser, if the browser supports HTML5 of course.

只需使用 HTML5 元素创建您自己的页面并将其上传到您的主机。然后您可以在浏览器中查看页面,当然如果浏览器支持 HTML5。