Sunday, September 29, 2013

CSS Objective type Interview questions




CSS stands for?

  • Central Style Sheets
  • Common Style Sheets
  • Cascading Style Sheets
  • Control Style Sheets
Ans: c. Cascading Style Sheets

Which command we use to set an image on background?

  • image-background:url(‘R4R_Logo.jpg’)
  • background-image:url(‘R4R_Logo.jpg’)
Ans: b. background-image:url(‘R4R_Logo.jpg’)

What CSS define in HTML?

  • How to save HTML elements
  • How to send HTML elements
  • How to made HTML elements
  • How to display HTML elements
Ans: d. How to display HTML elements

What is the correct HTML for referring to an external style sheet?

  • background-color:
  • bgcolor:
  • color:
Ans: a. background-color:

Where in an HTML document is the correct place to refer to an external style sheet?

  • At the end of the document
  • At the top of the document
  • In the section
  • In the section
Ans: d. In the section

Which HTML attribute is used to define inline styles?

  • class
  • styles
  • style
  • Font
Ans: c. style

Which is the correct CSS syntax?

  • {body:color=black(body}
  • body {color: black}
  • body:color=black
  • {body;color:black}
Ans: b. body {color: black}

Which property is used to change the background color?

  • background-color:
  • bgcolor:
  • color:
Ans: a. background-color:

How do you add a background color for all <h1> elements?

  • h1.all {background-color:#FFFFFF}
  • h1 {background-color:#FFFFFF}
  • all.h1 {background-color:#FFFFFF}
Ans: b. h1 {background-color:#FFFFFF}

Which CSS property controls the text size?

  • font-size
  • font-style
  • text-style
  • text-size
Ans: a. font-size

What is the correct CSS syntax for making all the

elements bold?
  • p {text-size:bold}
  • p {font-weight:bold}
Ans: d. p {font-weight:bold}

How do you display hyperlinks without an underline?

  • a {text-decoration:none}
  • a {text-decoration:no underline}
  • a {decoration:no underline}
  • a {underline:none}
Ans: a. a {text-decoration:none}

How do you make each word in a text start with a capital letter?

  • text-transform:capitalize
  • You can’t do that with CSS
  • text-transform:uppercase
Ans: a. text-transform:capitalize

How do you change the font of an element?

  • f:
  • font-family:
  • font=
Ans: b. font-family:

How do you make the text bold?

  • font-weight:bold
  • style:bold
  • font:b
Ans: a. font-weight:bold

How do you display a border like this:

The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
  • border-width:10px 5px 20px 1px
  • border-width:10px 1px 5px 20px
  • border-width:5px 20px 10px 1px
  • border-width:10px 20px 5px 1px
Ans: b. border-width:10px 1px 5px 20px

How do you change the left margin of an element?

  • text-indent:
  • indent:
  • margin:
  • margin-left:
Ans: d. margin-left:

To define the space between the element’s border and content, you use the padding property, but are you allowed to use negative values?

  • Yes
  • NO
Ans: b. No

How do you make a list that lists its items with squares?

  • list-type: square
  • list-style-type: square
  • type: 2
  • type: square
Ans: b. list-style-type: square

3 comments:

  1. Thanks for the interview questions, here is the latest one - AngularJS is a toolset for building the framework most suited to your application development. It is fully extensible and works well with other libraries. Every feature can be modified or replaced to suit your unique development workflow and feature needs.
    Read on to find out how: AngularJS Training Institute in Chennai

    ReplyDelete
  2. Thanks to Admin for Sharing such useful Information. I really like your Blog. Addition to your Story here I am Contributing 1 more Similar Story UI Developer Interview Questions for Experienced Professionals.

    ReplyDelete
  3. Great beat ! I would like to apprentice while you amend your website, how can i subscribe for a blog site? It is truly a great and useful piece of information.
    css interview questions

    ReplyDelete