Previous 5years HTML Questions
Previous 5years HTML Questions
1. <b> tag makes the enclosed text bold. What is the other tag to make text bold? —
(a) <strong> (b) <dar> (c) <black> (d) <emp>
2. All HTML tags are must be enclosed in — (a) ? And ! (b) < And > (c) { And } (d) # And #
3. CSS stands for — (a) Cascade Style Sheet (b) Color and Style Sheet (c) Cascading Style Sheet
(d) None
4. If we want to define style for a unique element, then which CSS selector will we use? —
(a) Id (b) text (c) class (d) name
5. Inside which HTML elements do we put the JavaScript? —
(a) <js> (b) <script> (c) <scripting> (d) <javascript>
6. Tags and text that are not directly displayed on the page are written in ____ section. —
(a) <html> (b) <head> (c) <title> (d) <body>
7. Which of the following CSS property is used to set the blend mode for each background layer
of an element? — (a) background-blend-mode property (b) background-collapse property (c)
background-transform property (d) background-origin property
8. What is the difference between static and dynamic web pages?
9. What are the advantages of using JavaScript?
10. Write a JavaScript Program to find HCF or GCD.
11. In how many ways a JavaScript code can be involved in an HTML file?
12. What is the difference between the operators "==" & "==="?
13. Which of the following HTML tag is used for inserting the largest heading in HTML? — (a) <h1>
(b) <h3> (c) <h5> (d) <h6>
14. In how many ways can CSS be written in? — (a) 1 (b) 2 (c) 3 (d) 4
15. When a user views a page containing a JavaScript program, which machine usually executes
the scripts? — (a) The user machine running a web browser (b) The web server (c) A central
machine deep within Netscape office (d) None of the above
16. A _______ language is computer language that uses tags to define elements within a
document.
17. Number of types of errors in JavaScript’s is _______ .
18. What is the first page of a website called?
19. Does all HTML tags have an end tag?
20. Write the utility of a scripting language.
21. How an image can be inserted using suitable tags of HTML in any web page?
22. What are style sheets?
23. Define cascading.
24. Write proper syntax to introduce Style Sheet in HTML?
25. Why do we use JavaScript?
26. How many ways you can apply CSS to an HTML document?
27. Write down the various formatting tags in HTML?
28. Write an HTML code to display in Web Browser following table :
MATH PHYSICS IT
80 90 95
65 78 65
89 76 70
29. Name some CSS style components.
30. Design a HTML page with JavaScript to calculate sum of n natural numbers.
35. Explain the differences between <picture> tag and <img> tag used in HTML.
37. What are the key difference between Java and JavaScript?
38. Differentiate between an ordered list and an unordered list used in HTML with proper
example.
39. Write a program to create HTML table with the following output: