HTML Questions Topic Wise
HTML Questions Topic Wise
HTML Introduction
1) What is Web Application?
2) Advantage of web Application Over Mobile Application?
3) Who Created HTML?
4) What are the features of HTML?
5) What are tags in HTML?
6) What is container tag?
7) What is non-container tag?
Formatting tags
13) How many level of headings are present in html?
14) Predict the output:
<! DOCTYPE html>
<html>
<head>
<title>Demo Page</title>
</head>
<body>
<h7>Pentagon Space</h7>
</body>
</html>
15) Which is the highest level of heading supported in HTML?
16) Which is the lowest level of heading supported in HTML?
17) Is heading a container tag or non-container tag?
18) What is the use of <p> tag in html?
19) List the formatting tags in html?
20) Predict the output:
[email protected] 1
<! DOCTYPE html>
<html>
<head>
<title>Demo Page</title>
</head>
<body>
<h1><strong>Pentagon Space</strong></h1>
</body>
</html>
Attributes
26) What are attributes in html?
27) What is the advantage of attribute?
28) Write the syntax of attribute?
29) Where does the attributes will be specified?
30) How many attributes can I write for a specific tag?
31) How to add image to the web page?
32) What is the mandatory attribute of image tag?
33) What is the use of alt attribute?
34) How to align height and width of the image?
35) Is image tag container tag or non-container tag?
36) How to add link to the web page?
37) Which is the mandatory attribute for anchor tag?
38) Which attribute to be used to open link in new tab and what is the associated
value for the same?
39) Is anchor tag container tag or non-container tag?
List HTML
40) what are list?
41) What are 3 type of list?
[email protected] 2
42) Which tag is used to represent Unordered list?
43) Which tag is used to represent the list items?
44) What is the default marker for Unordered list?
45) How to change the marker in Unordered?
46) What are the value for the type attribute in unordered list?
47) What is the default type of marker in unordered list?
48) What is ordered list?
49) How to change the marker in ordered?
50) What are the value for the type attribute in ordered list?
51) What will be output of the code?
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
52) Predict the output of the code?
<ul type="circle">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
53) What will be the output of the code?
<ul type="none">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
54) What will output of code?
<ol type="I">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
55) Predict output of code?
<ul>
<li>Coffee</li>
<ul type="circle">
<li>Black coffee</li>
<li>Turkish coffee</li>
</ul>
<li>Tea
<ul type="circle">
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
</ul>
56) What is description List?
57) Which tag is used to define description list?
58) What tag is used to add description title?
[email protected] 3
59) Which tag is used to add description data?
60) Predict output of code
<dt>HTML</dt>
<dd>Markup language</dd>
<dt>CSS</dt>
<dd>Style Sheet language</dd>
<dt>JS</dt>
<dd>Scripting language</dd>
</dl>
Table in HTML
61) what are tables in HTML?
62) How to create a table in html?
63) Which tag is used to create a row in table?
64) Which tag is used to create a column/data to table in html?
65) Which tag is used to add heading in table?
66) Which tag is used to add the caption in table?
67) What is rowspan in table?
68) What is colspan in table?
69) How to add the border to the table?
70) Which attribute is used to add the border to the table?
71) Write the code to create a table with table heading as name and phone number
followed by data of 2 persons?
72) Predict the output of code?
<table border="1"write a >
<tr>
<th>Language and framework</th>
</tr>
<tr>
<td>Python</td>
<td>Django</td>
</tr>
<tr>
<td rowspan="2">Java Script</td>
<td>React Js</td>
</tr>
<tr>
<td>AngularJs</td>
</tr>
<tr>
<td>Java</td>
<td>Spring Boot</td>
</tr>
</table>
73) Write a table which should have one rowspan with 2 columns and 1 colspan with
3 columns? Is table tag container tag or non-container tag?
74) Is tr tag container tag or non-container tag?
75) Is td tag container tag or non-container tag?
[email protected] 4
76) Is th tag container tag or non-container tag?
77) What is the advantage of using caption tag in table?
78) Where exactly the caption tag to be placed in the creation of table?
79) what is element in html?
80) What is an inline element?
81) What is a block level element?
82) Give some example of inline element?
83) Give some example of block level element?
Forms in HTML
84) what is forms in html?
85) How to create a form in html?
86) Which tag is used to add the inputs?
87) Is input a container or non-container tag?
88) Which is the mandatory attribute for input tag?
89) Which type of input can be entered by the user if we specify type="email"?
90) Which type of input can be entered by the user if we specify type="Number"?
91) Which type of input can be entered by the user if we specify type="text"?
92) Which type of input can be entered by the user if we specify type="password"?
93) Which is the attribute used to add a place holder in the input fields?
94) Is input a inline element or block level element?
95) Write a simple form which take an email and password as a input?
96) Write a simple form in html which will take email number and phone as a input
and elements should not come in single line and they should be at center of page.
[email protected] 5
115) How to create text area in html?
116) What is use of rows and cols in textarea?
117) How to create a dropdown list in html?
118) How to add the options to the dropdown list?
119) How to group the similar content in dropdown list?
120) What is use of label attribute in attribute in option group tag?
121) Create a dropdown list and add 3 groups for that with 4 elements in each
dropdown list?