Dear readers, these CSS Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of CSS Language . As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answer:
What are advantages of using CSS? What are the components of a CSS Style? What is universal selector? What is Descendant Selector? Can you make a class selector particular to an element type? Can you make a id selector particular to an element type? What is a child selector? What is an attribute selector? How to select all paragraph elements with a lang attribute? How to select all paragraph elements whose lang attribute has a value of exactly "fr"? How to select all paragraph elements whose lang attribute contains the word "fr"? How to select all paragraph elements whose lang attribute contains values that are exactly "en", or begin with "en-"? What are the various ways of using CSS in an HTML page? How CSS style overriding works? What is the purpose of % measurement unit? What is the purpose of cm measurement unit? What is the purpose of em measurement unit? What is the purpose of ex measurement unit? What is the purpose of in measurement unit? What is the purpose of mm measurement unit? What is the purpose of pc measurement unit? What is the purpose of pt measurement unit? What is the purpose of px measurement unit? What is the purpose of vh measurement unit? What is the purpose of vw measurement unit? What is the purpose of vmin measurement unit? In how many formats can you specify a CSS color? What are browser safe colors? Which property is used to set the background color of an element? Which property is used to set the background image of an element? Which property is used to control the repetition of an image in the background? Which property is used to control the position of an image in the background? Which property is used to control the scrolling of an image in the background? Which property is used as a shorthand to specify a number of other background properties? Which property is used to change the face of a font? Which property is used to make a font italic or oblique? Which property is used to create a small-caps effect? Which property is used to increase or decrease how bold or light a font appears? Which property is used to increase or decrease the size of a font? Which property is used as shorthand to specify a number of other font properties? Which property is used to set the color of a text? Which property is used to set the text direction? Which property is used to add or subtract space between the letters that make up a word? Which property is used to add or subtract space between the words of a sentence? Which property is used to indent the text of a paragraph? Which property is used to align the text of a document? Which property is used to underline, overline, and strikethrough text? Which property is used to capitalize text or convert text to uppercase or lowercase letters? Which property is used to control the flow and formatting of text? Which property is used to set the text shadow around a text? Which property is used to set the width of an image border? Which property is used to set the height of an image? Which property is used to set the width of an image? Which property is used to set the opacity of an image? Which property of a hyperlink signifies unvisited hyperlinks? Which property of a hyperlink signifies visited hyperlinks? Which property of a hyperlink signifies an element that currently has the user's mouse pointer hovering over it? Which property of a hyperlink signifies an element on which the user is currently clicking? Which property of a table specifies whether the browser should control the appearance of the adjacent borders? Which property of a table specifies the width that should appear between table cells? Which property of a table controls the placement of the table caption? Which property of a table specifies whether the border should be shown if a cell is empty? Which property of a table allows browsers to speed up layout of a table by using the first width properties? Which property specifies the color of a border? Which property specifies whether a border should be solid, dashed line, double line, or one of the other possible values? Which property specifies the width of a border? Which property specifies a shorthand property for setting the margin properties in one declaration? Which property specifies the bottom margin of an element? Which property specifies the top margin of an element? Which property specifies the left margin of an element? Which property specifies the right margin of an element? Which property allows you to control the shape or appearance of the marker of a list? Which property specifies whether a long point that wraps to a second line should align with the first line or start underneath the start of the marker of a list? Which property specifies an image rather than a bullet point or number for the marker of a list? Which property serves as shorthand for the styling properties of a list? Which property specifies the distance between a marker and the text in the list? Which property specifies the bottom padding of an element? Which property specifies the top padding of an element? Which property specifies the left padding of an element? Which property specifies the right padding of an element? Which property serves as shorthand for the all the padding properties of an element? Which property allows you to specify the type of cursor that should be displayed to the user? Which value of cursor property changes the cursor based on context area it is over? Which value of cursor property changes the cursor to a crosshair or plus sign? Which value of cursor property changes the cursor to an arrow? Which value of cursor property changes the cursor to a pointer? Which value of cursor property changes the cursor to the 'I' bar? Which value of cursor property changes the cursor to the an hour glass? Which value of cursor property changes the cursor to a question mark? Can you set an image to be shown as cursor? Which property is used to set the width of the outline? Which property is used to set the line style for the outline? Which property is used to set the color of the outline? Which property is used to set all the outlining properties in a single statement? Which property is used to set the height of a box? Which property is used to set the width of a box?
What is Next ?
Further you can go through your past assignments you have done with the subject and make sure you are able to speak confidently on them. If you are fresher then interviewer does not expect you will answer very complex questions, rather you have to make your basics concepts very strong.
Second it really doesn't matter much if you could not answer few questions but it matters that whatever you answered, you must have answered with confidence. So just feel confident during your interview. We at tutorialspoint wish you best luck to have a good interviewer and all the very best for your future endeavor. Cheers :-)