Set the language of the linked document in HTML

HTMLWeb DevelopmentFront End Technology

Use the hreflang attribute to set the language of the linked document in HTML.

Example

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

<!DOCTYPE html>
<html>
   <head>
      <title>HTML hreflang attribute</title>
   </head>
   <body>
      <p>Database Tutorial:</p>
      <a href = "dbms/index.htm" hreflang = "en">DBMS</a>
   </body>
</html>
raja
Published on 14-Mar-2018 11:47:47
Advertisements