An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
October 16, 2022 04:42 pm GMT
Original Link: https://dev.to/amalprasad0/meta-tag-in-html-4p3b
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.
learnwithamal#sundaycodeday
Original Link: https://dev.to/amalprasad0/meta-tag-in-html-4p3b
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To