-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[zh-tw] accessibility html section #26199
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有一些问题可以看下
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
你可能會想,為什麼語義化很重要。畢竟,你可以使用 CSS 和 JavaScript 的組合幾乎可以讓 HTML 元素以任何你想要的方式運作。例如,網站上播放影片的控制按鈕可以像這樣標記: | ||
|
||
```html | ||
<div>Play video</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以适当本地化代码示例,下同
我們已經討論過正確語義的重要性,以及為什麼應該使用正確的 HTML 標籤。使用不當,是無障礙性嚴重受損的主要原因之一。 | ||
在網路世界中,事實上,人們常用 HTML 標籤做一些非常奇怪的事情。對 HTML 的濫用無非是因還未完全遺忘舊有的做法,有些則純粹是無知。無論如何,你應該避免撰寫這樣的不良程式碼。 | ||
有時你無法擺脫糟糕的標籤——頁面可能由某種無法完全控制的伺服器端框架生成,或者可能有無法控制的第三方內容(如廣告橫幅)。 | ||
目標不是「全有或全無」;我們能做的就是開始改進,這都將有助於無障礙性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
markdown断一行会引入额外空格,如需分段,至少需要断两行(英语文档也是这样做的)
我們已經討論過正確語義的重要性,以及為什麼應該使用正確的 HTML 標籤。使用不當,是無障礙性嚴重受損的主要原因之一。 | |
在網路世界中,事實上,人們常用 HTML 標籤做一些非常奇怪的事情。對 HTML 的濫用無非是因還未完全遺忘舊有的做法,有些則純粹是無知。無論如何,你應該避免撰寫這樣的不良程式碼。 | |
有時你無法擺脫糟糕的標籤——頁面可能由某種無法完全控制的伺服器端框架生成,或者可能有無法控制的第三方內容(如廣告橫幅)。 | |
目標不是「全有或全無」;我們能做的就是開始改進,這都將有助於無障礙性。 | |
我們已經討論過正確語義的重要性,以及為什麼應該使用正確的 HTML 標籤。使用不當,是無障礙性嚴重受損的主要原因之一。 | |
在網路世界中,事實上,人們常用 HTML 標籤做一些非常奇怪的事情。對 HTML 的濫用無非是因還未完全遺忘舊有的做法,有些則純粹是無知。無論如何,你應該避免撰寫這樣的不良程式碼。 | |
有時你無法擺脫糟糕的標籤——頁面可能由某種無法完全控制的伺服器端框架生成,或者可能有無法控制的第三方內容(如廣告橫幅)。 | |
目標不是「全有或全無」;我們能做的就是開始改進,這都將有助於無障礙性。 |
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
files/zh-tw/learn_web_development/core/accessibility/html/index.md
Outdated
Show resolved
Hide resolved
@AndreaFan123 你好,对于目前的审查意见还有什么疑问吗,如无疑问可以批量应用一下suggestion,并点击Re-request review来通知我合并本PR |
<img src="dinosaur.png" aria-labelledby="dino-label" /> | ||
|
||
<p id="dino-label"> | ||
一隻 Mozilla 紅色暴龍:一隻像人一樣直立站立的雙腳恐龍,有小小的手臂,以及一個佈滿尖銳牙齒的大頭。 |
There was a problem hiding this comment.
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 🐶
一隻 Mozilla 紅色暴龍:一隻像人一樣直立站立的雙腳恐龍,有小小的手臂,以及一個佈滿尖銳牙齒的大頭。 | |
一隻 Mozilla | |
紅色暴龍:一隻像人一樣直立站立的雙腳恐龍,有小小的手臂,以及一個佈滿尖銳牙齒的大頭。 |
<img | ||
src="dinosaur.png" | ||
alt="Mozilla 紅色暴龍" | ||
aria-describedby="dinodescr" /> |
There was a problem hiding this comment.
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 🐶
<img | |
src="dinosaur.png" | |
alt="Mozilla 紅色暴龍" | |
aria-describedby="dinodescr" /> | |
<img src="dinosaur.png" alt="Mozilla 紅色暴龍" aria-describedby="dinodescr" /> |
alt="Mozilla 紅色暴龍" | ||
aria-describedby="dinodescr" /> | ||
<figcaption id="dinodescr"> | ||
一隻 Mozilla 紅色暴龍:一隻像人一樣直立站立的雙腳恐龍,有小小的手臂,以及一個佈滿尖銳牙齒的大頭。 |
There was a problem hiding this comment.
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 🐶
一隻 Mozilla 紅色暴龍:一隻像人一樣直立站立的雙腳恐龍,有小小的手臂,以及一個佈滿尖銳牙齒的大頭。 | |
一隻 Mozilla | |
紅色暴龍:一隻像人一樣直立站立的雙腳恐龍,有小小的手臂,以及一個佈滿尖銳牙齒的大頭。 |
<a target="_blank" href="2017-annual-report.ppt" | ||
>2017 年度報告 (PowerPoint)</a | ||
> |
There was a problem hiding this comment.
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 🐶
<a target="_blank" href="2017-annual-report.ppt" | |
>2017 年度報告 (PowerPoint)</a | |
> | |
<a target="_blank" href="2017-annual-report.ppt">2017 年度報告 (PowerPoint)</a> |
Description
Completed a11y html translation.
Motivation
Additional details
Related issues and pull requests