CSS questions 1 When you set the width and height properties
CSS questions
1. When you set the width and height properties of an HTML element with CSS, you simply set the width and height of the physical area (the full size of the element) (True/false)
2.While using the float property, you can use the clear property which specifies on which sides of an element that the floating elements are not allowed to float, however it is not necessary for the float to stop since the float stops automatically. (True/False)
3. The :hover pseudo class selector can only be used on links and paragraphs (true/False)
4. A CSS selector\'s __________ is a calculated value that determines the priority of that selector in relation to other CSS rules on a page.
5. What does the CSS \":hover\" pseudo-class selector do?
6. what is the correct CSS selector for referencing a span with a class named \"letter\" inside of an h1 with an ID of \"special\"?
| 1 | .Style |
Solution
1). True.
We set width and height properties of an HTML element with CSS,We simply set the width and height of physical area.The width and height values are represents in px,cm, etc., or in percent(%) of containing block
2). True.
Float property is used to specifies whether or not an element should float.The clear property is used to control of behavior of floating elements and it specifies on which sides of a element floating elements are not allowed to float.
3). False
:hover pseudo class selector can be used on links only.This is not used on paragraphs.
4) Specificity.
5) Used to select an element when you mouse over it and can be used to add a special style.
6)
