metadata in html code example

Example 1: metadata html

<meta name="description" content="Free Web tutorials on HTML and CSS">

Example 2: metadata html

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Example 3: metadata html

<meta name="author" content="John Doe">

Example 4: metadata html

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

Example 5: metadata html

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

Example 6: uses of meta tag attributes

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"><!-- ensures the character encoding -->
<meta name="keywords" content="give a short or mid description about the content keywords of your website">
<meta name="description" content=""give a short or mid description about the contents of your website">
<meta name="author" content="write the name of the author of the webpage">
<meta name="refresh" content="50"><!-- writing this code will make sure the browser refreshes after every 50seconds -->
<meta http-equi="refresh" content="5; url="write the url of your website"><!-- writing this code, the browser will automatically redirect to the given page after the provided time , in this case it is 5seconds -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- this makes sure that the webpage is supported on all devices -->
</head>
<body>
</body>
</html>

Tags:

Html Example