HTML http-equiv 属性
语法
说明
改写 HTTP(超文本传输协议)标头字段的值是 meta 元素的用途之一。服务器与浏览器之间传输 HTML 数据时一般用的就是 HTTP。服务器的每条响应都包含着一组向浏览器说明其内容的字段。meta 元素可以用来模拟其中四种标头字段。
http-equiv
属性的用途是指定要模拟的标头字段的名称,字段值由 ຄວາມຜົນ content ການກໍານົດ
http-equiv
ບັນດາຄວາມຜົນທາງສັບສຳນັກງານຂອງບັນດາຄວາມຜົນທີ່ສາມາດໃຊ້ຢູ່ບັນດາຄວາມຜົນທີ່ລວມນຳໃນຕາລາຍດັ່ງລວມ:
ຄວາມຜົນທາງສັບສຳນັກງານ
ຄວາມຜົນ | ການອະທິບາຍ |
---|---|
content-security-policy |
ການກໍານົດນະໂຍບາຍຂອງເນື້ອຫຼັກຂອງເອກະສານ。 For example: <meta http-equiv="content-security-policy" content="default-src 'self'"> |
content-type |
ການກໍານົດຄວາມຮັບຮູບຂອງເອກະສານ。 ຄຳແນະນຳ:ນີ້ແມ່ນວິທີທີ່ອື່ນທີ່ກໍານົດຄວາມຮັບຮູບຂອງບາງຄຳເວົ້າ HTML ເວັບໄຊ。 For example: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
default-style |
ການກໍານົດຮູບແບບທີ່ເລືອກທຳອິດຂອງເອກະສານ。 For example: <meta http-equiv="default-style" content="the document's preferred stylesheet"> Note:The corresponding content attribute value should be the same as the title attribute value of some style element or link element in the same document. |
refresh |
Define the document refresh interval in seconds. For example: <meta http-equiv="refresh" content="300"> You can also specify another URL for the browser to load: For example: <meta http-equiv="refresh" content="5; https://www.codew3c.com"> Note:Use the "refresh" value with caution, as it can take away the user's control of the page. Using "refresh" will cause the W3C Web Content Accessibility Guidelines to fail. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |