-->

Facebook

Jasper Roberts - Blog

Tuesday, February 23, 2016

2. Create web pages to illustrate text formatting tags

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>text formating</title>
</head>
<body>
<h1>This is Header1</h1>
<h2>This is Header2</h2>
<h3>This is Header3</h3>
<h4>This is Header4</h4>
<h5>This is Header5</h5>
<h6>This is Header6</h6>
<p>This is Paragraph</p>
<pre> This is pre formated text in html. it display text as it coped.</pre>
</body>

</html>

Output:


1. Write a html program to print "hello world"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>hello world</title>
</head>

<body>
<h1 style="color:#FF0000"> Hello World </h1>
</body>

</html>

Output:

CPU 2110003 GTU Question Paper 30/12/2015

GTU CPU Question Paper - Exam Date: 30/12/2015 Click Here