NEW
Font size
WorksheetsWEB DESIGN QUIZ P2
Total questions: 20
Worksheet time: 20mins
What is the primary use of the class attribute in HTML?
Identify unique elements
Define inline styles
Assign multiple IDs
Reference class names for styling
How is a CSS class selector defined?
Preceded by a full stop
Preceded by a hash character
Preceded by a dollar sign
Preceded by an exclamation mark
Can HTML classes be numbers?
No, only letters are allowed
No, only special characters are allowed
Yes, but only odd numbers
Yes, numbers are supported
What does the id attribute specify in HTML?
A specific style declaration
A unique identifier for an element
A reference to a JavaScript function
A unique class name
How is an id selector defined in CSS?
Preceded by a full stop
Preceded by a hash character
Preceded by an exclamation mark
Preceded by a dollar sign
What is the purpose of the id attribute in HTML?
Assign multiple classes to an element
Identify a unique element on the page
Define inline styles for an element
Link to an external stylesheet
How can CSS classes be reused across multiple elements?
By using the same class name for each element
By defining a new class for each element
By using inline styles for each element
By assigning IDs to each element
Which symbol is used to define an ID selector in CSS?
Full stop
Hash character
Exclamation mark
Dollar sign
What is the purpose of the class attribute in HTML?
Identify unique elements
Define inline styles
Assign multiple IDs
Reference class names for styling
How can CSS classes be reused across multiple elements?
By using the same class name for each element
By defining a new class for each element
By using inline styles for each element
By assigning IDs to each element
What does the id attribute specify in HTML?
A specific style declaration
A unique identifier for an element
A reference to a JavaScript function
A unique class name
What is the purpose of the class attribute in HTML?
Identify unique elements
Define inline styles
Assign multiple IDs
Reference class names for styling
How can CSS classes be reused across multiple elements?
By using the same class name for each element
By defining a new class for each element
By using inline styles for each element
By assigning IDs to each element
Can HTML classes be numbers?
No, only letters are allowed
No, only special characters are allowed
Yes, but only odd numbers
Yes, numbers are supported
What is the purpose of the id attribute in HTML?
Assign multiple classes to an element
Identify a unique element on the page
Define inline styles for an element
Link to an external stylesheet
How is an id selector defined in CSS?
Preceded by a full stop
Preceded by a hash character
Preceded by an exclamation mark
Preceded by a dollar sign
Can HTML classes be numbers?
No, only letters are allowed
No, only special characters are allowed
Yes, but only odd numbers
Yes, numbers are supported
What is the purpose of the class attribute in HTML?
Identify unique elements
Define inline styles
Assign multiple IDs
Reference class names for styling
How can CSS classes be reused across multiple elements?
By using the same class name for each element
By defining a new class for each element
By using inline styles for each element
By assigning IDs to each element
Which symbol is used to define an ID selector in CSS?
Full stop
Hash character
Exclamation mark
Dollar sign
