0% found this document useful (0 votes)
13 views15 pages

HTML

Uploaded by

Jobs For All
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)
13 views15 pages

HTML

Uploaded by

Jobs For All
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

HTML

Q1. Write an HTML code to display your name in a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Web Page</TITLE>

<BODY> Administrator

</BODY>

</HEAD>

</HTML>

Output
Q2. Write an HTML code to display your name and address in a web
browser.

Ans:

<HTML>

<HEAD>

<TITLE>Web Page</TITLE>

<BODY> Name, Address

</BODY>

</HEAD>

</HTML>

Output
Q3. Write an HTML code to display your name and address in two
different lines in a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Web Page</TITLE>

<BODY>

Name <BR>

Address

</BODY>

</HEAD>

</HTML>

Output
Q4. Write an HTML code to display your name and address in two
different lines and the title of the page will be “Practice” in a web
browser.

Ans:

<HTML>

<HEAD>

<TITLE>Practice</TITLE>

<BODY> Name<BR>

Address

</BODY>

</HEAD>

</HTML>

Output
Q5. Write an HTML code to display your name in bold text in a web
browser.

Ans:

<HTML>

<HEAD>

<TITLE>Practice</TITLE>

<BODY>

<B>Name</B>

</BODY>

</HEAD>

</HTML>

Output
Q6. Write an HTML code to display your name in Italic text and the
title of the page will be “Practice” in a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Practice</TITLE>

<BODY>

<I>Name</I>

</BODY>

</HEAD>

</HTML>

Output
Q7. Write an HTML code to display your name in Italic text and
Address in Bold text and the title of the page will be “Practice” in a
web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Practice</TITLE>

<BODY>

<I>Name</I>

</B>Address</B>

</BODY>

</HEAD>

</HTML>

Output
Q8. Write an HTML code to display your name in Italic text and
Address in Bold text in two different lines in a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Webpage</TITLE>

<BODY>

<I>Name</I><BR>

</B>Address</B>

</BODY>

</HEAD>

</HTML>

Output
Q8. Write an HTML code to change the background colour in a web
browser.

Ans:

<HTML>

<HEAD>

<TITLE>Webpage</TITLE>

<BODY BGCOLOR=BLUE>

</BODY>

</HEAD>

</HTML>

Output
Q9. Write an HTML code to display your name in a web browser and
the background colour of the web page must be pink.

Ans:

<HTML>

<HEAD>

<TITLE>Webpage</TITLE>

<BODY BGCOLOR=PINK>

Name

</BODY>

</HEAD>

</HTML>

Output
Q10. Write an HTML code to display your name in RED colour text in
a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Webpage</TITLE>

<BODY TEXT=RED>

Name

</BODY>

</HEAD>

</HTML>

Output
Q10. Write an HTML code to display H2O in a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Webpage</TITLE>

<BODY>

H<SUB>2</SUB>O

</BODY>

</HEAD>

</HTML>

Output
Q11. Write an HTML code to display 22 in a web browser.

Ans:

<HTML>

<HEAD>

<TITLE>Webpage</TITLE>

<BODY>

2<SUP>2</SUP>

</BODY>

</HEAD>

</HTML>

Output

Write an HTML code to display (a+b)2 in a web browser.


Write an HTML code to display (a+b)2=a2+2ab+b2 in a web browser.

Write an HTML code to display H2SO4 in a web browser.

Write an HTML code to display your Name, Class, Stream, Address


and Phone No. in a web browser and apply the following changes.

a) Name will be Bold and Underline Text.

b) Class and Stream will in Italic Text.

c) Address will be in bold Text.

You might also like