[go: up one dir, main page]

0% found this document useful (0 votes)
52 views7 pages

HTML Document Structure and Tags

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)
52 views7 pages

HTML Document Structure and Tags

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

UNIT-III (ONE MARKS)

1. Which tag is used to define the overall HTML document?


A) <body> B) <html> C) <head> D) <footer> Answer: B) <html>
[Link] section of an HTML document contains metadata like the title, links to CSS files, and
meta tags?
A) <header> B) <footer> C) <head> D) <body> Answer: C) <head>
3. Where is the main visible content of a webpage placed in an HTML document?
A) Inside the <html> tag B) Inside the <head> tag C) Inside the <footer> tag
D) Inside the <body> tag Answer: D) Inside the <body> tag
4. Which tag defines the header section of an HTML document?
A) <html> B) <header> C) <head> D) <h1> Answer: B) <header>
5. Which tag is required as the very first line in an HTML5 document?
A) <!DOCTYPE html> B) <html> C) <head> D) <body> Ans: A) <!DOCTYPE html>
[Link] of the following tags is used to wrap the content of a webpage that is intended to be
displayed to the user?
A) <head> B) <footer> C) <body> D) <html> Answer: C) <body>
7. Which of the following tags is used to define the title of an HTML document, which appears
in the browser’s title bar or tab?
A) <head> B) <title> C) <meta> D) <html> Answer: B) <title>
[Link] should external links to CSS files, JavaScript files, and meta information be placed in
an HTML document?
A) Inside the <body> tag B) Inside the <html> tag C) Inside the <head> tag
D) Inside the <footer> tag Answer: C) Inside the <head> tag
9. Which HTML tag contains structural elements like paragraphs, headings, images, and links
that the user interacts with?
A) <head> B) <body> C) <header> D) <footer> Answer: B) <body>
10. Which tag in HTML defines the start and end of an HTML document?
A) <html> B) <head> C) <body> D) <title> Answer: A) <html>
11. What is the purpose of the <head> tag in an HTML document?
A) To display the content of the webpage B) To define the metadata and links to external resources
(like CSS and JS) C) To create the layout structure of the page D) To define the end of a webpage
Answer: B) To define the metadata and links to external resources (like CSS and JS)
[Link] is the default section of an HTML page where you would place an external link to a
stylesheet?
A) <body> B) <html> C) <head> D) <footer> Answer: C) <head>
13. Which tag is used to define the HTML document’s metadata such as author and character
encoding?
A) <head> B) <meta> C) <body> D) <title> Answer: B) <meta>
14. Which of the following tags is used to indicate the beginning of the body section of an
HTML page?
A) <html> B) <head> C) <body> D) <header> Answer: C) <body>
15. In which tag do you place the <!DOCTYPE html> declaration to specify the HTML
version?
A) Inside the <html> tag B) Before the <html> tag C) Inside the <head> tag
D) Inside the <body> tag Answer: B) Before the <html> tag
[Link] of the following is a block-level element in HTML?
A) <span> B) <div> C) <a> D) <img> Answer: B) <div>
17. What is the purpose of the <h1> tag in HTML?
A) To define a header with the smallest size B) To create a hyperlink
C) To define the largest header or title D) To add a horizontal line
Answer: C) To define the largest header or title
18. Which tag is used to define a paragraph of text in HTML?
A) <p> B) <text> C) <para> D) <div> Answer: A) <p>
19. Which of the following tags is used to define the second-largest heading in HTML?
A) <h1> B) <h2> C) <h3> D) <h4> Answer: B) <h2>
20. Which of the following is a block-level element in HTML used to group content together?
A) <p> B) <h1> C) <div> D) <span> Answer: C) <div>
[Link] is the default behavior of block-level elements in HTML?
A) They display inline within other elements B) They take up the full width of their container C)
They only contain text D) They cannot contain other elements
Answer: B) They take up the full width of their container
[Link] HTML tag is used to create a paragraph of text?
A) <paragraph> B) <p> C) <text> D) <para> Answer: B) <p>
23. How many levels of headings are available in HTML, from <h1> to <h6>?
A) 4 levels B) 5 levels C) 6 levels D) 7 levels Answer: C) 6 levels
[Link] is the default font size of the <h1> tag compared to the <h6> tag?
A) <h1> is smaller than <h6> B) <h1> is the largest and <h6> is the smallest
C) Both <h1> and <h6> have the same font size D) Both tags are used for the same purpose, so size
doesn't matter Answer: B) <h1> is the largest and <h6> is the smallest
[Link] of the following is true about the <p> tag in HTML?
A) It is an inline element B) It is used to create a table row C) It is a block-level element used to
define a paragraph D) It can only contain text and no other HTML elements
Answer: C) It is a block-level element used to define a paragraph
26. Which of the following tags is used to define the third-largest heading in HTML?
A) <h1> B) <h2> C) <h3> D) <h4> Answer: C) <h3>
27. What happens when multiple <p> tags are used in HTML?
A) The paragraphs are displayed on a single line B) The paragraphs are stacked vertically with space
between them C) They are displayed as a single block with no separation
D) The text inside each <p> tag is bold
Answer: B) The paragraphs are stacked vertically with space between them
28. Which block-level element is commonly used for grouping sections of content in HTML?
A) <span> B) <div> C) <p> D) <a> Answer: B) <div>
29. How does the <h1> tag affect SEO (Search Engine Optimization)?
A) It is considered the most important heading for search engines B) It has no impact on SEO C)
It reduces the SEO ranking of a page D) It is used for styling purposes only
Answer: A) It is considered the most important heading for search engines
[Link] of the following is NOT a block-level element?
A) <h1> B) <p> C) <div> D) <span> Answer: D) <span>
[Link] tag is used to make text bold in HTML?
A) <b> B) <strong> C) Both A and B D) <bold> Answer: C) Both A and B
[Link] tag is used to italicize text in HTML?
A) <i> B) <em> C) Both A and B D) <italic> Answer: C) Both A and B
33. Which tag is used to define a smaller text size in HTML?
A) <small> B) <tiny> C) <font> D) <sub> Answer: A) <small>
34. Which tag is used to display text in a larger size in HTML?
A) <big> B) <font> C) <h1> D) <large> Answer: A) <big>
35. What is the purpose of the <strong> tag in HTML?
A) To make text bold and semantically emphasize importance B) To increase the font size of the text
C) To italicize the text D) To underline the text
Answer: A) To make text bold and semantically emphasize importance
[Link] HTML tag is used to apply a strikethrough effect to text?
A) <strike> B) <del> C) Both A and B D) <s> Answer: C) Both A and B
37. Which of the following tags is used to display text in italic?
A) <i> B) <italic> C) <em> D) Both A and C Answer: D) Both A and C
38. Which tag is used to specify a custom font family in HTML?
A) <font> B) <style> C) <big> D) <text> Answer: A) <font>
[Link] is the primary purpose of the <b> tag in HTML?
A) To bold text without emphasizing its importance B) To make text italic C) To underline text D)
To change the font size Answer: A) To bold text without emphasizing its importance
40. What kind of list will <ol> tags create?
a) Numbered list b) Bulleted list c) Unordered list d) None of the above
41. Increasing the cell padding means __________
a) Increase the softness of your site b) Increase the space between cells
c) Increase the distance between cells and content d) All of the above
42. The tag which is used to establish the absolute base for relative URLs used in the
documents hypertext links
a) <BODY> b) <TITLE> c) <BASE> d) <BR>
43. The <BASE> tag is designed to appear only between _______
a) <BODY> b) <HEAD> c) <TITLE> d) <PRE>
44. A much better approach to establish the base URL is to use the ______ element.
a) HEAD b) BODY c) BASE d) None of the above
45. Which colors consist of equal amounts of all basic colors?
a) white, blue and gray b) white, black and gray
c) purple, green and blue d) None of the above
46. HTML tags are recognized by ____
a) <! b) <= => c) < > d) None of the above
47. Choose the correct HTML tag to make a text bold
a) <bd> b) <bold> c) <bl> d) <b>
48. Which tag adds a paragraph break after the text?
a) <BR> b) <P> c) <PARAGRAPH> d) <HR>
49. How can you make a list that list the items with numbers?
a) <ul> b) <list> c) <ol> d) None of the above
50. Gif and jpg are the two main types of what?
a) animated effects b) videos c) images d) None of the above
51. Which tag will add rows to your tables?
a) <tr> and </tr> b) <th> and </th> c) <td> and </td> d) None of the above
52. Which of the following is underline tag?
a) <PRE> b) <UL> c) <U> d) <HR>
53. Any target specified in the BASE element can be overridden on a case-by-case basis by
specifying a different target in different forms
a) Anchor b) Imagemap c) Link d) All of the above
54. Which tag can set the background color for your page?
a) <body> b) <font> c) <head> d) <title>
55. <P> is called
a) paragraph tag b) container tag c) head tag d) None of the above
56. The <small> and <big> tags are special in what way?
a) They are for images only b) They work on anything
c) They can be repeated d) None of the above
57. To start a list using circles, use
a) <ul “round”> b) <ul type=”circle”> c) <ul type=”round”> d) <ul =”round”>
58. Which tag is used to insert images into your web page?
a) image b) scr c) im d) None of the above
59. Choose the correct HTML tag to left-align the content inside a table cell
a) <td leftalign> b) <td align=”left”> c) <td valign=”left”> d) <td=”left”>
60. The tag which allows some Web server search engines to search your Web page
a) <SEARCH> b) <ISINDEX> c) <HEAD> d) <LINK>
61. The special formatting tag is e) <P>
a) <TT> b) <PRE> c) None of the above
62. Which of the following will NOT be found in the <head> section?
a) <Table> b) <Metatags> c) <Title> d) None of the above
63. If you create an HTML page in word processor,
a) save it with binary file b) save it with WMF file
c) save it with ASCII text file d) All of the above
64. Generally, there are
a) 4 headers in most HTML page b) 5 headers in most HTML page
c) 6 headers in most HTML page d) 7 headers in most HTML page
65. The <HR> tag is used for
a) horizontal ruler b) new line text c) new paragraph d) vertical ruler
66. How can you make a list that lits the items with bullets?
a) <dl> b) <ul> c) <ol> d) None of the above
67. What is the correct HTML code for inserting an image?
a) <img>[Link]</img> b) <img href=”[Link]/>
c) <img src=”[Link]”> d) None of the above
68. What will be the added by using <td> and </td> tag?
a) rows b) steps c) cell d) columns
69. Image link can show a text label if you add property
a) alt b) str c) alternative d) All of the above
70. Which format usually works best for photos?
a) HTML b) GIF c) JPG d) All of the above
71. The attribute used to create the actual section within the current HTML document is
a) LINK b) HERF c) BASE d) NAME
72. The <A> tag acts almost like the
a) <P> b) <B> c) <U> d) <I>
73. When images are used as links they get a blue border.
a) Always b) Never c) Unless border is set to zero d) None of the above
74. Where do you place the <title> tag in HTML?
a) Base b) Head c) Body d) None of the above
75. What is the correct HTML code for inserting a background image?
a) <body background=”[Link]”> b) <img src=”[Link]” background />
c) <background image=”[Link]”> d) <background=”[Link]”>
76. The tags which are required for every HTML page you create
a) Document b) Comment c) Container d) None of the above
77. The style element holds the document for setting
a) colour, alignment and border b) font, colour and alignment
c) font, colour, alignment and border d) colour, alignment
78. How many characters can be written with 1 kilobyte?
a) 1000 b) 1024 c) 1048 d) None of the above
79. One should never combine the “start” and “type” option.
a) True b) False c) Sometimes True, Sometimes False d) None of the above
80. To start a numbered list with regular numerals, use
a) <ol type=”I”> b) <ol type=”a”> c) <ol type=”A”> d) <ol type=”1”>
81. The tag for title text for rows and columns is
a) <TD> b) <TR> c) <TH> d) None of the above
82. How do you add a link which will allow the visitor to send an email from your page?
a) Add <a href=”[Link] b) Add <a href=”sendmailtoyouraddress”>
c) Add <a=”[Link] d) clour, alignment
83. The symbol used at the beginning of the HREF text is
a) @ b) & c) $ d) #
84. The format of the <BASE> tag is
a) <HREF=”absolute URL”> b) <BASE=”absolute URL”>
c) <BASE URL=> d) <base href=”[Link]
85. The tag used to create a hypertext relationship between the current document and an external
resource is
a) <ISINDEX> b) <LINK> c) <A> d) None of the above
86. The default value of BORDER attribute is
a) 1 pixel b) 2 pixel c) 3 pixel d) None of the above
87. To set the colour for table borders, use ______
a) bgcolor=#003300 b) bgimage=#003300
c) bordercolor=#003300 d) tablecolor=#003300
88. What is the correct HTML for adding a background color?
a) <body style = “background-color : yellow”> b) <body background= “yellow”>
c) <background>yellow</background> d) All of the above
89. The background image will scroll when the user scrolls down the page, you add which property
to the <body> tag?
a) bgproperties = “fixed” b) bgproperties = “move”
c) bgproperties = “hold still” d) None of the above
90. The most basic element of any HTML page is
a) ASCII text b) text c) BCD text d) None of the above
91. To separate single list, use
a) <ol> and </ol> b) <ul> and </ul> c) <li> and </li> d) All of the above
92. To create a numbered list, use
a) <il> b) <ol> c) <ul> d) <li>
93. Which of the following is italic tag
a) <LI> b) <II> c) <IT> d) <I>
94. HTML is simple than
a) SGML b) CTML c) STML d) None of the above
95. Why should you specify a background colour if you are using an image for the actual background
of your page?
a) So the text shows up better b) In case the image doesn’t fit right
c) The background colour will be shown until the image loads d) None of the above
96. Which attribute is used to name an element uniquely?
a) class b) id c) dot d) All of the above
97. Text within <strong> tag is displayed as
a) list b) italic c) underline d) bold
98. To create a combo box which tag will you use?
a) <select> b) <list> c) <input type=”dropdown”> d) None of the above
99. Which tag create a check box for a form in HTML?
a) <checkbox> b) <select> c) <input type-“checkbox”> d) None of the abov
100.\ Which of these tags belong to table?
a. <thead>,<body>,<tr> b.<table>,<head>,<tfoot> c. 3.<table>,<tr>,<td> d.<table>,<tr>,<tt>

You might also like