这是一个简单(而且可能很愚蠢)的问题,但是在不同的本地化中,HTML、XHTML 或 XML 代码是否与我在使用“en-us”本地化的系统上输入的代码保持相同?
EG,如果我有 、 和 为 HTML、XHTML 或 XML 文档生成的标签(在使用“en-us”语言环境的系统上编写,并且有人尝试使用具有“sv-SE”语言环境的系统呈现文档,我的理解是标签应该保持不变。我的假设是否正确?
该代码当前是使用 .NET 的 MSHTML 命名空间中的 WebBrowser 控件生成的。
This is a simple (and probably stupid) question, but across different localizations, does HTML, XHTML, or XML code remain the same as if I were typing it up on a system using the "en-us" localization?
E.G., if I have <strong>, <em>, and <font> tags that are generated for an HTML, XHTML or XML document (written on a system using the "en-us" locale, and someone tried to render the document using a system with the "sv-SE" locale, my understanding is that the tags should remain the same. Am I correct in assuming this?
The code is currently generated using the WebBrowser control in the MSHTML namespace of .NET.
发布评论
评论(2)
是的,到处都是一样的,因为标准规定了标签和属性的名称。它是标签和要本地化的属性值之间的内容。
Yes, it's the same everywhere, as the standard dictates the names of the tags and attributes. It's the stuff in between the tags and the values of the attributes that would be localized.
如果您正在编写 HTML5 代码,那么您基本上也可以定义自己的标签。
您只需要在样式表中引用该元素:
If you are coding for HTML5, you can essentially define your own tags too.
You just need to reference the element in your stylesheet: