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.
learnwithamal#sundaycodeday
This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Amal Prasad
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.