Understanding Meta tags & Definition

 Understanding Meta tags



Meta tags Definition

Meta tags provide information about the web page in the HTML of the document. This information is called "metadata" and while it doesn't appear on the page itself, it can be read by search engines and web crawlers.

Search engines like Google use metatag metadata to understand more information about the web page. They can use this information for ranking purposes, to display snippets in search results, and can sometimes ignore meta tags.

Examples of meta tags include the <title> and <description> elements.                 (Kate Morris, 2019)


Examples of meta tags

<head>
  <meta charset="UTF-8">
  <meta name="description" content="Free Web tutorials">
  <meta name="keywords" content="HTML, CSS, JavaScript">
  <meta name="author" content="John Doe">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>  (w3schools.com, 2023)

author: 

  • Specifies the name of the author of the document. 

Example:    <meta name="author" content="John Doe">

(w3schools.com, 2023)

description:

  • Specifies a description of the page. Search engines can pick up this description to show the results of searches. 

Example:<meta name="descriptioncontent="Free web tutorials">

(w3schools.com, 2023)

keywords:

  •  Specify a comma-separated list of keywords - relevant to the page (Informs search engines what the page is about).

Tip: Always specify keywords (needed by search engines to catalog the page). 

Example:<meta name="keywordscontent="HTML, meta tag, tag reference">

Controls the viewport (the user's visible area of a web page).

The viewport varies with the device and will be smaller on a mobile phone than on a computer screen. (w3schools.com, 2023)


viewport:

  • You should include the following <meta> viewport element in all your web pages:

<meta name="viewportcontent="width=device-width, initial-scale=1.0">

A <meta> viewport element gives the browser instructions on how to control the page's dimensions and scaling.

The width=device-width part sets the width of the page to follow the screen width of the device (which will vary depending on the device).

The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.

Here is an example of a web page without the viewport meta tag, and the same web page with the viewport meta tag:

Tip: If you are browsing this page with a phone or a tablet, you can click on the two links below to see the difference. (w3schools.com, 2023)

(w3schools.com, 2023)




Video time

(BroCodez, 2021)




Reference:

BroCodez (2021) Learn HTML meta tags in 3 minutes 🏷️YouTube. YouTube. Available at: https://www.youtube.com/watch?v=bi5bfH_gVWE (Accessed: January 22, 2023).

HTML name attribute (no date) HTML meta name Attribute. Available at: 

 (Accessed: January 22, 2023).

Kate Morris (2019) The Ultimate Guide to Seo Meta TagsMoz. Available at: https://moz.com/blog/the-ultimate-guide-to-seo-meta-tags (Accessed: January 22, 2023).

w3schools.com (2023) HTML tagHTML meta tag. Available at: https://www.w3schools.com/tags/tag_meta.asp (Accessed: January 24, 2023).

w3schools.com (2023) HTML tagHTML meta tag. Available at: https://www.w3schools.com/tags/tag_meta.asp (Accessed: January 24, 2023).



HTML name attribute (no date) HTML meta name Attribute. Available at: https://www.w3schools.com/tags/att_meta_name.asp (Accessed: January 22, 2023).

Comments

Popular posts from this blog

Advantages and disadvantages of Meta tags

Website project initial idea

Advantages and disadvantages of e-commerce