The <head> element or the tag is just a container for all other header elements. It should be the first thing to appear after the opening <html> tag.
Child elements of <head> element :-
- <title> :- Used to display the title of the web page
- <base>
- <object> :- Designed to include images,Java Script objects,Flash Animations,MP3 files and so on.
- <link> :- To link an external file such as Style Sheet or Java Script files.
- <style> :- Include script to the web document.
- <meta> :- Includes the information about the document such as keywords and description which are helpful to search and search engine optimization.
Opening <head> tag can carry following attributes :-
- id
- dir
- lang
- xml:lang
- profile
Among the child elements of <head> tag we are only concentrating on <title> tag because it gives an idea to the user or the reader about the content of the web page even without reading the content.
<title> tag
You should specify a title for every web page you write.
It is used in several ways :-
- At the top of the browser window.
- As the default name for a bookmark in browsers.
- By search engines that use its content to help index pages.
It's important to use a title which describes the content of the page. As an example rather than using the title of the home page as "Home Page" it is more applicable to use as "Web Devops Home".
<head>
<title>Web Devops Home</title>
</head>
<title> element should contain only the text for the title.
The <title> element can carry following attributes :-
- id
- dir
- lang
- xml:lang
We will be discussing about the <body> element in the next article..
Your questions and suggestions will be accepted any time...
Share with Friends.....
No comments:
Post a Comment