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

HTMLWeb DevelopmentFront End Technology

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>
raja
Published on 14-Mar-2018 07:27:01
Advertisements