Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 16, 2022 04:42 pm GMT

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

<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


Original Link: https://dev.to/amalprasad0/meta-tag-in-html-4p3b

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To