Zed-King Study app · Free
O Level students across India practise here, free
Google login · no Play Store needed
About this PDF
The top 100 viva questions on HTML, CSS and JavaScript asked in the M2-R5.1 practical exam, with short, exam-ready answers.
This is part of the free O Level PR-2 study material in the Zed-King Study Zone. You can read every page above in your browser, or download the file and study offline. Zed-King Group of Institute is a NIELIT Study Centre in Kaithal, Haryana, and all of this material follows the current NIELIT syllabus.
- Course
- O Level — NIELIT Foundation Diploma
- Module
- PR2 — PR-2: M2-R5.1 Web Designing and Publishing — Practical
- Section
- Viva Questions
- Format
- PDF — read online or download
- Price
- Free, no sign-up required
Text from this PDF
The opening pages as plain text — open the reader above for tables, diagrams and the full file.
TOP 100 VIVA QUESTION’s HTML, CSS & JS Q-1. What is HTML?
HTML stands for Hyper Text Markup Language.
Q-2. HTML is programming or markup language?
Markup language.
Q-3. What is HTML used for?
To create webpages.
Q-4. What is a tag?
A keyword enclosed in < >.
Q-5. What is an attribute?
Extra information about a tag.
Q-6. Root tag of HTML?
<html>.
Q-7. Use of <head> tag?
Contains title and meta info.
Q-8. Use of <title> tag?
Shows title on browser tab.
Q-9. Use of <body> tag?
Visible content of webpage.
Q-10. What is an empty tag?
Tag without closing tag.
Q-11. Example of empty tag?
<br>, <hr>, <img>.
Q-12. Use of <br> tag?
Line break.
Q-13. Use of <hr> tag?
Horizontal line.
Q-14. What are formatting tags?
Tags used to format text.
Q-15. Example of formatting tags?
Q-16. Difference between <b> and <strong>?
<strong> shows importance.
Q-17. What is hyperlink?
Link to another page.
Q-18. Tag for hyperlink?
Q-19. What is href?
Specifies link address.
Q-20. Use of target="_blank"?
Opens link in new tab.
Q-21. Tag to insert image?
<img>.
Q-22. What is alt attribute?
Alternate text for image.
Q-23. What is list?
Collection of items.
Q-24. Types of list?
Ordered and unordered.
Q-25. Tag for ordered list?
<ol>.
Q-26. Tag for unordered list?
<ul>.
Q-27. What is <li> tag?
List item.
Q-28. What is table?
Data in rows and columns.
Q-29. Tag for table row?
<tr>.
Q-30. Tag for table data?
<td>.
Q-31. Tag for table heading?
<th>.
Q-32. What is rowspan?
Merge rows.
Q-33. What is colspan?
Merge columns.
Q-34. What is form?
Collects user data.
Q-35. Tag for form?
<form>.
Q-36. Input type for text box?
type="text".
Q-37. Input type for password?
type="password".
Q-38. Input type for radio button?
type="radio".
Q-39. Input type for checkbox?
type="checkbox".
Q-40. Is HTML case sensitive?
No.
Q-41. What is CSS?
Cascading Style Sheets.
Q-42. Why CSS is used?
To design webpages.
Q-43. Types of CSS?
Inline, Internal, External.
Q-44. Inline CSS means?
Style inside tag.
Q-45. Internal CSS means?
Style inside <style> tag.
Q-46. External CSS means?
Separate .css file.
Q-47. Property to change text color?
color.
Q-48. Property to change background color?
background-color.
Q-49. Property to change font size?
font-size.
Q-50. Property to align text?
text-align.
Q-51. What is selector?
Selects HTML elements.
Q-52. Example of selector?
Element, id, class.
Q-53. Symbol for id selector?
Q-54. Symbol for class selector?
Q-55. What is border?
Outline around element.
Q-56. What is margin?
Space outside element.
Q-57. What is padding?
Space inside element.
Q-58. Property to make text bold?
font-weight.
Q-59. Property to remove underline from link?
text-decoration: none.
Q-60. CSS is case sensitive?
No (mostly).
Q-61. What is JavaScript?
Client-side scripting language.
Q-62. Why JavaScript is used?
To make webpage interactive.
Q-63. JavaScript runs where?
In browser.
Q-64. Tag used for JavaScript?
<script>.
Q-65. Is JavaScript case sensitive?
Yes.
Q-66. What is variable?
Stores data.
Q-67. Keywords to declare variable?
var, let, const.
Q-68. What is alert box?
Message popup.
Q-69. What is prompt box?
Takes user input.
Q-70. What is confirm box?
Shows OK and Cancel.
Q-71. What is event?
User action.
Q-72. Example of events?
onclick, onload.
Q-73. What is onclick event?
Occurs on click.
Q-74. What is onload event?
Occurs when page loads.
Q-75. What is DOM?
Document Object Model.
Q-76. Use of DOM?
Access HTML elements.
Q-77. Method to select element by id?
getElementById().
Q-78. What is innerHTML?
Changes content.
Q-79. What is function?
Reusable block of code.
Q-80. What is loop?
Repeats statements.
Q-81. Types of loop?
for, while.
Q-82. Operator for addition?
Q-83. Operator for remainder?
Q-84. What is conditional statement?
Decision making.
Q-85. Example of conditional statement?
if-else.
Q-86. What is form validation?
Check data before submit.
Q-87. How to stop form submission?
return false.
Q-88. What is Date object?
Gives date and time.
Q-89. Syntax for current date?
new Date().
Q-90. What is even number?
Divisible by 2.
Q-91. What is odd number?
Not divisible by 2.
Q-92. What is factorial?
Product of numbers.
Q-93. What is palindrome?
Same forward and backward.
Q-94. What is backgroundColor property?
Changes background color.
Q-95. How to redirect page?
window.location.
Try this HTML, CSS and JavaScript live — free
Type any tag or style from these notes into our free editor, press Run and see the page change. The explained examples show the code and the result side by side.
Prepare for O Level with expert guidance
Classroom training, practical labs and exam registration at Zed-King Institute, Kaithal.
