Skip to content

chore(zh-cn): sync Basic HTML Syntax with latest en-US and fix links #27985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Tsingloong611
Copy link

Description

This PR fully syncs the Simplified Chinese translation of the “Basic HTML Syntax” page with the latest English content and fixes two incorrect internal links.

Motivation

The original zh-CN translation was outdated and missing recent improvements from the en-US version. This update ensures better alignment, completeness, and correctness for Chinese readers. Two internal links were also incorrectly pointing to /en-US/ and have been fixed to follow localization standards.

Additional details

  • Updated file: files/zh-cn/learn_web_development/core/structuring_content/basic_html_syntax/index.md
  • Added images:
    • grumpy-cat-small.png
    • grumpy-cat-attribute-small.png
  • l10n.sourceCommit set to 3e543cd

Related issues and pull requests

None

@Tsingloong611 Tsingloong611 requested a review from a team as a code owner July 8, 2025 07:51
@Tsingloong611 Tsingloong611 requested review from irvin and removed request for a team July 8, 2025 07:51
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jul 8, 2025
Comment on lines 285 to 287
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
```
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!-- __reviewdog__:ChAyZWQ4MzVjZmFlMmI3MzQ5EgptZG4tbGludGVy -->


文档类型是一个历史遗留问题,需要包含它才能使其他东西正常工作。现在,只需要知道 `<!DOCTYPE html>` 是最短的有效文档声明
最近,doctype 成为了一个历史遗留物,为了让其他一切正常工作而必须包含它。`<!doctype html>` 是算作有效 doctype 的最短字符序列。你只需要知道这些
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
最近,doctype 成为了一个历史遗留物,为了让其他一切正常工作而必须包含它。`<!doctype html>` 是算作有效 doctype 的最短字符序列。你只需要知道这些!
最近,doctype 成为了一个历史遗留物,为了让其他一切正常工作而必须包含它。`<!doctype html>` 是算作有效 doctype 的最短字符序列。你只需要知道这些!

按 ESC 退出编辑区域,按 Tab 可插入制表符 <code>'\t'</code>
你完成的 HTML 元素 body 的内容应该看起来像这样:html
<h1>一些音乐</h1>
<p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD033/no-inline-html Inline HTML [Element: h1]

Copy link
Contributor

github-actions bot commented Jul 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Status: Review requested
Development

Successfully merging this pull request may close these issues.

1 participant