To refresh/reload your webpage automatically,or refreshing/reloading page periodically, use the <meta> tag in your html document.
What is <meta> tag actually...?
The <meta> tag provides metadata about your HTML document, such as page description, keywords, author of the document, last modified etc. This data are used by browser, search engines, other web services. In certain cases the webserver uses theses valuesto further define the document content type to the browser. It is a machine parsable tag and will not be displayed by browser on webpages. This tag always put between <head>...</head>. The attributes of this tag are, content,http-equive,scheme,name and charset.
Browser uses the metadata - how to display the content or to refresh/reload the page. To refresh your web periodically us the
combination of http-equiv and content attribute with <meta> tag. the description of both these attributes are given below.
For eg:-
...
<head>
<meta http-equive="refresh" content="30">
</head>
...
The above example refresh/reload document every 30 second
For eg:-
...
<head>
<meta http-equive="refresh" content="30">
</head>
...
The above example refresh/reload document every 30 second
- content
- This attribute takes string/text values. Provides the value of the name/value pair. It should always associated with http-equiv or name attribute
eg:-  <meta http-equive="refresh" content="30">
<meta name="keywords" content="check,html,web,tag">
- http-equiv
- The value of this attribute is content-type,default-style,refresh. Provides an HTTP header for the name/value of the content attribute.
No comments:
Post a Comment