HTML - attributes - content

revision:


Content

"content" attribute: used on the "meta" element to set meta information. syntax some examples


"content" attribute: used on the "meta" element to set meta information.

top

The content attribute gives the value associated with the "http-equiv" or "name" attribute.The content attribute can be used on the "meta" element and is used to set the meta information in an HTML document. This can be the information for the description or the keywords, for name attribute.


syntax

top

<meta content="text">

It contains the values of the text, which specify the content of the meta information


some examples

top
codes:
                    <head>
                        <meta name="description" content="Free Web tutorials">
                        <meta name="keywords" content="HTML,CSS,XML,JavaScript">
                    </head>
                

codes:

                    <head>
                        <meta name="description" content="Learn for free">
                    </head>