KEMBAR78
HTML Css JS Weekly Test | PDF | Html Element | Html
0% found this document useful (0 votes)
4 views11 pages

HTML Css JS Weekly Test

Uploaded by

Chahat Rajput
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)
4 views11 pages

HTML Css JS Weekly Test

Uploaded by

Chahat Rajput
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/ 11

Html Css JS Weekly

Test

Q1: Which HTML element is used to specify


text that should be displayed as a progress
indicator?
(a) <progress>
(b) <meter>
(c) <status>
(d) <indicator>
Q2: Which of the following statements will
result in true when using the strict equality
operator (===)?
a) 5 === "5"
b) null === undefined
c) true === 1
d) 5 === 5
Q3: Which HTML tag is used to group
multiple options in a dropdown list?
(a) <optgroup>
(b) <group>
(c) <optiongroup>
(d) <selectgroup>

Q4: What is the purpose of the <template> tag


in HTML?
(a) To define reusable HTML content
(b) To create a placeholder for dynamic
content
(c) To define a template for JavaScript
(d) To define a structure for a webpage

Q5: What is the purpose of the <datalist> tag


in HTML?
(a) To provide a list of predefined options for
an input field
(b) To define a list of data
(c) To create a dropdown list
(d) To define a list of options for a select
element

Q6: Which operator is used to check both the


value and the type of a variable in JavaScript?
a) ==
b) ===
c) =
d) !=

Q7: Which of the following CSS properties is


used to control the order of flexible items in a
flex container?
A) flex-direction
B) order
C) align-items
D) flex-grow
Q8: What is the purpose of the return
statement in JavaScript?
a) To exit a function and return a value
b) To stop a loop
c) To repeat a function
d) To declare a variable

Q9: Which HTML tag is used for adding


contact information about a document?
(a) <address>
(b) <contact>
(c) <info>
(d) <details>

Q10: Which HTML5 tag is used to define a


user-input control in a form?
(a) <input>
(b) <control>
(c) <userinput>
(d) <form>

Q11: What tag is used to render an image on a


webpage?
(a) <img>
(b) <image>
(c) <picture>
(d) <src>

Q12: Which tag is used to define a form in


HTML?
(a) <form>
(b) <input>
(c) <fieldset>
(d) <submit>

Q13: What is the purpose of the <iframe> tag


in HTML?
(a) To embed another document within the
current HTML document
(b) To create a frame around an image
(c) To define a section of the document
(d) To create a hyperlink

Q14: Which tag is used to define a table


header in HTML?
(a) <th>
(b) <td>
(c) <tr>
(d) <header>

Q15: In CSS, how would you center a block-


level element horizontally within its parent
container?
A) margin: auto;
B) text-align: center;
C) position: center;
D) align: middle;

Q16: Which of the following CSS properties


will remove the default bullet points from an
unordered list?
A) list-style: none;
B) display: block;
C) text-decoration: none;
D) remove-bullets: true;

Q17: Which of the following methods is used


to remove the last element from an array in
JavaScript?
a) pop()
b) shift()
c) splice()
d) remove()
Q18: Which of the following properties is
used to specify the thickness of a border?
A) border-width
B) border-height
C) border-thickness
D) border-style

Q19: Which HTML tag is used to define


important text?
(a) <strong>
(b) <important>
(c) <bold>
(d) <em>

Q20: Which property in CSS is used to define


the space between a border and the
surrounding elements?
A) padding
B) border-spacing
C) margin
D) border-width

Q21: Which keyword is used to declare a


variable in JavaScript that can be reassigned?
a) const
b) var
c) let
d) static

Q22: What is the purpose of the <mark> tag in


HTML?
(a) To highlight text
(b) To mark a section of text
(c) To define a bookmark
(d) To create a marker

Q23: Which tag is used to define an


interactive area within an image map?
(a) <area>
(b) <map>
(c) <interactive>
(d) <clickable>

Q24: How do you add a comment in CSS?


A) // This is a comment
B) <!-- This is a comment -->
C) /* This is a comment */
D) # This is a comment

Q25: Which HTML tag is used to specify a


term that should be defined within the
content?
(a) <dfn>
(b) <term>
(c) <define>
(d) <meaning>

You might also like