(Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024, Exams of Computer Science

(Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024(Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024(Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024(Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024(Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024

Typology: Exams

2023/2024

Available from 07/15/2024

VanGruut
VanGruut 🇺🇸

3.3

(13)

925 documents

1 / 16

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
INTERMEDIATE HTML & CSS
Text Styles
KNOWLEDGE ASSESSMENT GUIDE
2024
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download (Intermediate HTML & CSS) Text Styles Knowledge Assessment Guide 2024 and more Exams Computer Science in PDF only on Docsity!

INTERMEDIATE HTML & CSS

Text Styles

KNOWLEDGE ASSESSMENT GUIDE

  1. Which CSS property is used to change the text color?
    • a) font-color
    • b) text-color
    • c) color
    • d) text-style
    • Answer: c) color
    • Rationale: The color property in CSS is used to set the color of the text.
  2. What is the default value of the font-weight property?
    • a) normal
    • b) bold
    • c) lighter
    • d) bolder
    • Answer: a) normal
    • Rationale: The default value of the font-weight property is normal, which is equivalent to a weight of 400.
  3. Which property is used to control the space between lines of text?
    • a) line-height
    • b) letter-spacing
    • c) word-spacing

Fill-in-the-Blank Questions

  1. The CSS property used to add shadow to text is called __________.
    • Answer: text-shadow
    • Rationale: The text-shadow property adds shadow to text.
  2. To increase the space between characters, you use the __________ property.
    • Answer: letter-spacing
    • Rationale: The letter-spacing property is used to increase or decrease the space between characters.
  3. The __________ property is used to specify the font of a text.
    • Answer: font-family
    • Rationale: The font-family property specifies the font of a text.
  4. To underline text, you use the __________ property.
    • Answer: text-decoration
    • Rationale: The text-decoration property is used to underline, overline, or strike-through text.
  5. The __________ property is used to control the indentation of the first line of a text block.
  • Answer: text-indent
  • Rationale: The text-indent property controls the indentation of the first line of a text block.

True/False Questions

  1. The font-variant property can be used to display text in small-caps.
  • Answer: True
  • Rationale: The font-variant property with the value small-caps displays text in small-caps.
  1. The text-align property can only be used to align text to the left or right.
  • Answer: False
  • Rationale: The text-align property can align text to the left, right, center, or justify it.
  1. The word-spacing property is used to control the space between words.
  • Answer: True
  • Rationale: The word-spacing property sets the space between words.
  1. The font-size property can accept values in pixels, ems, and percentages.
  • b) Sets the font size to 1.5 times the parent element's font size
  • c) Sets the font size to 1.5 times the browser's default font size
  • d) Sets the font size to 1.5 times the screen size
  • Answer: b) Sets the font size to 1.5 times the parent element's font size
  • Rationale: The em unit is relative to the font size of the parent element.
  1. Which CSS property is used to apply a gradient to text?
  • a) background
  • b) color
  • c) text-gradient
  • d) font-gradient
  • Answer: a) background
  • Rationale: Gradients are applied using the background property, often with -webkit-background-clip: text; to clip the background to the text.

Fill-in-the-Blank Questions

  1. The __________ property is used to control the horizontal alignment of text within an element.
  • Answer: text-align
  • Rationale: The text-align property sets the horizontal alignment of text within an element.
  1. To make text bold, you use the __________ property with the value bold.
  • Answer: font-weight
  • Rationale: The font-weight property with the value bold makes the text bold. Multiple Choice Questions: Which CSS property is used to control the spacing between individual letters in a text? A. line-height B. word-spacing C. letter-spacing D. text-indent

Correct Answer: C. letter-spacing

Rationale: The letter-spacing property adjusts the space between characters in a text. In HTML, which tag is used to create a line break without starting a new paragraph? A. B.

True or False: The HTML tag is used to define important text.

Correct Answer: False

Rationale: The tag is used for emphasizing text, not for defining importance.

  1. Multiple Choice: Which of the following CSS properties is used to change the spacing between characters within a text? a) letter-spacing b) word-spacing c) line-height d) text-indent

Answer: a) letter-spacing

Rationale: The letter-spacing property controls the space between characters in a text.

  1. Fill in the Blank: The CSS property used to apply decorations like underline, overline, and line-through to text is ____________.

Answer: text-decoration

Rationale: The text-decoration property is used to apply decorations to text.

  1. True/False: The CSS property 'text-transform: uppercase;' will transform text to all uppercase letters.

Answer: True

Rationale: The text-transform property in CSS can be used to change text to uppercase, lowercase, capitalize, etc.

  1. Multiple Choice: Which CSS property allows you to control the alignment of text within its containing element? a) text-align b) vertical-align c) align-text d) justify

Answer: a) text-align

Rationale: The text-align property in CSS controls the horizontal alignment of text within its container.

  1. Fill in the Blank: The CSS property used to set the style of the top, right, bottom, and left borders of an element is _______________.

Answer: border-style

Rationale: The border-style property in CSS is used to set the style of the borders.

  1. True/False: The 'text-overflow' property in CSS is used to control what happens when text overflows its containing element.

Answer: True

Rationale: The text-overflow property in CSS specifies what should happen when text overflows its containing element.

b) text-rotate c) text-shear d) font-style

Answer: d) font-style

Rationale: The font-style property in CSS is used to make text slanted or italic.

  1. Fill in the Blank: The CSS property used to specify the amount of space between each line of text within an element is ____________.

Answer: line-height

Rationale: The line-height property in CSS specifies the amount of space between lines of text.

  1. True/False: The 'text-shadow' property in CSS is used to apply a shadow effect to the text within an element.

Answer: True

Rationale: The text-shadow property in CSS adds a shadow to text.

  1. Multiple Choice: Which CSS property is used to change the weight or thickness of text? a) font-weight b) text-weight c) font-thickness d) text-boldness

Answer: a) font-weight

Rationale: The font-weight property in CSS is used to change the weight or thickness of text.

  1. Fill in the Blank: The CSS property that specifies the color of the text within an element is ____________.

Answer: color

Rationale: The color property in CSS is used to specify the color of text.

  1. True/False: The 'text-align-last' property in CSS aligns the last line of text in a block element.

Answer: True

Rationale: The text-align-last property in CSS aligns the last line of text in a block element.

  1. Multiple Choice: Which CSS property can be used to set the style of the cursor when hovering over text within an element? a) cursor-style b) pointer c) mouse-style d) text-cursor

Answer: b) pointer

Rationale: The cursor style property in CSS can be set to 'pointer' to change the cursor style when hovering over text.

Answer: line-height

Rationale: The line-height property in CSS can help adjust the spacing between lines while maintaining the baseline alignment.