Information Technology Tools and Network Basics Theory Question
CSS ( Cascading Style Sheet ) - Set 3
Which is not true about CSS ?
CSS is Cascading Style sheet
Seperate content from presentation
Establish visual layout of a web page
Markup the content of the web page
Answer : D
Explain: We can separate the content of the web page from the design (formatting) of the web page by using a . CSS file which will be linked to the HTML document. CSS not markup (The markup tells web browsers how to display a web page's words and images.) the content of web page.
CSS's position property default value is __________.
Relative
Absolute
Fixed
Static
Answer : D
Explain: By default the position property value is static.
Which CSS property should one use to encircle an image with text?
Float
Push
Align
wrap
Answer : A
Explain: Use float property to encircle an image with text.
In the given img tag, what "img.png" inside the double quote implies ?
element
attribute
value
operator
Answer : C
Explain: img.png defines the value.
What is not correct about the styles class ?
Apply only to specific element types defined in the style sheet
Define styles that can be applied to any element
Style class declarations are preceded by an underscore
Style class declarations are prceded by a period
Answer : C
Explain: period means (.) symbol
Which selector selects elments based on a certain state ?
Combinator selector
Pseudo Class selector
Pseudo Element selector
Attribute selector
Answer : C
Explain: A CSS pseudo-element is used to style specified parts of an element. Example - ::after, ::before, ::first-line etx.
Which is not a valid Background property of CSS ?
background-image
background-color
background-position
background-iterate
Answer : D
Explain: background-iterate is not a property in CSS.
Identify the incorrect statement about a Pseudo Class in CSS.
It is a style class defined in CSS
It gives the author access to content not specifically declared in the document
Pseudocode is seperated bt an underscore from the name of the element.
Pseudocode are seperated by a colon from the name of the element.
Answer : C
Explain: A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected elements. Pseudo element use double colon (:). Eg. :hover etx.
How many columns are supported in the responsive grid ?
10
11
12
13
Answer : C
Explain: A responsive grid-view often has 12 columns, and has a total width of 100%, and will shrink and expand as you resize the browser window.
What is true about the box model of CSS ?
It defines a virtual box drawn around elements
Content of each element is surrounded by padding only
Content of each element is surrounded by margin only
Content of each element is surrounded by border only
Answer : A
Explain: The CSS box model is a container that contains multiple properties including borders, margins, padding,width, height and the content itself. It is like a virtual box.
What is not correct about Embedded Style Sheets ?
Embedded style sheets enable to embed an entire css document in an XHTML document's head section.
Class selectors are used in Embedded Style sheets
The style elements's type attribute specifies the Multipurpose Internet Mail Extension ( MIME ) type that describe a file's content.
All statement are correct.
Answer : C
Explain: MIME is a supplementary protocol that allows non-ASCII data to be sent through SMTP.