html head tag

Html head tag

head tags show head section of the website. You will learn some tags we can use inside head tags.

title tag

<title>title of my website</title> You can use this title tags inside head tags ex: title of my website head section of my website title tags is important in search engine optimization (SEO) You cannot see the title on your website. it's only show in the tab header of your web browser.

meta tag

The next important tag in head section is meta tag.it's different than other tags.it's not show any content on web page same as title tag. normally we use two meta tags in head section.
<meta name="viewport" content="width=device-width,initial-scale=1"></meta>
<meta name="description" content="description of my first website"></meta>
You can see we have to add to attributes to meta tag(name,content) As I told you it's different from other tags because we not enter any content between meta opening and closing(ending) tag.

The 1st meta tag's name is "viewport".this meta tag use for determine user browser width and show website content according to browser width.(determine mobile, tablet,computer)

The 2nd meta tag's name is "description".you should add your website description for this tag's content. description tag is important to SEO.

These two meta tags(viewport,description) are the most important meta tags for a website. Next we will learn about body section of the website

No comments:

Post a Comment