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

HTML Practice Questions With Images

The document contains a series of HTML practice questions designed for Class 10 students, with each question providing an HTML input and its corresponding output. The questions cover basic HTML structure, including document creation, inserting images, and creating links. Each example demonstrates fundamental HTML concepts and their practical applications.

Uploaded by

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

HTML Practice Questions With Images

The document contains a series of HTML practice questions designed for Class 10 students, with each question providing an HTML input and its corresponding output. The questions cover basic HTML structure, including document creation, inserting images, and creating links. Each example demonstrates fundamental HTML concepts and their practical applications.

Uploaded by

chaturvedipunam0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

HTML Practice Questions - Class 10

Q1. Basic HTML Document

INPUT
<HTML>
<HEAD>MY FIRST WEBPAGE<BR>
<TITLE>Vanya</TITLE>
</HEAD>
<BODY>
This is a HTML document.<BR>
HTML tags are predefined and are not case-sensitive.<BR>
All HTML tags are typed inside the angular brackets (< and >) and the text
between these brackets are called elements.<BR>
The attributes are always specified in the opening tags, which provides
additional information about that tag.
</BODY>
</HTML>

OUTPUT
MY FIRST WEBPAGE
This is a HTML document.
HTML tags are predefined and are not case-sensitive.
All HTML tags are typed inside the angular brackets (< and >) and the text
between these brackets are called elements.
The attributes are always specified in the opening tags, which provides
additional information about that tag.
HTML Practice Questions - Class 10

Q2. Sample HTML Question 2

INPUT
<HTML>
<HEAD><TITLE>Sample Page 2</TITLE></HEAD>
<BODY>
This is sample question 2.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 2.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q3. Sample HTML Question 3

INPUT
<HTML>
<HEAD><TITLE>Sample Page 3</TITLE></HEAD>
<BODY>
This is sample question 3.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 3.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q4. Sample HTML Question 4

INPUT
<HTML>
<HEAD><TITLE>Sample Page 4</TITLE></HEAD>
<BODY>
This is sample question 4.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 4.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q5. Sample HTML Question 5

INPUT
<HTML>
<HEAD><TITLE>Sample Page 5</TITLE></HEAD>
<BODY>
This is sample question 5.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 5.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q6. Sample HTML Question 6

INPUT
<HTML>
<HEAD><TITLE>Sample Page 6</TITLE></HEAD>
<BODY>
This is sample question 6.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 6.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q7. Sample HTML Question 7

INPUT
<HTML>
<HEAD><TITLE>Sample Page 7</TITLE></HEAD>
<BODY>
This is sample question 7.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 7.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q8. Sample HTML Question 8

INPUT
<HTML>
<HEAD><TITLE>Sample Page 8</TITLE></HEAD>
<BODY>
This is sample question 8.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 8.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q9. Sample HTML Question 9

INPUT
<HTML>
<HEAD><TITLE>Sample Page 9</TITLE></HEAD>
<BODY>
This is sample question 9.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 9.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q10. Sample HTML Question 10

INPUT
<HTML>
<HEAD><TITLE>Sample Page 10</TITLE></HEAD>
<BODY>
This is sample question 10.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 10.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q11. Sample HTML Question 11

INPUT
<HTML>
<HEAD><TITLE>Sample Page 11</TITLE></HEAD>
<BODY>
This is sample question 11.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 11.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q12. Sample HTML Question 12

INPUT
<HTML>
<HEAD><TITLE>Sample Page 12</TITLE></HEAD>
<BODY>
This is sample question 12.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 12.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q13. Sample HTML Question 13

INPUT
<HTML>
<HEAD><TITLE>Sample Page 13</TITLE></HEAD>
<BODY>
This is sample question 13.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 13.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q14. Sample HTML Question 14

INPUT
<HTML>
<HEAD><TITLE>Sample Page 14</TITLE></HEAD>
<BODY>
This is sample question 14.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 14.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q15. Sample HTML Question 15

INPUT
<HTML>
<HEAD><TITLE>Sample Page 15</TITLE></HEAD>
<BODY>
This is sample question 15.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 15.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q16. Sample HTML Question 16

INPUT
<HTML>
<HEAD><TITLE>Sample Page 16</TITLE></HEAD>
<BODY>
This is sample question 16.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 16.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q17. Sample HTML Question 17

INPUT
<HTML>
<HEAD><TITLE>Sample Page 17</TITLE></HEAD>
<BODY>
This is sample question 17.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 17.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q18. Sample HTML Question 18

INPUT
<HTML>
<HEAD><TITLE>Sample Page 18</TITLE></HEAD>
<BODY>
This is sample question 18.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 18.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q19. Sample HTML Question 19

INPUT
<HTML>
<HEAD><TITLE>Sample Page 19</TITLE></HEAD>
<BODY>
This is sample question 19.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 19.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q20. Sample HTML Question 20

INPUT
<HTML>
<HEAD><TITLE>Sample Page 20</TITLE></HEAD>
<BODY>
This is sample question 20.<BR>
HTML is used to create webpages.<BR>
</BODY>
</HTML>

OUTPUT
This is sample question 20.
HTML is used to create webpages.
HTML Practice Questions - Class 10

Q21. Inserting a Simple Image

INPUT
<HTML>
<HEAD><TITLE>Image Example</TITLE></HEAD>
<BODY>
This is an example of inserting an image.<BR>
<IMG SRC="flower.jpg" ALT="A beautiful flower" WIDTH="300" HEIGHT="200">
</BODY>
</HTML>

OUTPUT
This is an example of inserting an image.
[Image of a flower displayed with width 300 and height 200]
HTML Practice Questions - Class 10

Q22. Inserting an Animated GIF

INPUT
<HTML>
<HEAD><TITLE>Animated Image</TITLE></HEAD>
<BODY>
Here is an animated image:<BR>
<IMG SRC="animated_dog.gif" ALT="Running Dog Animation" WIDTH="200"
HEIGHT="150">
</BODY>
</HTML>

OUTPUT
Here is an animated image:
[Animated GIF of a running dog displayed with width 200 and height 150]
HTML Practice Questions - Class 10

Q23. Image with Link

INPUT
<HTML>
<HEAD><TITLE>Clickable Image</TITLE></HEAD>
<BODY>
Click the image to visit our website:<BR>
<A HREF="https://www.example.com">
<IMG SRC="logo.png" ALT="Website Logo" WIDTH="150" HEIGHT="100">
</A>
</BODY>
</HTML>

OUTPUT
Click the image to visit our website:
[Logo image shown, and clicking it opens the link https://www.example.com]

You might also like