Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> HTML

Horizontal Rule (เส้นแนวนอน) ในหน้า HTML คืออะไร?

แท็ก <hr> แทน Horizontal Rule ใน HTML ใช้แยกเนื้อหาในหน้า HTML จำไว้ว่าแท็ก <hr> ไม่มี end tag เพิ่มในแท็ก <body> ... </body> ในหน้า HTML

Horizontal Rule (เส้นแนวนอน) ในหน้า HTML คืออะไร?

ตัวอย่าง

<!DOCTYPE html> 
<html> 
  <head> 
    <title>HTML Horizontal Rule</title> 
  </head> 
  <body> 
    <p>The content of the document gets added here.</p> 
    <hr> 
    <p>Add other sections here.</p> 
  </body> 
</html>

ผลลัพธ์

Horizontal Rule (เส้นแนวนอน) ในหน้า HTML คืออะไร?