How to get the value associated with the http-equiv or name attribute in HTML?



Use the content attribute in HTML to get the value associated with http-equiv or name attribute.

Example

You can try to run the following code to implement the content attribute −

<!DOCTYPE html> <html>    <head>       <meta name = "description" content = "Learning content and videos">    </head>    <body>       <p>This is demo text.</p>    </body> </html>
Updated on: 2020-03-03T09:38:01+05:30

152 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements