4. Title, Script, Link & Meta Tags : HTML

Title, Script, Link & Meta Tags

HTML Head

In the last exercise, we have figured out how the essen tial construction of a site resembles. In this HTML exercise, we will find out about titles, contents, connections, and Meta labels. We will make another document as "<File name>.html" and afterward utilize a fundamental emmet shortening as advised before to get the standard HTML format. The target of this exercise is to think totally about HTML heads labels and what these contain.


The Meta Tags are utilized to characterize the Metadata in HTML. They have mostly been utilized in SEO (Search Engine Optimization) procedures which assist a specific site with positioning better in Google or diverse web crawlers. It supports the positioning of a page to get more traffic on any site.

So let us comprehend different meta labels.

  • <meta charset= “UTF-8”> - It just implies that the characters that are utilized will be of UTF-8. It declares the page's person encoding. It ought to contain a standard IANA MIME name for character encodings. In addition, creators are urged to utilize UTF-8.
  • <meta name= “viewport” content= “width=device-width, initial-scale=1.0"> - This tag is utilized to make your site responsive and change its width so that it looks great on both PC or Mobile. It helps in making the site Mobile further. 

  • <meta http-equiv= “X-UA-Compatible” content= “ie=edge”> - It assists a specific site with an opening in the most unique similarity mode accessible. It is for the most part for the individuals who are as yet utilizing Internet Explorer. Since there are still a few groups who have not redesigned their framework are as yet utilizing the more established adaptations. 

  • <meta name= “description” content = “This is a description”> - To add a portrayal, we need to compose the above assertion and compose your portrayal in the substance part. 

  • <meta name= “keywords” content= “HTML tutorial, CSS tutorial”> - Keywords are those exceptional words through which a client arrives at any site. You can add the cues in the substance part of the tag. 

  • <meta name= “robots” content= “INDEX, FOLLOW”> - If we need our site to be recorded in Google or other web search tools and bots ought to follow every one of the connections present on the site.

     

To connect our templates named "<File name>.css" in the HTML code, we need to compose

  • <link rel= “stylesheet” href= “<File name>.css”>


Similarly, as we have included CSS, we can likewise include a JavaScript document in the <head> tag.

  • <script src = “<File name>.js”></script>

 

Post a Comment

0 Comments