0% found this document useful (0 votes)
66 views6 pages

HTML Questions Topic Wise

Uploaded by

Arun K
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)
66 views6 pages

HTML Questions Topic Wise

Uploaded by

Arun K
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
You are on page 1/ 6

HTML Important Questions

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?

Basic Structure of html


8) Briefly describe the structure of HTML along with the code?
9) What is the role of DOCTYPE in HTML5?
10) What are all the tags can be inserted inside the head section of the page?
11) What is the use of <title></title> tag?
12) Predict the output:
<! DOCTYPE html>
<html>
<head>
<title>Demo Page</title>
</head>
<body>
</body>
</html>

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>

21) Predict the output:


<! DOCTYPE html>
<html>
<head>
<title>Demo Page</title>
</head>
<body>
<h1><i>Pentagon Space</i></h1>
</body>
</html>
22) What is the difference between <sup> and <sub> tags?
23) What is the role of formatting tags?
24) How to write the Comments in HTML?
25) What is an html element?

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.

97) What is use of input type submit?


98) Which attribute is used to add the value for the button in html?
99) What is use of input type button?
100) What is difference between input type button and input type email?
101) What is use of action attribute?
102) What is use of input of radio?
103) Which attribute is used to select only one value from the required values in
radio button?
104) What is use of checkbox in html?
105) Which input type is used to get the date in html?
106) Which attribute is used to restrict the date in input?
107) Which input type is used to get the file upload in form in html?
108) Write a form which will take the following inputs?
109) Name, email, phone, gender, programming language, language familiar with,
certification courses (add 4 certifications in checkbox) along with password and
conform password.
110) Write a form which will take email and password as an input along with the
button?
111) What is used of fieldset tag in html?
112) What is use of legend tag in html?
113) By default, where the content will be placed in legend tag?
114) Write a login form and sign up form along with the border and text in the
border?

[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?

Multimedia tags HTML


122) what is audio tag in html?
123) What is use of controls attribute in audio tag?
124) Which is the other tag that is to be used in audio tag and the mandatory
attribute in that tag?
125) what is video tag in html?
126) What is use of controls attribute in video tag?
127) Which is the other tag that is to be used in video tag and the mandatory
attribute in that tag?
128) What is use of div tag in html?
129) What is use of span tag in html?
130) Is div a block element and inline element?
131) Is span a block level element and inline element?
132) What are semantic tags in html?
133) what are semantic tags in html?
134) What is advantage of semantic tags in html?
135) What is difference between the semantic tags and formatting tags?

[email protected] 6

You might also like