แท็ก
ใน HTML เป็นแท็กวลี เช่น , , ฯลฯ และใช้เพื่อจัดรูปแบบข้อความในเอกสาร HTML นอกจากนี้ยังใช้เพื่อแสดงผลลัพธ์จากโปรแกรมคอมพิวเตอร์
ให้เรามาดูตัวอย่างการใช้งาน
element−
ตัวอย่าง
<!DOCTYPE html>
<html>
<body>
<h2>OS issues</h2>
<p>If the system hangs...</p>
<samp>Press CTRL + ALT + DELETE and delete the current tasks.</samp>
</body>
</html>
ผลลัพธ์

ในตัวอย่างข้างต้น เราได้ตั้งค่าข้อความภายในแท็ก
–
<samp>
Press CTRL + ALT + DELETE and delete the current tasks.
</samp>