CSS interview Question/ Answers Set – 2

CSS interview Question/ Answers Set – 2

CSS3 has brought about a lot of changes, making the overall framework more user-friendly and powerful. Some o features that were added and are very popularly used now are:
  • Rounded corners
  • Animation
  • Custom layout
  • Media queries
Webkit is an important software component in CSS that allows for the easy rendering of HTML and CSS elements in a variety of browsers, such as Chrome, Firefox, and Safari. There are many engines for browsers such as:
  • Gecko for Mozilla
  • Presto for Opera
  • Edge for Internet Explorer
The CSS box model is used to represent an entity that encloses all of the HTML content into a box or a button element. There are four components:
  • Border: Denotes the padding and content around the border
  • Content: Refers to the actual content to be displayed
  • Margin: Refers to the top layer of the box element
  • Padding: Defines the empty space around the element
Float is a popular property in CSS to control the layout and position of an element on a web page. Any element can be placed on the web page as per requirement. Consider the following example:
div {float: right;}
Here, the contents of div will be placed on the right side of the screen

Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *

*

*