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

ดึง HTTP header สำหรับข้อมูลแอตทริบิวต์ content ใน HTML


ใช้แอตทริบิวต์ http-equiv เพื่อดึง HTTP header สำหรับข้อมูลของแอตทริบิวต์ content ใน HTML

ตัวอย่าง

ลองรันโค้ดด้านล่างเพื่อใช้งานแอตทริบิวต์ http-equiv:

<html>
  <head>
    <title>HTML http-equiv attribute</title>
    <meta name="keywords" content="HTML, meta tag, metadata" />
    <meta name="description" content="Description of the document" />
    <meta http-equiv="refresh" content="10" />
  </head>
  <body style="background-color:gray">
    Document content goes here
  </body>
</html>