if you want to remove an article from website contact us from top.

    which of the following sets the color of any text decoration, such as underlines, overlines, and strike throughs?

    Mohammed

    Guys, does anyone know the answer?

    get which of the following sets the color of any text decoration, such as underlines, overlines, and strike throughs? from screen.

    text

    The text-decoration-color CSS property sets the color of decorations added to text by text-decoration-line.

    text-decoration-color

    The text-decoration-color CSS property sets the color of decorations added to text by text-decoration-line.

    The color applies to decorations, such as underlines, overlines, strikethroughs, and wavy lines like those used to mark misspellings, in the scope of the property's value.

    Try it

    CSS does not provide a direct mechanism for specifying a unique color for each line type. This effect can nevertheless be achieved by nesting elements, applying a different line type to each element (with the text-decoration-line property), and specifying the line color (with text-decoration-color) on a per-element basis.

    Syntax

    /* values */

    text-decoration-color: currentcolor;

    text-decoration-color: red;

    text-decoration-color: #00ff00;

    text-decoration-color: rgba(255, 128, 128, 0.5);

    text-decoration-color: transparent;

    /* Global values */

    text-decoration-color: inherit;

    text-decoration-color: initial;

    text-decoration-color: revert;

    text-decoration-color: revert-layer;

    text-decoration-color: unset;

    Values

    The color of the line decoration.

    Accessibility concerns

    It is important to ensure that the contrast ratio between the color of the text, the background the text is placed over, and the text decoration line is high enough that people experiencing low vision conditions will be able to read the content of the page. Color contrast ratio is determined by comparing the luminosity of the text and background color values.

    Color alone should not be used to convey meaning. For example, change of text and text-decoration-color alone is not enough to indicate a link has focus.

    WebAIM: Color Contrast Checker

    MDN Understanding WCAG, Guideline 1.4 explanations

    Understanding Success Criterion 1.4.3 | W3C Understanding WCAG 2.0

    Formal definition

    Initial value currentcolor

    Applies to all elements. It also applies to ::first-letter and ::first-line.

    Inherited no

    Computed value computed color

    Animation type a color

    Formal syntax

    text-decoration-color =

    Examples

    Basic example

    This paragraph has some erroneous text inside it that I want to call

    attention to. p {

    text-decoration-line: underline;

    text-decoration-color: cyan;

    } s {

    text-decoration-line: line-through;

    text-decoration-color: red;

    text-decoration-style: wavy;

    }

    Specifications

    Specification

    CSS Text Decoration Module Level 3

    # text-decoration-color-property

    Browser compatibility

    Report problems with this compatibility data on GitHub

    desktop mobile Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on iOS Samsung Internet WebView Android

    text-decoration-color

    Legend

    Tip: you can click/tap on a cell for more information.

    Full support Full support

    Requires a vendor prefix or different name for use.

    Has more compatibility info.

    See also

    When setting multiple line-decoration properties at once, it may be more convenient to use the text-decoration shorthand property instead.

    The data type

    Other color-related properties: background-color, border-color, outline-color, text-decoration-color, text-emphasis-color, text-shadow, caret-color, and column-rule-color

    Applying color to HTML elements using CSS

    Found a problem with this page?

    Edit on GitHub Source on GitHub

    Report a problem with this content on GitHub

    Want to fix the problem yourself? See our Contribution guide.

    Last modified: Oct 21, 2022, by MDN contributors

    स्रोत : developer.mozilla.org

    Text

    This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Text”. 1. Which of the following CSS property is used to set the text formatting? a) font b) font-style c) text-decoration d) all of the mentioned 2. Which of the following sets the color of any text decoration, such as underlines, overlines, ... Read more

    CSS Questions & Answers – CSS Text

    « Prev Next »

    This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Text”.

    1. Which of the following CSS property is used to set the text formatting?

    a) font b) font-style c) text-decoration

    d) all of the mentioned

    View Answer

    2. Which of the following sets the color of any text decoration, such as underlines, overlines, and strike throughs?

    a) text-font b) text-format c) text-color

    d) text-decoration-color

    View Answer

    3. Which of the following sets what kind of line decorations are added to an element, such as underlines, overlines, etc?

    a) text-style b) text-decoration c) text-line

    d) text-decoration-line

    View Answer

    Note: Join free Sanfoundry classes at Telegram or Youtube

    advertisement

    4. Which of the following text-decoration value specifies each line of text has a line above it?

    a) line b) underline c) overline d) blink View Answer

    5. Which of the following

    a) text-overline

    b) text-overline-decoration

    c) text-overline-width

    d) text-decoration-overline-width

    View Answer

    Check this: HTML MCQ | Computer Science Books

    6. Which of the following CSS property determines how overflowed content that is not displayed is signaled to the users?

    a) text-flow b) text-underflow c) text-overflow

    d) none of the mentioned

    View Answer

    7. Which of the following sets the mode for the overline text decoration, determining whether the text decoration affects the space characters or not?

    a) text-decoration

    b) text-mode-overflow

    c) text-mode

    d) text-overline-mode

    View Answer advertisement

    8. Which of the following specifies what parts of an element’s content are skipped over when applying any text decoration?

    a) @font-text b) font-style c) text-skip

    d) text-decoration-skip

    View Answer

    9. Which of the following is not a appropriate value for text-overline-width?

    c)

    a) thin b) medium

    d) none of the mentioned

    View Answer advertisement

    10. Which of the following property applies one or more drop shadows to the text?

    a) text-shadow b) text-effect c) text-format

    d) text-decoration-shadow

    View Answer

    Sanfoundry Global Education & Learning Series – CSS.

    To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

    « Prev - CSS Questions & Answers – CSS border

    » Next - CSS Questions & Answers – CSS Voice

    Related Posts:

    Practice HTML MCQ Practice MCA MCQs

    Practice Computer Science MCQs

    Apply for Computer Science Internship

    Buy Computer Science Books

    advertisement

    Recommended Articles:

    CSS Questions & Answers – Styling Texts

    CSS Questions & Answers – CSS Fonts

    Java Program to Display Text in the Frame by using DrawString and Inheriting JPanel Class

    CSS Questions & Answers – Selectors

    Java Program to Display Text in Different Fonts

    CSS Questions & Answers – CSS3 Animation with Responsive Web Design

    CSS Questions & Answers – CSS3 Animations with SVG and Filters

    CSS Questions & Answers – Gradients without Images

    Computer Graphics Questions & Answers – Curve, Text and Exterior Clipping – 2

    CSS Questions & Answers – CSS Versions

    advertisement

    Additional Resources:

    CSS MCQ Questions

    Event Handling in Java with Examples

    C Programs on File Handling

    Agricultural Engineering MCQ Questions

    Civil Engineering MCQ Questions

    Popular Pages:

    Electrical Engineering MCQ Questions

    Chemical Engineering MCQ Questions

    Probability MCQ Questions

    C++ Algorithm Library

    Biotechnology MCQ Questions

    स्रोत : www.sanfoundry.com

    Which of the following sets the color of any text decoration, such as underlines, overlines, and strike throughs?

    Which of the following sets the color of any text decoration, such as underlines, overlines, and strike ... (c) text-color (d) text-decoration-color

    Which of the following sets the color of any text decoration, such as underlines, overlines, and strike throughs?

    ← Prev Question Next Question →

    1 Answer

    ← Prev Question Next Question →

    Find MCQs & Mock Test

    Free JEE Main Mock Test

    Free NEET Mock Test

    Class 12 Chapterwise MCQ Test

    Class 11 Chapterwise Practice Test

    Class 10 Chapterwise MCQ Test

    Class 9 Chapterwise MCQ Test

    Class 8 Chapterwise MCQ Test

    Class 7 Chapterwise MCQ Test

    Related questions

    स्रोत : www.sarthaks.com

    Do you want to see answer or more ?
    Mohammed 7 day ago
    4

    Guys, does anyone know the answer?

    Click For Answer