HTML Head Element Tag | Meta Tag in HTML used for | Link and Script Tag in HTML

HTML Head Element Tag | Meta Tag in HTML used for | Link and Script Tag in HTML


title meta link script tags in html


HTML Title Tag:

Title Tag is HTML element is the part of HTML Head Element Tag that we have used to give and set the browser's title bar or a webpage's tab. The <title> HTML element or tag displays the title of the webpages on the search engine results pages that we search on the search engines like Google and many more.

For example: <title>EDUGYAN</title> 
It displays the webpage's title name EDUGYAN on the browser page's tab.


HTML Meta Tag:

The Meta (<meta>) tag describes metadata about an HTML document and Metadata is data (information) about data. We define <meta> tags inside the <head> element of HTML document, and Meta Tag in HTML used for viewport settings i.e. displaying into devices, specify character set, keywords and page description. Metadata will not be showed or displayed on the webpage.

Examples for <meta> tags:

1. Define keywords

     <meta name="keywords" content="HTML, CSS, Meta Tags">

2. Define description

     <meta name="description" content="EDUGYAN Tutorials for Web Development">

3. Define author

    <meta name="author" content="EDUGYAN">

4. Refreshing document or webpage on the set seconds

    <meta http-equiv="refresh" content="30">

5. Viewport Settings for devices

     <meta name="viewport" content="width=device-width, initial-scale=1.0">

Link and Script Tag in HTML:

HTML Link Tag:

The <link> tag defines the connectivity or linking of the current webpage to the external webpages or sources that fetches and receive the details from the external resources to the current page of our HTML document.

We mostly use <link> tag to link the external style sheets. For example - 

<head
<link rel="stylesheet" href="style.css"> 
</head>

HTML Script Tag:

The <script> tag contains scripting contents or statements that defines JavaScript which is client-side script for the user. We use src attribute for the external script that we use or include in the current webpage via using <script>.....</script>.

We can place script in either <body> or <head> section of HTML page for the dynamic changes in the content of our webpages.


Looking forward:


For more details - HTML Head Element Tag - Meta Tag in HTML used for - Link and Script Tag in HTML - Best Programming Videos on YouTube - EDUGYAN Channel









Post a Comment

0 Comments