Skip to content

Commit

Permalink
[zh-tw] sync translated content (#23271)
Browse files Browse the repository at this point in the history
* zh-tw: sync translated content

* Move URL related docs to the new area

ref: mdn/content#35202

---------

Co-authored-by: allo <[email protected]>
  • Loading branch information
mdn-bot and yin1999 committed Aug 27, 2024
1 parent c67a2b4 commit da0caba
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 153 deletions.
2 changes: 2 additions & 0 deletions files/zh-tw/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@
/zh-TW/docs/Web/HTML/Introduction /zh-CN/docs/learn/HTML/Introduction_to_HTML
/zh-TW/docs/Web/HTML/區塊級元素 /zh-TW/docs/Glossary/Block-level_content
/zh-TW/docs/Web/HTTP/Access_control_CORS /zh-TW/docs/Web/HTTP/CORS
/zh-TW/docs/Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs /zh-TW/docs/Web/URI/Authority/Choosing_between_www_and_non-www_URLs
/zh-TW/docs/Web/HTTP/Basics_of_HTTP/Data_URLs /zh-TW/docs/Web/URI/Schemes/data
/zh-TW/docs/Web/HTTP/Link_prefetching_FAQ /zh-TW/docs/Glossary/Prefetch
/zh-TW/docs/Web/HTTP/Response_codes /zh-TW/docs/Web/HTTP/Status
/zh-TW/docs/Web/HTTP/Server-Side_Access_Control /zh-TW/docs/Web/HTTP/CORS
Expand Down
4 changes: 0 additions & 4 deletions files/zh-tw/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2868,10 +2868,6 @@
"yyss"
]
},
"Web/HTTP/Basics_of_HTTP/MIME_types": {
"modified": "2020-06-08T05:57:19.890Z",
"contributors": ["hikariTW", "willynpi"]
},
"Web/HTTP/Browser_detection_using_the_user_agent": {
"modified": "2020-09-21T11:14:16.789Z",
"contributors": ["iigmir", "jwhitlock"]
Expand Down
8 changes: 4 additions & 4 deletions files/zh-tw/web/html/element/a/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ slug: Web/HTML/Element/a

- {{HTTPHeader("Content-Disposition")}} HTTP 標頭
- URL [路徑](/zh-TW/docs/Web/API/URL/pathname)中的最終段落
- {{HTTPHeader("Content-Type")}} 標頭中的{{Glossary("MIME_type", "媒體類型")}},以及 [`data:` URL](/zh-TW/docs/Web/HTTP/Basics_of_HTTP/Data_URLs) 的開頭,或是 [`blob:` URL](/zh-TW/docs/Web/API/URL/createObjectURL_static) 的 {{domxref("Blob.type")}}。
- {{HTTPHeader("Content-Type")}} 標頭中的{{Glossary("MIME_type", "媒體類型")}},以及 [`data:` URL](/zh-TW/docs/Web/URI/Schemes/data) 的開頭,或是 [`blob:` URL](/zh-TW/docs/Web/API/URL/createObjectURL_static) 的 {{domxref("Blob.type")}}。

- `filename`:定義值可建議作為文件名。 `/``\` 字符將轉換為底線(`_`)。檔案系統可能禁止文件名中的其他字符,因此如果需要,瀏覽器將調整建議的名稱。
- `filename`:定義值可建議作為文件名。`/``\` 字符將轉換為底線(`_`)。檔案系統可能禁止文件名中的其他字符,因此如果需要,瀏覽器將調整建議的名稱。

> [!NOTE]
>
Expand All @@ -41,7 +41,7 @@ slug: Web/HTML/Element/a
- : 超連結指向的 URL。連結不限於基於 HTTP 的 URL——它們可以使用瀏覽器支持的任何 URL 方案:

- 具有文件片段的頁面部分
- 具有[文字片段](/zh-TW/docs/Web/Text_fragments)的特定文本部分
- 具有[文字片段](/zh-TW/docs/Web/URI/Fragment/Text_fragments)的特定文本部分
- 具有媒體片段的媒體文件部分
- 使用 `tel:` URL 的電話號碼
- 使用 `mailto:` URL 的電子郵件地址
Expand Down Expand Up @@ -519,4 +519,4 @@ document
- {{CSSxRef(":link")}} 是一個 CSS 虛擬類,將匹配 `<a>` 元素,其中 `href` 屬性中的 URL 尚未被用戶訪問過。
- {{CSSxRef(":visited")}} 是一個 CSS 虛擬類,將匹配 `<a>` 元素,其中 `href` 屬性中的 URL 曾經被用戶訪問過。
- {{CSSxRef(":any-link")}} 是一個 CSS 虛擬類,將匹配具有 `href` 屬性的 `<a>` 元素。
- [文字片段](/zh-TW/docs/Web/Text_fragments)是添加到 URL 中的用戶代理指令,允許內容作者鏈接到頁面上的特定文本,而不需要 ID。
- [文字片段](/zh-TW/docs/Web/URI/Fragment/Text_fragments)是添加到 URL 中的用戶代理指令,允許內容作者鏈接到頁面上的特定文本,而不需要 ID。
2 changes: 1 addition & 1 deletion files/zh-tw/web/html/element/base/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ slug: Web/HTML/Element/base
- `href`
- : 用於整個文件中相對 URL 的基礎 URL。
允許絕對和相對 URL。
不允許 [`data:`](/zh-TW/docs/Web/HTTP/Basics_of_HTTP/Data_URLs)`javascript:` URL。
不允許 [`data:`](/zh-TW/docs/Web/URI/Schemes/data)`javascript:` URL。
- `target`

- : 顯示來自 {{HTMLElement("a")}}、{{HTMLElement("area")}} 或 {{HTMLElement("form")}} 元素的導航結果的**關鍵字****作者定義的名稱**的默認{{Glossary("browsing context", "瀏覽上下文")}}。以下關鍵字具有特殊含義:
Expand Down

This file was deleted.

21 changes: 0 additions & 21 deletions files/zh-tw/web/http/resources_and_uris/index.md

This file was deleted.

4 changes: 2 additions & 2 deletions files/zh-tw/web/http/session/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ l10n:

在用戶端—伺服器協定中,是用戶端建立連接。在 HTTP 中打開連接意味著在底層傳輸層啟動一個連接,這通常是 TCP。

對於 TCP,用於計算機上的 HTTP 伺服器的默認端口是 80。也可以使用其他端口,例如 8000 或 8080。要提取的頁面的 URL 包含域名和連接埠,如果連接埠是 80 則後者可以省略。有關更多詳細訊息,請參見[識別 Web 上的資源](/zh-TW/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web)
對於 TCP,用於計算機上的 HTTP 伺服器的默認端口是 80。也可以使用其他端口,例如 8000 或 8080。要提取的頁面的 URL 包含域名和連接埠,如果連接埠是 80 則後者可以省略。有關更多詳細訊息,請參見 [URL 參考](/zh-TW/docs/Web/URI)

> [!NOTE]
> 用戶端—伺服器模型不允許伺服器在沒有明確請求的情況下向用戶端發送數據。但是,各種 Web API 使這種用例成為可能,包括 [Push API](/zh-TW/docs/Web/API/Push_API)[伺服器發送事件](/zh-TW/docs/Web/API/Server-sent_events)[WebSockets API](/zh-TW/docs/Web/API/WebSockets_API)
Expand Down Expand Up @@ -157,7 +157,7 @@ X-Cache: Error from cloudfront

## 參見

- [在 Web 上識別資源](/zh-TW/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web)
- [URL](/zh-TW/docs/Web/URI)
- [HTTP 標頭](/zh-TW/docs/Web/HTTP/Headers)
- [HTTP 請求方法](/zh-TW/docs/Web/HTTP/Methods)
- [HTTP 回應狀態碼](/zh-TW/docs/Web/HTTP/Status)
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: 選擇 www 和非 www 網址
slug: Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs
slug: Web/URI/Authority/Choosing_between_www_and_non-www_URLs
l10n:
sourceCommit: 3c29ffa78c551ea6a61bbb795a5f97a66c6868c0
sourceCommit: 6b730e3cfdf0f51940b44efa71bd59c84ce76e71
---

{{HTTPSidebar}}
{{QuickLinksWithSubpages("/zh-TW/docs/Web/URI")}}

網站擁有者經常面臨的一個問題是選擇「www」(`www.example.com`)還是「非 www」(`example.com`)網址。本頁面將提供一些建議,幫助你做出最佳選擇。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Data URL
slug: Web/HTTP/Basics_of_HTTP/Data_URLs
slug: Web/URI/Schemes/data
l10n:
sourceCommit: 997a0ec66e1514b7269076195b2419db334e876e
---

{{HTTPSidebar}}
{{QuickLinksWithSubpages("/zh-TW/docs/Web/URI")}}

**Data URL** 是以 `data:` 開頭的 URL,允許內容創作者將小型檔案嵌入文件中。以前它們被稱為「data URI」,直到 WHATWG 將這個名稱廢除。

Expand Down

0 comments on commit da0caba

Please sign in to comment.