HTML Header

title tag

<!DOCTYPE html>
<html>
<head>
<title>Title Tag Example</title>
</head>
<body>
<p>Hello, World! home</p>
</body>
</html>

title tag

<!DOCTYPE html>
<html>
<head>
<title>Meta Tag Example</title>

<!-- Provide list of keywords -->
<meta name="keywords" content="php, css, html tutorial, bootstrap tutorial">

<!-- Provide description of the page -->
<meta name="description" content="html metatag description short">

<!-- Author information -->
<meta name="author" content="Just everyone tutorial">

<!-- Page content type -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<!-- Page refreshing delay -->
<meta http-equiv="refresh" content="30">

<!-- Page expiry -->
<meta http-equiv="expires" content="Tue, 31 May 2016 12:15:27 GMT">

<!-- Tag to tell robots not to index the content of a page -->
<meta name="robots" content="noindex, nofollow">

</head>
<body>
<p>Hello, World!</p>
</body>
</html>

base tag

<!DOCTYPE html>
<html>
<head>
<title>Base Tag Example</title>
<base href="https://www.tutorialspoint.com/" />
</head>
<body>

<img src="logo.png" alt="Logo Image"/>
<a href="index.html" title="css Tutorial"/>css Tutorial</a> 

</body>
</html>

link tag

<!DOCTYPE html>
<html>
<head>
<title>link Tag Example</title>
<base href="https://www.justeveryone.com/" />
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<p>Hello, World!</p>
</body>
</html>

style tag

<!DOCTYPE html>
<html>
<head>
<title>style Tag Example</title>
<base href="https://www.justeveryone.com/" />
<style type="text/css">
.classname{
   background-color: #ccc;
   padding: 20px;
}
</style>
</head>
<body>
<p class="classname">Hello, World!</p>
</body>
</html>

script tag

<!DOCTYPE html>
<html>
<head>
<title>script Tag Example</title>
<base href="https://www.justeveryone.com/" />
<script type="text/javascript">
function functionname(){
   alert("Hello, World");
}
</script>
</head>
<body>
<input type="button" onclick="functionname();" name="ok" value="OK"  />
</body>
</html>
 

Leave a Comment