Choose the correct option:
a. Full form of CSS is
i. Cascading Style Sheet ii. Close style sheet iii. None
b. ____ property specifies line breaking rules.
i.Word-break ii. Line-break iii. Text-break
c. Which property has Overline as one of the possible values?
i.Text-style ii. Text-Decoration iii. Text-Transform
d. Identify the correct code for specify the space between the lines of text.
i.Font-weight ii. Font-Height iii. Line-Height
e. Which of the following is not a value of font-size?
i.xx-large ii. smaller iii. 3x
2. Fill in the blanks. a. CSS stands for ______. b. ____sets the horizontal alignment of the text inside the block. c. ___displays the chosen text either in normal, italic or oblique. d. The default value of border-style is_____. e. ______ sets the top margin of an element. 3. State True or False:
a. Font size sets the size of the text. b. Word-break property specifies space between two words. c. The default value of border-style is ridge. d. CSS provides formatting options to style the text of a webpage. e. It is not possible to specify margins individually for each side. 4. Write the syntax for following CSS3:
a. Text-properties
b. Font –properties
c. Margin-properties
d. Border-properties
e. Font-style
5. Answer the following questions:
a. Write a basic structure of HTML page. b. Explain the Inline method of applying CSS. c. Discuss all the Margin properties. d. What do you mean by Word-Break? Write along with syntax. e. What is CSS3?
Answers
Answer:
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language like HTML.
Type of format: Style sheet language
a. Cascading style sheet
b. word-break
c. Text-decoration
d. Line-height
e. 3x
2. a. cascading style sheet
b. Text-align
c. The <i> tag
d. "none"
e. margin-top property
3. a. true
b. false
c. false
d. true
e. false
4. a. text-transform:<value>
b. font-size:length
c. margin:top_bottom left_right
d. border-width border-style border-color|initial|inherit;
e. font-style:normal|italic|oblique|initial|inherit;
5. a.
<html>
<head>
<title> title here </title>
</head>
<body>
content
</body>
</html>
b. Inline CSS allows to apply a unique style to one HTML element at a time. It uses the style attribute of an HTML element
c. Margin property is used to set all the properties in one dedclaration
- margin-left is used to set left margin of an element
- margin-right is used to set right margin of an element
- margin-top is used to set top margin of an element
- margin-bottom is used to bottom left margin of an element
d. The word-break property sets whether line breaks appear wherever the text would otherwise overflow its content box.
syntax
- word - break : normal ;
- word - break : break-all ;
- word - break : keep-all ;
- word - break : break-word ;
- word - break : inherit ;
- word - break : initial ;
- word - break : revert ;
- word - break : unset ;
e. CSS3 is a collaboration of CSS2 specifications and new specifications used with HTML to create and format content structure responsible for colours, font properties, text alignments, background images, graphics and tables.