The meta tag lives inside the <head></head> element.

 

Define keywords for search engines:

<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">

 

Define a description of your web page:

<meta name="description" content="The all time best raps of our time.">

 

Define the author of a page:

<meta name="author" content="2Pac">

 

Refresh document every 30 seconds:

<meta http-equiv="refresh" content="30">

 

To do 

• Experiment with the tags above.

• What does the following code do?

 

 

<!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>
 
<meta http-equiv="refresh" content="1">
 
</head>
 
<body onload="displayDate()">
 
<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>
 
 
</body>
</html>