Which CSS3 property creates rounded corners on elements?

Prepare for the uCertify CIW Advanced HTML5 and CSS3 Specialist Exam. Dive into essential topics with flashcards and multiple-choice questions. Enhance your understanding with hints and explanations for each question. Pass your exam confidently!

Multiple Choice

Which CSS3 property creates rounded corners on elements?

Explanation:
Border-radius is the CSS3 property that creates rounded corners on elements. By applying a radius value, you tell the browser how round each corner should be. For example, border-radius: 12px; rounds all corners by 12 pixels. You can target individual corners with border-top-left-radius, border-top-right-radius, etc., or use the shorthand with four values to control each corner. You can even create elliptical corners with a slash, like border-radius: 10px 20px / 5px 15px. The other options shown do not produce rounded corners: border defines the line around the element, not the curve; radius on its own isn’t a valid property; round-corner isn’t a CSS property. So the property that specifically creates rounded corners is border-radius.

Border-radius is the CSS3 property that creates rounded corners on elements. By applying a radius value, you tell the browser how round each corner should be. For example, border-radius: 12px; rounds all corners by 12 pixels. You can target individual corners with border-top-left-radius, border-top-right-radius, etc., or use the shorthand with four values to control each corner. You can even create elliptical corners with a slash, like border-radius: 10px 20px / 5px 15px. The other options shown do not produce rounded corners: border defines the line around the element, not the curve; radius on its own isn’t a valid property; round-corner isn’t a CSS property. So the property that specifically creates rounded corners is border-radius.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy