แท็ก <abbr> ใน HTML
องค์ประกอบ <abbr> ใน HTML ใช้สำหรับตั้งค่าตัวย่อ (acronym และ abbreviation) เนื่องจากแท็ก <acronym> ถูก deprecated ใน HTML5 ให้ใช้ <abbr> แทน ตัวย่อตัวอย่าง:
- B2B: Business to business
- B2C: Business to consumer
- CMS: Content Management System
- PPC: Pay Per Click
- ROI: Return On Investment
- CTA: Call To Action
ตัวย่อสั้น (abbreviations) ตัวอย่าง:
- Mr : Mister
- Dr. : Doctor
- St: Street
- Km: Kilometer
ตัวอย่าง
<!DOCTYPE html>
<html>
<body>
<h2>Coding Ground</h2>
<h3>คอมไพเลอร์สำหรับภาษาโปรแกรมมิ่งและเทคโนโลยีเว็บ</h3>
<nav>
<a href="/compile_java_online.php">Java</a> |
<a href="/php_terminal_online.php">PHP</a> |
<a href="/online_jquery_editor.php">jQuery</a> |
<a href="/compile_c_online.php">C</a> |
<a href="/compile_cpp_online.php">C++</a> |
<a href="/online_angularjs_editor.php">AngularJS</a>
</nav>
<p>เรายังมีคอมไพเลอร์สำหรับไลบรารี <abbr title="JavaScript">JS</abbr> </p>
</body>
</html>
ผลลัพธ์

วางเคอร์เซอร์บน JS เพื่อแสดง title:
