2. Create a HTML document giving details of your [Name, Age], [Address, Phone] and [Register, Number, Class] aligned in proper order using alignment attributes of Paragraph tag.
Procedure:
1. Go to start ->all program – >accessories-> notepad
2. Type the html code
3. Align [name,age]to center by using align =”left ” of <p> tag
4. Align [register,number,class] to right using align=”right” of <p> tag
5. Go to file-> save->save the file with html extension
6. Run the html code using browser
<html>
<head>
<title>program 02</title>
</head>
<body>
<p align="center">
Name: James Bond<br>
Age: 55
</p>
<p align="right">
Address: RNB GLOBAL UNIVERSITY<br> Phone:
9462586785
</p>
<p align="left">
Reg No:
20AK1A0501<br>
Class:4th Semester
</p>
</body>
</html>
0 Comments