Loading
Quipo
in
MindXchange
Log In
Tutorials
Exercises
MCQs
Interview Q & A
Tests
HTML
CSS
JavaScript
Java
SQL
Angular
Spring
Quipo
in
MindXchange
Menu
MindXchange
HTML
CSS
JavaScript
Java
SQL
Angular
Spring
Welcome to Quipoin
Login to track your progress
Quipoin Menu
Learn • Practice • Grow
Tutorial
Exercises
MCQs
Interview Q & A
Tests
HTML Tutorial
Attributes
Heading
Head
Comments
Anchor Tag
Image Tag
Favicon Tag
Imoji
Symbols
Tables
Id
Iframe
File Path
Formatting
Title
Quotation
Block-level elements
Inline Element
Basic HTML Design Guidelines
Entities
Div tag in HTML
HTML List
HTML Lists
Ordered Lists
Unordered Lists
Description Lists
HTML Form
Form
Form Element
Input Element
Form Attributes
Text area Tag
Label Tag
HTML Graphics
Introduction to HTML Graphics
HTML Canvas
Transformation in Canvas
Animation in Canvas
HTML SVG
Transformation in SVG
Interactivity and Animation in SVG
html /
Id
mcq
Chapter
Exercises
Interview Qs
Videos
Discussion
Q1.
What is the purpose of the id attribute?
A.
To style multiple elements
B.
To uniquely identify an element
C.
To group elements
D.
To create tables
Q2.
Which CSS selector is used to target an id?
A.
.
B.
#
C.
*
D.
%
Q3.
Which of the following is correct?
A.
Two elements can have the same id
B.
Each id must be unique
C.
id works only in CSS
D.
id cannot be used in JavaScript
Q4.
Which example uses id correctly?
A.
<p ID="para1">Text</p>
B.
<p id="123para">Text</p>
C.
<p id="para">Text</p>
D.
<p id="para" id="text">Text</p>
Q5.
IDs are mainly used for:
A.
CSS styling
B.
JavaScript targeting
C.
Page navigation
D.
D. All of the above