Meta Tags Generator

Meta Tags Generator creates a well formated meta tags for your website with the entered values.

Features

  • The tag provides metadata about the HTML document.
  • Meta tags are used to improve search engine indexing, select character sets, etc.
  • Please fill in the necessary information into the form and click on "Generate Meta Tags".
  • Cut and paste the meta tags displayed into your HTML source code.

Preview

Meta Tags Generator

Description:(separated by space)*
Keywords:(separated by commas)*
Author:
Generator:
Copyright:(eg:&copy,http://example.com)
Robots:
Character Set:
Cache:
Language:
Refresh To:(eg:http://example.com)After:Secs
Expires:(eg:Sat, 09 Oct 2010 04:12:01 GMT)

Downloads

Javascript Code


<!-- Script by hscripts.com -->
<script type="text/javascript">
function metatag_maker()
{
var des=document.getElementById("description").value;
var keywo=document.getElementById("keywords").value;
var auth=document.getElementById("author").value;
var generat=document.getElementById("generator").value;
var copyrigh=document.getElementById("copyright").value;
var robott=document.frm.robott[document.frm.robott.selectedIndex].value;
var charsett=document.frm.charsett[document.frm.charsett.selectedIndex].value;
var cach=document.frm.cach[document.frm.cach.selectedIndex].value;
var lang=document.frm.lang[document.frm.lang.selectedIndex].value;
var url=document.getElementById("urll").value;
var sec=document.getElementById("sec").value;
var expir=document.getElementById("expires").value;
var meta='<meta name="description" content="'+des+'">\n';
meta+='<meta name="keywords" content="'+keywo+'">\n';
if(auth!="")
meta+='<meta name="author" content="'+auth+'">\n';
if(generat!="")
meta+='<meta name="generator" content="'+generat+'">\n';
if(copyrigh!="")
meta+='<meta name="copyright" content="'+copyrigh+'">\n';
if(robott!="")
meta+='<meta name="robots" content="'+robott+'">\n';
if(charsett!="")
meta+='<meta http-equiv="content-type" content="text/html;charset='+charsett+'">\n';
if(expir!="")
meta+='<meta http-equiv="expires" content="'+expir+'">\n';
if(cach!="")
meta+='<meta http-equiv="cache-control" content="'+cach+'">\n';
if(lang!="")
meta+='<meta http-equiv="content-language" content="'+lang+'">\n';
if(url!="" && sec!="")
meta+='<meta http-equiv="refresh" content="'+sec+';'+url+'">\n';
document.getElementById("metatag").value=meta;}
function clear_all()
{
document.getElementById("description").value="";
document.getElementById("keywords").value="";
document.getElementById("author").value="";
document.getElementById("generator").value="";
document.getElementById("copyright").value="";
document.getElementById("urll").value="";
document.getElementById("sec").value="";
document.getElementById("expires").value="";
document.getElementById("metatag").value="";
document.getElementById("description").focus();
}
function ctck()
{
var sds = document.getElementById("dum");
if(sds == null){
alert("You are using a free package.\n You are not allowed to remove the tag.\n");
}
var sdss = document.getElementById("dumdiv");
if(sdss == null){
alert("You are using a free package.\n You are not allowed to remove the tag.\n");
}
}
document.onload ="ctck()";
</script>
<!-- Script by hscripts.com -->


HTML Code


<form name="frm">
<h3 align=center>Meta Tag Maker</h3>
<table style="border:1px solid green;padding:10px;" align=center>
<tr><td>Description:(separated by space)*</td><td><input type="text" id="description" size=70></td></tr>
<tr><td>Keywords:(separated by commas)*</td><td><input type="text" id="keywords" size=70></td></tr>
<tr><td>Author:</td><td><input type="text" id="author" size=25></td></tr>
<tr><td>Generator:</td><td><input type="text" id="generator" size=25></td></tr>
<tr><td>Copyright:(eg:&copy,http://example.com)</td><td><input type="text" id="copyright" size=25></td></tr>
<tr><td>Robots:</td><td><select name="robott">
<script type="text/javascript">
var robotsarr=new Array("","INDEX,FOLLOW","INDEX,NOFOLLOW","NOINDEX,FOLLOW","NOINDEX,NOFOLLOW");
for(var i=0;i<robotsarr.length;i++)
document.write("<option value=\""+robotsarr[i]+"\">"+robotsarr[i]+"</option>");
</script>
</select></td></tr>
<tr><td>Character Set:</td><td><select name="charsett">
<script type="text/javascript">
var charsetarr=new Array("","GB2312","US-ASCII","ISO-8859-1","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6",
"ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-2022-JP","ISO-2022-JP-2","ISO-2022-KR","UTF-8");
for(var i=0;i<charsetarr.length;i++)
document.write("<option value=\""+charsetarr[i]+"\">"+charsetarr[i]+"</option>");
</script>
</select></td></tr>
<tr><td>Cache:</td><td><select name="cach">
<script type="text/javascript">
var cachearr=new Array("","CACHE","NO-CACHE");
for(var i=0;i<cachearr.length;i++)
document.write("<option value=\""+cachearr[i]+"\">"+cachearr[i]+"</option>");
</script>
</select></td></tr>
<tr><td>Language:</td><td><select name="lang">
<script type="text/javascript">
var langarr=new Array("","en","fr","ch","de","es","ja","ru");
var lang1arr=new Array("","English","French","Chinese","German","Spanish","Japanese","Russian");
for(var i=0;i<langarr.length;i++)
document.write("<option value=\""+langarr[i]+"\">"+lang1arr[i]+"</option>");
</script>
</select></td></tr>
<tr><td>Refresh To:(eg:http://example.com)</td><td><input type="text" id="urll" size=35> After:<input type="text" id="sec" size=4>Secs</td></tr>
<tr><td>Expires:(eg:Sat, 09 Oct 2010 04:12:01 GMT)</td><td><input type="text" id="expires" size=25></td></tr>
<tr><td colspan=2 align=center><input type="button" value="Create Meta Tags" onclick="metatag_maker();"><input type="button" value="Clear" onclick="clear_all()"></td></tr>
<tr><td colspan=2 align=center><textarea readonly id="metatag" disable rows=12 cols=100 scrollbar=no></textarea></td></tr>
</table>
</form>
<div style="font-size: 10px;color: #dadada;" id="dumdiv" align=center>
<a href="https://www.hscripts.com" id="dum" style="text-decoration:none;color: #dadada;">©h</a></div>


  • Release Date - 21-12-2010
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Copy and paste the javascript code into your file.
  • Meta tags generator script will create meta tags for the values given.
  • It is vital to have well created meta tags because they can help increase your Search Engine Position.

License

Related Scripts

Free Javascript Scripts


Ask Questions

Ask Question