简体   繁体   English

HTML5 - 服务器端

[英]HTML5 — server side

How much does it matter what server side language is used for building a web app to take advantage of HTML 5? 使用服务器端语言构建Web应用程序以利用HTML 5有多重要? It seems to me that the ruby community will probably have the fastest uptake, and as a result the most support. 在我看来,红宝石社区可能会有最快的吸收,因此得到最多的支持。 Does that seem right? 那似乎对吗? If I want to make a serious investment in HTML5, what server side language should I use? 如果我想对HTML5进行大量投资,我应该使用哪种服务器端语言?

It doesn't matter which server-side language you use, they all support HTML 5. 使用哪种服务器端语言并不重要,它们都支持HTML 5。

You just have to make sure you write good markup that can be validated. 您只需要确保编写可以验证的好标记。

You will gain experience writing HTML as you build more complicated web applications with server side languages. 当您使用服务器端语言构建更复杂的Web应用程序时,您将获得编写HTML的经验。 I'd focus on one of those first and let the HTML come to you as you need it. 我首先关注其中一个,然后在需要时让HTML来找你。

One of the best ways to learn is by validating existing HTML and fixing all of the errors and warnings. 学习的最佳方法之一是验证现有HTML并修复所有错误和警告。 This will help teach you the common mistakes made when writing HTML and get you more familiar with the rules. 这将有助于教您编写HTML时遇到的常见错误,并让您更熟悉规则。

As far as server side languages go, you have several options and there are tons of resources already online to help you make the right decision. 就服务器端语言而言,您有多种选择,并且已有大量资源可以在线帮助您做出正确的决策。

http://articles.sitepoint.com/article/server-side-language-right http://articles.sitepoint.com/article/server-side-language-right
http://forums.whirlpool.net.au/forum-replies-archive.cfm/90884.html http://forums.whirlpool.net.au/forum-replies-archive.cfm/90884.html

It's all about picking the one that is right for you. 这一切都是为了选择适合你的那个。 And, the best part is, if you pick a language that doesn't suit you, you can learn a new one later. 而且,最好的部分是,如果你选择的语言不适合你,你可以稍后学习一门新语言

Also, here is some information on Books for Server Side Languages which may prove helpful. 此外,这里有一些关于服务器端语言的书籍的信息可能会有所帮助。

It doesn't matter at all. 这完全没关系。

Whatever server side platform you use should not be based on what revision of HTML you will render. 无论您使用何种服务器端平台,都不应基于要呈现的HTML版本。 The two are completely decoupled. 两者完全分离。 That is unless you opt for some framework that generates the HTML for you. 除非您选择一些为您生成HTML的框架,否则这是您的选择。

The server-side language you use has no bearing on HTML5. 您使用的服务器端语言与HTML5无关。

Presentation frameworks, if you opt to utilize one, may take a while to take full advantage of HTML5. 演示框架, 如果您选择使用它,可能需要一段时间才能充分利用HTML5。

I agree that the server side language may not matter much, though any framework you choose such as django or Ruby on Rails will hopefully have html helpers that you can use to build a view. 我同意服务器端语言可能并不重要,尽管您选择的任何框架(如django或Ruby on Rails)都希望拥有可用于构建视图的html帮助程序。

FWIW RoR 3.0 outputs valid HTML 5 FWIW RoR 3.0输出有效的HTML 5

http://guides.rails.info/3_0_release_notes.html http://guides.rails.info/3_0_release_notes.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM