HTML/CSS default border with: 1.5px oder 3px?
03:46 14 Feb 2023

What's the default border width in HTML/CSS? On various online sources, I read the default border width is medium = 3px on each side.

However, when testing it out myself (on Chrome), the default width is 1.5px on each side and not 3px (if I do not specify a width and just specify border-color and border-style).

Why is that? What is correct here?

I set border-style: solid; border-color: black;

and expected it to be 3px width on each side like online sources say, but it's 1.5px instead.

Here's a screenshot: enter image description here

The border width default is NOT medium by default in my browser for some reason. If I would set it to medium, it's 3px. But like that (so, by default), it's 1.5px.

C:

C:

html css