外部連結

如要將連結標示為外部連結,請在使用 HTML 撰寫時將 class="external" 新增至 <a> 元素,或是在使用 Markdown 撰寫時將 {: .external} 附加至連結。

例如:

請參閱 GitHub 上的 GoogleCloudPlatform 存放區,查看程式碼範例。

HTML

<p>Check out the
<a href="https://www.github.com/GoogleCloudPlatform" class="external">
GoogleCloudPlatform</a> repo on GitHub for code samples.</p>

Markdown

Check out the
[GoogleCloudPlatform](https://www.github.com/GoogleCloudPlatform){: .external} 
repo on GitHub for code samples.

如要瞭解何時使用外部連結,請參閱 Google 開發人員說明文件樣式指南