Grade 8 HTML Question Bank
Grade 8 HTML Question Bank
Grade 8 HTML Question Bank
SESSION 2023-24
GRADE VIII SUBJECT: COMPUTER TERM I
QUESTION BANK ON HTML,CSS & FORMS
---------------------------------------------------------------------------------------------------------
M.C.Q:
1. Which tag do we use in HTML for inserting a line-break?
a. <a> b. <br> c. <b> d. <pre>
Answer: (b) <br>
5. Which tag is used in HTML5 for the initialization of the document type?
a. <Doctype HTML> b. <!DOCTYPE html>
c. <Doctype> d. <\Doctype html>
Answer: (b) <!DOCTYPE HTML>
9. Which of the following tag is used for inserting the largest heading in HTML?
a. <h3> b. <h1> c. <h5> d. <h6>
Answer: (b)
13. Which of the following tag is used to add rows in the table?
a. <td> and </td> b. <th> and </th>
c. <tr> and </tr> d. None of the above
Ans: (c)
16. Identify the valid HTML tags for creating a basic HTML page.
a) <HTML> b) <title>
c) <bootstrap> d) <HEAD>
Ans: <HTML>, <title> and <HEAD>
17. Lists items created using the <ul> tag are marked with which of the following?
a) Numbers b) Alphabets
c) Circle Bullets d) Square bullets
Ans: circle bullets and square bullets
18. Which of the following are valid margin specific properties of CSS?
a) Margin-inner b) Margin-outer
c) Margin-bottom d) Margin-left
Ans: Margin-bottom and Margin-left
a) Inline b) Internal
c) External d) None of the above
Ans: Inline
Ans: No
Ans: style
27. Which of the following property is used as the shorthand property of margin properties?
a) margin-left b) margin-right
c) margin d) None of the above
Ans: margin
Ans: declaration
Ans: property-name
30. From the given options which is/are the valid way to represent a color?
A. A valid color name like "blue" b. HEX code like "#0000ff"
c. RGB Value like "rgb(0,0,255) d. All of the above
Ans: All of the above
A. text box.
B. radio button.
C. submit button.
D. All of these.
33. Which of the following tag is used for drop down list?
A. <select> B. <text>
C. <textarea> D. <dropdown>
Ans: <select>
34. How more than one option can be selected in drop down?
Ans: B
Ans: <textarea>
Ans: <submit>
Ans: date
39. Which attribute defines the file-select field?
a) file b) checkbox
c) button d) text
Ans: file
Ans: min
----------------------------------------------------------------------------------------------------------------------
8) Name the command/tag in HTML used to change the line while writing text on a webpage.
Ans: <BR> - Break line is used to change the line while writing text on a webpage.
For eg: Hi <br> Hello
OUTPUT: Hi
Hello
9) Name the command/tag in HTML used to change the paragraph while writing text on a webpage.
Ans: <P> - Paragraph tag is used to change the paragraph while writing text on a webpage.
QUESTIONS ON CSS
27) Name the CSS technique used for quick styling of the webpage.
Ans: Inline CSS is used for quick and specific styling.
36. What is the difference between checkbox and radio button in HTML.
Ans: Checkboxes allow the user to choose items from a fixed number of alternatives, while radio buttons
allow the user to choose exactly one item from a list of several predefined alternatives.
Creating web forms allows you to control the quality of the data you're collecting. By setting up controls to
ensure that invalid details cannot be submitted (including their email address, phone number, etc.) your team
can ensure accurate data capture upfront.
38. What is the difference between Submit & Reset button in HTML?
Ans: Submit Button - Submit Button allow the user to send the form data onwards for processing. Reset
button - Reset button allows the user to clear the form fields of all entered information.