Meta Tag in HTML

Hey Devs,
Today I gonna explain about “how to use html meta tags in a website?”.
So, Let’s Start!

Meta tags are important for a website. It contains information about website. Meta Tags are also important for SEO(Search engine optimisation).

<h…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Amal Prasad

Hey Devs,
Today I gonna explain about "how to use html meta tags in a website?".
So, Let's Start!

Meta tags are important for a website. It contains information about website. Meta Tags are also important for SEO(Search engine optimisation).

<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>

Above html codes is an example for how to define meta tags in html document. Note, Meta Tags are always write inside the head tags.

  • Meta tag for SEO
<meta name="keywords" content="HTML, CSS, JavaScript">
  • Meta tag for author of a webpage
<meta name="author" content="John Doe">
  • Setting the viewport to make your website look good on all devices:
<meta name="viewport" content="width=device-width, initial-scale=1.0">

The tag also supports the Global Attributes in HTML.

Try Yourself

learnwithamal#sundaycodeday


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Amal Prasad


Print Share Comment Cite Upload Translate Updates
APA

Amal Prasad | Sciencx (2022-10-16T16:42:30+00:00) Meta Tag in HTML. Retrieved from https://www.scien.cx/2022/10/16/meta-tag-in-html/

MLA
" » Meta Tag in HTML." Amal Prasad | Sciencx - Sunday October 16, 2022, https://www.scien.cx/2022/10/16/meta-tag-in-html/
HARVARD
Amal Prasad | Sciencx Sunday October 16, 2022 » Meta Tag in HTML., viewed ,<https://www.scien.cx/2022/10/16/meta-tag-in-html/>
VANCOUVER
Amal Prasad | Sciencx - » Meta Tag in HTML. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/16/meta-tag-in-html/
CHICAGO
" » Meta Tag in HTML." Amal Prasad | Sciencx - Accessed . https://www.scien.cx/2022/10/16/meta-tag-in-html/
IEEE
" » Meta Tag in HTML." Amal Prasad | Sciencx [Online]. Available: https://www.scien.cx/2022/10/16/meta-tag-in-html/. [Accessed: ]
rf:citation
» Meta Tag in HTML | Amal Prasad | Sciencx | https://www.scien.cx/2022/10/16/meta-tag-in-html/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.