Css Text_ Borders And Images — Part 1 MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Css Text_ Borders And Images — Part 1 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.
Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress|0/40 answered
✓0 correct
✗0 wrong
0% score
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?
Correct Answer: Option D — border-width
Detailed Academic Explanation:
The border-width property sets the width of an element’s four borders. This property can have from one to four values.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Identify the CSS property defining bottom-left corner shape of the border?
Correct Answer: Option C — border-bottom-left-radius
Detailed Academic Explanation:
CSS3 border-radius property allows you can give any element “rounded corners”.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Select the CSS property that sets the width of an element’s bottom border?
Correct Answer: Option D — border-bottom-width
Detailed Academic Explanation:
The border-bottom-width CSS property sets the width of the bottom border of a box.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following CSS property border-color property sets the color of an element’s four borders?
Correct Answer: Option C — border-color
Detailed Academic Explanation:
The border-color property sets the color of an element’s four borders. This property can have from one to four values.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the CSS property that can be used for collapsing the borders between table cells?
Correct Answer: Option C — border-collapse
Detailed Academic Explanation:
The border-collapse property sets whether the table borders are collapsed into a single border or detached as in standard HTML.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which CSS property can be used to set the image as border instead of the border style?
Correct Answer: Option D — border-image-source
Detailed Academic Explanation:
The border-image-source property specifies the path to the image to be used as a border (instead of the normal border around an element).
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In how many way border-image-width CSS property can be defined?
Correct Answer: Option D — 9
Detailed Academic Explanation:
The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not an appropriate value for border-collapse?
Correct Answer: Option A — all
Detailed Academic Explanation:
Except option a, all other values can be set to border collapse CSS property.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following specifies the distance between the borders of adjacent cells?
Correct Answer: Option C — border-spacing
Detailed Academic Explanation:
The border-spacing property sets the distance between the borders of adjacent cells (only for the “separated borders” model).
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines the border-width, border-style and border-color of an element’s top border in a single declaration?
Correct Answer: Option B — border-top
Detailed Academic Explanation:
The border-top shorthand property sets all the top border properties in one declaration.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property is used to draw a line around elements outside the borders?
Correct Answer: Option C — outline
Detailed Academic Explanation:
Outlines do not take up space, they are drawn above the content.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the option that correctly specifies the output of the following CSS. span { border: 1px solid red ; outline: green dotted thick ; }
Correct Answer: Option D — All span elements will have a outer green dotted border and an inner red border
Detailed Academic Explanation:
The border property creates the inner border, while the outline sets the outer border.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property specifies the color of an outline?
Correct Answer: Option B — outline-color
Detailed Academic Explanation:
As the property name specifies, it sets the color of the outline to the provided value.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Identify the outline property that specifies the amount of area extended beyond the border box.
Correct Answer: Option C — outset
Detailed Academic Explanation:
It specifies a 3D outset border. The effect depends on the border-color value.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following value specifies a dashed outline?
Correct Answer: Option B — dashed
Detailed Academic Explanation:
The property defines a dashed border.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property specifies the look and design of an outline?
Correct Answer: Option B — outline-style
Detailed Academic Explanation:
The outline-style CSS property is used to set the style of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following values specifies a 3D grooved outline?
Correct Answer: Option C — groove
Detailed Academic Explanation:
groove specifies a 3D grooved border. The effect depends on the border-color value.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Select the output of the following CSS. div { border-width: 5px ; border-style: dotted solid double dashed ; }
Correct Answer: Option A — Box having dotted top outline, solid right outline, double bottom outline and dashed left outline
Detailed Academic Explanation:
The shorthand run in clockwise direction.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following specifies the width of an outline?
Correct Answer: Option B — outline-width
Detailed Academic Explanation:
The outline-width CSS property is used to set the width of the outline of an element.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following value specifies a solid outline?
Correct Answer: Option C — solid
Detailed Academic Explanation:
As the name suggests, a solid outline is created using this value.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The __________ rule makes it possible to define different style rules for different media types in the same stylesheet.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
____________ types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document.
Correct Answer: Option C — media
Detailed Academic Explanation:
Media types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document. However, user agents may use different media types on different canvases. For example, a document may (simultaneously) be shown in ‘screen’ mode on one canvas and ‘print’ mode on another canvas.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
If an @media/@import rule contains a malformed media type (not an identifier) then the statement is valid. State true or false.
Correct Answer: Option B — False
Detailed Academic Explanation:
@media and @import rules with unknown media types (that are nonetheless valid identifiers) are treated as if the unknown media types are not present. If an @media/@import rule contains a malformed media type (not an identifier) then the statement is invalid.
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines in a shorthand form the width, style, and color for the bottom border of an element?
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines the y (vertical) coordinate for a positioned element, relative to the bottom of the enclosing object or browser window?
Correct Answer: Option B — bottom
Detailed Academic Explanation:
Syntax: bottom: length | percentage | auto | inherit
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property specifies the placement of an element in relation to floating objects?
Correct Answer: Option A — clear
Detailed Academic Explanation:
Syntax: clear: both | left | none | right
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property specifies the transparency of an element?
Correct Answer: Option B — opacity
Detailed Academic Explanation:
Syntax: opacity: alphavalue | inherit
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines the offset from an element’s border and its outline?
Correct Answer: Option B — outline-offset
Detailed Academic Explanation:
Syntax: outline-offset: length | inherit
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property allows a marquee to be used in the case of a text overflow?
Correct Answer: Option A — overflow-style
Detailed Academic Explanation:
none of the mentioned
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines how content should behave when it exceeds the width of its enclosing element?
Correct Answer: Option B — overflow-x
Detailed Academic Explanation:
Syntax: overflow-x: auto | hidden
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property is used to give a 3-D sense of depth to an element?
Correct Answer: Option D — perspective
Detailed Academic Explanation:
Syntax: perspective: none
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property is used to define whether an element should be resized and, if so, upon what axis?
Correct Answer: Option B — resize
Detailed Academic Explanation:
Syntax: resize: both | horizontal | none
💡Key Conceptual Anchor:Css Text_ Borders And Images
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines the alignment of Ruby text as defined by a <rt> tag, in relation to base text defined by a <ruby> tag?
Correct Answer: Option A — ruby-align
Detailed Academic Explanation:
Syntax: ruby-align: auto | center
💡Key Conceptual Anchor:Css Text_ Borders And Images
✓Link copied to clipboard
Continue Your Practice
Advance Html — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
💡Examiner's Advisory for Programming & Software Development
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.