Metadata means data about data.
Meta tag/element in a HTML page gives information about that HTML page.
Meta tag should be placed inside the head section of the HTML webpage.
They are used to provide metadata such as Keywords, description and author.
Metadata will not be displayed on the webpage. But it will be used by browser and search engines.
Attributes of the Metatag are content, http-equiv, name and scheme. Content is the mandatory attribute.
Find below some sample meta data.
<meta http-equiv="Content-Type" content="text/html" />
It is used for specifying http header which should be delivered before sending actual content of the page. It notifies the browser that the content should be displayed as the html file.
Some years back search engines used "Keywords" for ranking the webpages when displaying search results.
The Keywords for the webpage can be added using below meta tag.
<meta name="keywords" content="quality, php, qtp, c#" />
But anyway, these days Search engines won't give much importance for these keywords as many webmasters are giving wrong keywords to attract more visitors to their site.
And also, meta tag can be used to automatically refresh the page at particular interval. It will useful for showing Cricket score.
Find below the sample code for automatic page refresh.
<meta http-equiv="refresh" content="600">
Even we can use this metatag for redirecting to another page after preset time.
<meta http-equiv="refresh" content="5;url=http://www.qualitypointtech.com">
The above code will redirect to qualitypointtech.com after 5 seconds.
You can see it by putting this code in Head section of an HTML page.
More Articles...
Friday, May 15, 2009
Search This Blog
Blog Archive
-
▼
2009
(257)
-
▼
May
(42)
- Google Wave - A forward step in Email Communication
- Will Google's Knol replace Wikipedia?
- Understanding Test Settings and Options settings i...
- Will IIS on Windows XP support accessing website f...
- Deleting taskmger created by Virus
- Handling iframe background color issue in IE
- How to keep Track of Changes in Excel?
- Showing Post Title at first in the Title bar for B...
- Formatting Code automatically in Blog Posts
- WebHarvest - An Open source tool for extracting da...
- Resolving inconsistent behaviour of createElement ...
- Will Prefetch (.pf) files improve Windows performa...
- Tips and Tricks for doing AdHoc Testing
- Showing Loading-Indication when loading HTML webpage
- Sharing and Protecting Excel Sheet.
- Linkword - An Effective way of learning Foreign La...
- How to see Javascript error messages in FireFox?
- Use of Application.DoEvents method in C# Application.
- Scheduling Script Execution and Continuously runni...
- Understanding Action Iteration and Test Iteration ...
- About Metatag in HTML webpage
- QTP automation for testing .Net applications devel...
- Expanding/Collapsing a list using javascript
- What is FavIcon and how to create them?
- Javascript code for changing list box (select tag)...
- Dynamically adding text box in web page using java...
- NaN in Javascript and math constants
- Code for putting Flash File within HTML web page
- Handling single quotes in PHP and Javascript
- Use cURL in case allow_url_fopen is off in PHP
- What is Inbound/Back Link and how to find them?
- Name for the performance/Load Test done after modi...
- Restricting user access based on IP Address
- Writing Good Test Cases and Finding Bugs effectively
- array_slice function in php
- When to use $_REQUEST in PHP?
- Work around for sub query issue in older version o...
- All Links - QA, QTP, Web Development, C#.Net , Exc...
- Handling Passwords in QTP Scripts
- URL is case sensitive in Linux/unix server
- Required Steps/Processes in QTP automation
- Best practices in QTP Automation.
-
▼
May
(42)

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment