ลิงก์ภายนอก

หากต้องการทําเครื่องหมายลิงก์เป็นภายนอก ให้เพิ่ม class="external" ลงในองค์ประกอบ <a> เมื่อเขียนด้วย HTML หรือเพิ่ม {: .external} ต่อท้ายลิงก์เมื่อเขียนด้วย Markdown

เช่น

ดูตัวอย่างโค้ดได้ที่ที่เก็บข้อมูล GoogleCloudPlatform ใน GitHub

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