Css Interview Questions and Answers
Css Interview Questions and Answers
In HTML physical tags are used to style the content only. And example of
HTML physical tags are <i>, <b>, etc.
Note: When using the opacity property to add transparency to the background of an
element, all of its child elements become transparent as well.
Padding: Padding is the inner space of an element. The padding is applied inside of
the element’s border.
For example:
*{
property: value;
whereas,
display: none- In display:none; property the content will hidden and is hidden and
takes no space.
Multiple CSS declarations are separated with semicolons, and declaration blocks are
surrounded by curly braces.
• font-family
• font-size
• font-stretch
• font-style
• font-weight
• font-variant
• line-height
17. What are pseudo-elements?
CSS pseudo-elements are used to style specified parts of an HTML element.