Thursday, February 5, 2015

Meta tags in html

Meta tags are always set between <head> and </head> tags. Every HTML document starts with following coding line:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

- Code description -
 
- Explains browser type that will read your HTML page.

<meta http-equiv=”REFRESH” content=”60;url=http://www.google.com”>

- Code description –
 
- Page refresh each 60 seconds. If you want to change period in which your page will refresh, change number 60 to desired number. It will only happen if you remove URL=
http://www.google.com. Also if you want to change to another website after refresh, just simply enter URL of your page.



<meta http-equiv=”KEYWORDS” content=”game,soccer,ball”>

- Code description –
- Keywords that are used by web browser. In content=”..." enter your keywords which will best describe your website.
- Do not think that keywords will let your website go on front page in search. It is a whole new area apart from HTML and coding and it is called SEO (Search Engine Optimization).

<meta http-equiv=”Content-Type” content=”text/html;charset=windows-1250”>

- Code description –
- If you add this code to your <head> page, it will allow you to enter specific language you use.

<meta name=”author” content=”Your name“>

- Code description –
- Enter your name or personal details

<meta name=”DESCRIPTION” content=”Description of your website”>                         


- Code description –
- Enter your description of your website, its purpose or activities. Feel free to write it down in 160 characters

No comments:

Post a Comment