พารากราฟ HTML ใช้สร้างองค์ประกอบพารากราฟโดยใช้แท็ก <p> เป็นบล็อกเลเวล (block-level element)
ไวยากรณ์
<p>เนื้อหา</p>
ตัวอย่าง
<!DOCTYPE html>
<html>
<style>
body {
color: #000;
height: 100vh;
background-color: #8BC6EC;
background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
text-align: center;
}
</style>
<body>
<h1>HTML Paragraphs</h1>
<p>ฉันคือองค์ประกอบพารากราฟพร้อมข้อความตัวอย่าง.</p>
</body>
</html>
ผลลัพธ์
แสดงพารากราฟเดี่ยวข้อความ "ฉันคือองค์ประกอบพารากราฟพร้อมข้อความตัวอย่าง."