HTML and CSS Certification Practice Test

Question: 1 / 400

What is the default size of 1em in browsers?

12px

14px

16px

The default size of 1em in browsers is typically 16 pixels. This means that when you set a font size in your CSS using em units, it is relative to the computed font size of the parent element or the root element if it is not defined.

Most modern browsers use a basic default font size of 16px for the body element, unless it has been altered by user settings or CSS. Therefore, when no specific font-size is applied to the HTML or body elements, 1em effectively translates to 16px, establishing a baseline for relative sizing. This is crucial for creating scalable and accessible web designs, as using em units allows for text resizing that maintains proportions based on this default size. Understanding this default behavior is key for effective responsive web design strategies.

Get further explanation with Examzify DeepDiveBeta

18px

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy