Exam in
38 questions
Which of the following property of an anchor element signifies an element that currently has the user's mouse pointer hovering over it?
In css, "color:red" can be called as
In CSS, "color:red" can be called as
In CSS, "font-size" can be called as
_______ selectors are used to specify a group of elements.
"font-style comes first than font-weight in font attribute", State true or false.
Inline style has the lowest priority.
External CSS style has the highest priority
CSS can be defined externally in a separate file by adding the <style> element inside the <head>.
Which CSS property is equivalent for the attribute <center>?
Which of the following is the correct way to applying style to a document?
With, which tag you write the style rules directly within the document found within the head of the document.
Cascading style sheets are used to
A CSS rule-set consists of
50.<link rel="stylesheet" type="text/css" href="style.css"> is a declaration of
Which is the correct HTML statement to define the red color of the paragraph text?
Can we use class name with multiple HTML elements?
The ______ property is used in the positioning of the background image.
Which of the following selectors selects the specified elements of type E with a particular class value?
Which of the following selectors selects all elements of E that have the attribute (attr) that ends with a given (value)?
Which of the following selectors selects an element that has no children?
Which of the following is the correct way to add background color in HTML?
By using this CSS selector div > p { color: red; }, how many p elements will be styled?
By using this CSS selector div ~ p { color: blue; }, the number of p elements that will be styled is
In a[target=_blank], the [target=_blank] is called
By using p:first-child {color:red;}, the number of elements that will be styled
To change the background color of all <a> elements to be yellow, you can use
To change the color of <a> elements to yellow when the mouse moves over it, you can use
href is a/an ________ while "_blank" is a ________
The CSS property background-attachment is used to specify whether the image is attached to the document or not.
By using this CSS selector p.center {color: blue;}, the number of elements that will be styled is
By using this CSS selector p:first-child { color: blue;}, how many elements will be styled?
By using this CSS selector div + p { color: red;}, how many p elements will be styled?
By using this CSS selector p:empty {color:red;}, how many elements will be styled?
Identify the error in this CSS code:
.class { color: blue; font-weight; bold; }
Why might the CSS rule .container p {color: green;} not apply to a paragraph inside a div with class "container"?
If an element has margin: 10px; and padding: 20px;, what is the space between the element and its neighboring element?
Question 3 - [8 Marks] 1. Display the text "My favorite subject is English Arabic" where "English" is struck-through and "Arabic" is underlined. [2marks] 2. Add a button labeled "Style" that, when clicked, changes the paragraph's: [3 marks for structure] Font color to green [1 mark], Font size to 14px [1 mark], Font family to Arial [1 mark]