Head Element
Head tag or <head> and head element are an important part of any HTML page. Because <head> .... </ Head> means all important tags are placed in <title> <link> <meta> <style> <script> as the head element. Through these, there are many important information related to pages in the browser, as well as important tasks like search engine optimization.
Title
The <title> </ title> tag is used to display the title of the page in the title bar of the browser.
<Title> Our HTML Tutorials </ title>
The above code shows the "Our HTML Tutorials" in the title bar of the browser.
Link
<Link> </ link> is used to link to CSS style sitelinks.
<Link rel = "stylesheet" type = "text / css" href = "styles.css" />
Meta Elements
Meta Search engine makes important work for optimumization. It will be discussed in detail in this post.
Style
The <style> </ style> tag is used to use the inner style seat. Such as
<Head>
<Style type = "text / css">
Body {background-color: red;}
P {margin-left: 20px;
Font-weight: bold;
Color: # 006; }
</ Style>
</ Head>
Script
<Script> </ script> tags are used to add scripts to JavaScript, Jquery etc. Such as
<Script type = "text / javascript" src = "jquery.js"> </ script>
<Script type = "text / javascript" src = "sliding_effect.js"> </ script>
Example Programs
Download the source file from the following link, Extract it, open the index.html file with Mozilla Firefox and look like the image shown below. And the title of our HTML tutorial will appear in the title bar of the browser.
Head tag or <head> and head element are an important part of any HTML page. Because <head> .... </ Head> means all important tags are placed in <title> <link> <meta> <style> <script> as the head element. Through these, there are many important information related to pages in the browser, as well as important tasks like search engine optimization.
Title
The <title> </ title> tag is used to display the title of the page in the title bar of the browser.
<Title> Our HTML Tutorials </ title>
The above code shows the "Our HTML Tutorials" in the title bar of the browser.
Link
<Link> </ link> is used to link to CSS style sitelinks.
<Link rel = "stylesheet" type = "text / css" href = "styles.css" />
Meta Elements
Meta Search engine makes important work for optimumization. It will be discussed in detail in this post.
Style
The <style> </ style> tag is used to use the inner style seat. Such as
<Head>
<Style type = "text / css">
Body {background-color: red;}
P {margin-left: 20px;
Font-weight: bold;
Color: # 006; }
</ Style>
</ Head>
Script
<Script> </ script> tags are used to add scripts to JavaScript, Jquery etc. Such as
<Script type = "text / javascript" src = "jquery.js"> </ script>
<Script type = "text / javascript" src = "sliding_effect.js"> </ script>
Example Programs
Download the source file from the following link, Extract it, open the index.html file with Mozilla Firefox and look like the image shown below. And the title of our HTML tutorial will appear in the title bar of the browser.
No comments:
Post a Comment