content

HTML content Attribute (内容属性)

The HTML content attribute gives a value that is associated with the http-equiv or name attribute. (HTML内容属性提供与http-equiv或name属性关联的值。)

You can only use this attribute on the <meta> element to set the meta information in an HTML document.

Syntax

Syntax (语法)

<meta content="here must be text">

Example of the HTML content attribute:

<!DOCTYPE html>
<html>
 <head>
   <meta name="description" content="Online Free  Tutorials">
   <meta name="keywords" content="HTML,CSS,JavaScript,PHP, Git">
 </head>
 <body>
   <h1>Example of the HTML "content" attribute</h1>
   <p>Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</p>
 </body>
</html>


请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部