0% found this document useful (0 votes)
29 views4 pages

Computer HTML Program

Uploaded by

Kunal Sumuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views4 pages

Computer HTML Program

Uploaded by

Kunal Sumuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PRISTINE PUBLIC SCHOOL

Learning for Life…

Sub: Computer Applications Class - X


Programs in HTML

[Link] HTML ELEMENTS


Program-1:

Write a sample program to create HTML document using notepad.

<html>

<head>

<title>My first program</title>

</head>

<body>

This is my first HTML program

</body>

</html>

OUTPUT:

Program-2:

Write a program using heading(<h1>…..<h6>),Bold (<b>),Italic (<I>), Underline tags


(<U>).

<html>

<head>

<title>HEADING</title>

</head>

<body>
<h1 align=center><b>Pristine Public School</h1></b>

<h2><u>Pristine Public School</h2></u>

<h3 align=right>Pristine Public School</h3>

<h4><i>Pristine Public School</h4></i>

<h5 align=left>Pristine Public School</h5>

<h6>Pristine Public School</h6>

</body>

</html>

OUTPUT:

Program-3:

Write a program using <font> tag by describing about font-style,size,color using


paragraph tag(<P>)

<html>

<head>

<title>Font style,size,color</title>

</head>

<body>

<font face="lucida handwriting">


<p align=center>

A computer is a machine that can be programmed to automatically carry out


sequences of arithmetic or logical operations (computation).

</p></font>

<p align=center>

<font face="times new roman" size=10 color="blue"><u>

Modern digital electronic computers can perform generic sets of operations known as
programs. These programs enable computers to perform a wide range of tasks.

</p></font></u>

</body>

</html>

OUTPUT:

Program-4:

Write a program using Subscript (<sub>),super script (<sup>) tags for chemical and
mathematical formulae.

<html>

<head>

<title>subscript,super script</title>

</head>

<body>

Using chemical and mathematical formulae

<b><u><i>Chemical formulae</b></u></i><br>

H<sub>2</sub>O<br>

CO<sub>2</sub><br><br>

<b><u><i>mathematical formulae</b></u></i>
(a+b)<sup>2</sup>=a<sup>2</sup>+b<sup>2</sup>+2ab<br>

(a-b)<sup>2</sup>=a<sup>2</sup>+b<sup>2</sup>-2ab

</body>

</html>

OUTPUT:

You might also like