General HTML Questions Page 19

Ram Pothuraju



















231.What does CSS stand for?

    a)Computer Style Sheets
   
    b)Cascading Style Sheets
   
    c)Creative Style Sheets
   
    d)Colorful Style Sheets

Ans:b


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

    a)<stylesheet>mystyle.css</stylesheet>

    b)<link rel="stylesheet" type="text/css" href="mystyle.css">

    c)<style src="mystyle.css">

    d)none

Ans:b

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

    a)In the <head> section

    b)At the end of the document

    c)In the <body> section

    d)At the top of the document

Ans: a

234.Which HTML tag is used to define an internal style sheet?

    a)<script>

    b)<css>

    c)<style>

    d)all the above can be used
   
Ans: c

235.Which HTML attribute is used to define inline styles?

    a)font
 
    b)class

    c)styles

    d)style

Ans: d

236.Which is the correct CSS syntax?

    a){body;color:black}

    b){body:color=black(body}

    c)body {color: black}

    d)body:color=black

Ans:c

237.How do you insert a comment in a CSS file?

    a)// this is a comment
 
    b)' this is a comment

    c)/* this is a comment */

    d)// this is a comment //

Ans:c

238.Which property is used to change the background color?

    a)color:

    b)background-color:

    c)bgcolor:

    d)none

Ans:b

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

    a)all.h1 {background-color:#FFFFFF}

    b)h1 {background-color:#FFFFFF}

    c)h1.all {background-color:#FFFFFF}
   
    d)none

Ans:b

240.How do you change the text color of an element?

    a)color:

    b)text-color:

    c)text-color=

    d)fgcolor:

Ans:a

241.Which CSS property controls the text size?

    a)font-size

    b)text-style

    c)text-size

    d)font-style

Ans:a

242.  What is the correct CSS syntax for making all the <p> elements
bold?

    a)p {text-size:bold}

    b)<p style="text-size:bold">

    c)p {font-weight:bold}

    d)<p style="font-size:bold">

Ans:c

243.  How do you display hyperlinks without an underline?

    a)a {underline:none}

    b)a {decoration:no underline}

    c)a {text-decoration:none}

    d)a {text-decoration:no underline}

Ans:c

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

    a)text-transform:uppercase

    b)You can't do that with CSS

    c)text-transform:capitalize
   
    d)cant do that

Ans: c

245.  How do you change the font of an element?

    a)font=

    b)f:

    c)font-family:
   
    d)font:

Ans:c

246.  How do you make the text bold?

    a)font:b

    b)font-weight:bold

    c)style:bold

    d)none of the above

Ans:b

247.  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?

    a)border-width:10px 20px 5px 1px

    b)border-width:10px 5px 20px 1px

    c)border-width:5px 20px 10px 1px

    d)border-width:10px 1px 5px 20px

Ans:d

248.  How do you change the left margin of an element?

    a)margin-left:

    b)margin:

    c)text-indent:

    d)indent:

Ans:a

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

    a)No

    b)Yes
   
Ans: a

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

    a)type: square

    b)type: 2

    c)list-type: square

    d)list-style-type: square

Ans: d

251. The <title> tags are important because

a. They serve as bookmarks
b. Search engines return the Title of the pages
c. They give an idea of the contents of the page
d. None.

Ans: a,b and c

252. The <BGCOLOR> under the body tag takes its values in the range from

a. 0 to +225 excluding 0
b. -255 to +255
c. 0 to +128
d. 0 to +225

Ans: d

253. The <BGCOLOR> under the body tag takes its values in which format

a. Binary
b. Hexa-decimal
c. Decimal
d. None.

Ans: b


254. FF0000 is used to represent which colour

a. Red
b. Green
c. Blue
d. Yellow

Ans: a







255. FFFFFF is used to represent which colour

a. Black
b. Green
c. White
d. Yellow

Ans: c


256. FFFF00 is used to represent which colour

a. Red
b. Green
c. Blue
d. Yellow

Ans: d


257. In which of the following ways can the BGCOLOR be defined

a. <BODY BGCOLOR=”YELLOW”>
b. <BODY BGCOLOR=”FFFF00”>
c. <BODY BGCOLOR=”#FFFF00”>
d. <BODY BGCOLOR=”$FFFF00”>

Ans: a and c


258. Which of the following attributes under the body tag allows the image to remain fixed even when on scrolling?

a. <BODY BGPROPERTIES = FIXED>
b. <BODY BGPROPERTY = FIXED>
c. <BODY BGPROPERTY = STATIC>
d. <BODY BGPROPERTIES = STATIC>

Ans: a




259. Which of the following attributes under the body tag are used to control the colour of the Hyperlinks?

a. Link
b. HLink
c. VLink
d. anchor

Ans: a and c


260. What does LI in the tag <LI> mean?

a. Last Item
b. List Index
c. List Item
d. Last Index

Ans: c




PREVIOUS NEXT

Post a Comment

0Comments

Post a Comment (0)