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: 03-Mar-2020

96 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements