HTML/XHTML/XML 代码在不同的本地化版本中是否有所不同?

发布于 2024-12-25 12:09:21 字数 304 浏览 2 评论 0 原文

这是一个简单(而且可能很愚蠢)的问题,但是在不同的本地化中,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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酷炫老祖宗 2025-01-01 12:09:21

是的,到处都是一样的,因为标准规定了标签和属性的名称。它是标签和要本地化的属性值之间的内容。

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.

忆依然 2025-01-01 12:09:21

如果您正在编写 HTML5 代码,那么您基本上也可以定义自己的标签。

<div>Hello</div> = <stuff>Hello</stuff>

您只需要在样式表中引用该元素:

div { text-align: center; }
stuff {text-align: center; } 

If you are coding for HTML5, you can essentially define your own tags too.

<div>Hello</div> = <stuff>Hello</stuff>

You just need to reference the element in your stylesheet:

div { text-align: center; }
stuff {text-align: center; } 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文