-
The unit which is the most accurate unit for the width of an element is:
- em
- px
- %
- pt
-
The unit which is an absolute unit for element is:
- em
- px
- %
- rem
-
The unit represents a percentage of the viewport's width is
- vw
- vh
- vmin
- vmax
-
Attribute that can be used to set the height of line for an element is
- line-height
- height
- width
- margin
-
Attribute that can be used to set the space between the border and the content of an element is
- padding
- margin
- space-between
- border
-
Style "padding: 25px 50px 75px;" means
- top: 25px; right: 50px; bottom: 75px; left: 50px;
- top: 25px; right: 50px; bottom: 75px; left: 25px;
- top: 25px; right: 75px; bottom: 50px; left: 25px;
- top: 50px; right: 75px; bottom: 25px; left: 25px;
-
Style "margin: 25px 50px 75px 100px;" means
- top: 25px; right: 50px; bottom: 75px; left: 100px;
- top: 25px; right: 75px; bottom: 50px; left: 100px;
- top: 50px; right: 75px; bottom: 25px; left: 100px;
- top: 75px; right: 50px; bottom: 25px; left: 100px;
-
Style "border: 5px solid #00ff00;" means
- Element has a solid green border with a thickness of 5 pixels.
- Element has a solid red border with a thickness of 5 pixels.
- Element has a dashed green border with a thickness of 5 pixels.
- Element has a dashed red border with a thickness of 5 pixels.
-
If we want the browser calculates a suitable width for the element, we may use
- width: auto;
- width: initial;
- width: 100%;
- width: suitable;
-
Which property in CSS is used to set the minimum width of an element's content area?
- width
- max-width
- min-width
- margin
-
About box model, which following statement is correct
-
The width of an element is the width of the content area plus the padding plus the border.
-
The width of an element is the width of the content area plus the padding plus the border plus the
margin.
-
The width of an element is the width of the content area plus the padding plus the border plus the
margin plus the border.
-
The width of an element is the width of the content area plus the padding plus the border plus the
margin plus the border plus the margin.
-
About length unit, which following statement is wrong
-
The em unit is relative to the font size of the root element.
-
The most commonly used absolute length unit is px (pixels).
-
If you wish to create an inclusive app, it is best to avoid absolute length units as they are not
accessible.
-
The percentage unit is relative to the width of the parent element.
- The em is a relative length unit.
- The px is a relative length unit.
- Relative units are fixed-size units that do not change based on other elements, such as pixels (px)
- If you wish to create an inclusive app, it is best to avoid absolute length units as they are not
accessible.
- Unit em is relative to the font size of the parent element, while rem is relative to the font size of the
root element.
- Vw is a viewport height unit.
- Padding is the space between the content and the border.
- Margin is the space between the border and the content.
- Absolute length unit
- Relative length unit
- Box model
- Padding
- Margin
- Try to explain the difference between margin and padding attribute of style.
- Compare the absolute length unit and relative length unit.
- Explain how to calculate the size of one box model.
- Try to compare the em and rem
- Try to compare the em and %