Meta tags your website cannot go without
by Carlos, Front-end Developer
The meta tag specifies metadata about a HTML document.
The metadata specified in these tags are not displayed on a webpage but instead used by browsers and search engines.
Quality meta tags can be the difference between your website ranking on the first page or the dreaded second page of Google search results.
Structure of a meta tag
Meta tags are self enclosing tags.
Meta tags do not have a closing tag and therefore carries additional information within their attributes.
![](https://www.ciphercode.co.za/assets/blog-assets/meta-tag-structure.png)
Where to add meta tags in your HTML document?
Metadata is placed inside the head section of an HTML file between the opening and closing head tags.
Metadata: charset
The charset attribute specifies the character encoding used by the HTML document.
![](https://www.ciphercode.co.za/assets/blog-assets/meta-charset-tag.png)
The UTF-8 value in the charset attribute specifies to the browser which character encoding to use when printing machine code into readable text so that it can render on the web page.
Metadata: viewport
The viewport meta tag specifies how the webpage should display on mobile devices.
![](https://www.ciphercode.co.za/assets/blog-assets/meta-viewport-tag.png)
Metadata: description
The meta description tag contains a short description of the page wherein it is placed.
![](https://www.ciphercode.co.za/assets/blog-assets/meta-description-tag.png)
Each page should have a unique meta description.
Furthermore, search engines often ignore web pages with duplicate meta descriptions!
Top tip
Metadata: google-site-verification
The google-site-verification meta tag ensures that your webpage is verified for Search Console.
![](https://www.ciphercode.co.za/assets/blog-assets/meta-google-site-verification-tag.png)
Metadata: robots
The robots meta tag provides crawler instructions on how to crawl or index webpage content.
![](https://www.ciphercode.co.za/assets/blog-assets/meta-robots-tag.png)
Meta tags conclusion
Although meta tags do not render content on the web page, it still plays a key role in how browsers convey your message to users.
Furthermore, these tags also contribute to SEO and page ranking on search results.
Stay tuned for more web development and SEO tips.