Tag: CSS

  • CSS Questions & Answers – Selectors

    CSS Questions & Answers – Selectors

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Selectors”. Q 1. What type of selector is used in this case? p {line-height: 150%;} A. element SelectorsB. class SelectorsC. id SelectorsD. none of the mentioned Show Answer Answer:-A. element Selectors Explanation These selectors are called element selectors and are simply used as follows: element-name {…

  • CSS Questions & Answers – Advanced Selectors

    CSS Questions & Answers – Advanced Selectors

    CSS Multiple Choice Questions & Answers focuses on “Advanced Selectors”. Q 1. Which of the following selector selects all elements of E that have the attribute attr that end with the given value?A. E[attr^=value]B. E[attr*=value]C. E[attr$=value]D. none of the mentioned Show Answer Answer:-C. E[attr$=value] Explanation Example: p[title$=”!”] {color: red;} Q 2. Which of the following…

  • CSS Questions & Answers – Applying Style to a Document

    CSS Questions & Answers – Applying Style to a Document

    CSS Interview Questions and Answers for freshers focuses on “Applying Style to a Document”. Q 1. Which of the following is the correct way to applying style to a document?A. Use an external style sheet, either by importing it or by linking to itB. Directly embed a document-wide style in the head element of the…

  • CSS Quizs Question & Answers – Targeting Styles with Media Queries

    Q1. Which of the following Media Query describe the ratio of the device width to the device height of the media?A. device-aspectB. device-aspect-query C. device-aspect-ratioD. none of the mentioned Show Answer Answer:-B. device-aspect-query Q 2. Which of the following Media Query determines if output is grid, like a simple terminal or phone, or bitmap, like…

  • CSS Quizs Question & Answers – Styling Lists and Navigation Menus

    Q 1. Which of the following property defines labels for a list of items?A. list-shapeB. list-styleC. list-typeD. list-style-type Show Answer Answer:-D. list-style-type Explanation Syntax: list-style-type: disc | circle | square | decimal Q 2. Which of the following property defines in a shorthand form the width, style, and color for all four sides of an…

  • CSS Quizs Question & Answers – CSS Box Model

    Q 1. Which of the following display property value is described by used internally by browsers to create list items. Of no practical value to web designers?A. inline-blockB. groupC. list-itemD. none Show Answer Answer:-C. list-item Q 2. Which of the following property controls the horizontal overflow of a block or inline block?A. overflow-xB. overflowC. overflow-yD.…

  • CSS Quizs Question & Answers – CSS Fonts

    Q 1. Which of the following value is supposed to be a slightly bolder weight that standard bold in font attribute? A. empasizeB. lightC. lighterD. dark Show Answer Answer:-D. dark Explanation Self-explainatory. Q 2. Which of the following property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text?A. font-styleB. font-familyC.…

  • CSS Quizs Question & Answers – CSS Functions

    Q 1. Which of the following function flips an element’s colors, for use by the filter property? A. flip() B. invert() C. contrast() D. image() Show Answer Answer:- B. invert() Explanation Q 2.Which of the following function applies a saturation effect to an element’s color, making it appear more or less vivid, for use by…

  • CSS Quizs Question & Answers – Introduction to CSS

    CSS Problems focuses on “Introduction to CSS”. Q1. CSS stands for __________A. Color Style SheetsB. Cascade Sheets StyleC. Cascade Style SheetD. Cascading Style Sheets Show Answer Answer:-D. Cascading Style Sheets Explanation CSS is a style sheet language which stands for Cascading Style Sheet. Q 2. In CSS, h1 can be called as _______A. SelectorB. AttributeC.…

  • Css Basics Quizs Question and Answer

    Q 1. What is CSS?A. CSS is a style sheet languageB. CSS is designed to separate the presentation and content, including layout, colors, and fontsC. CSS is the language used to style the HTML documentsD. All of the mentioned Show Answer Answer:-D. All of the mentioned Explanation CSS is a style sheet language that stands…

You cannot copy content of this page