by asoneth · 2y ago · 0 comments
I was always a little disappointed with how most web browsers choose to render HTML pages that had no explicit styling information. I'm not necessarily saying web browsers should have defaults as opinionated as simple.css, but the default page margins, padding, text styles, headings, etc that they picked aren't particularly attractive.
Opinionated web developers will override the defaults no matter what they are, but if the convention was to have more attractive defaults I wonder if that would have resulted in a larger share of personal websites and blogs created using plain HTML.
Though with "reader mode" becoming more popular I wonder if there's a place for a browser with more opinionated defaults.
[1]: https://meyerweb.com/eric/tools/css/reset/
As you point out, people who care will use some of the defaults and override others as they go along, but a small bit of effort goes a long way:
html, body {
margin: 0;
padding: 0;
}
body {
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
}
p, h1, h2, h3 {
overflow-wrap: break-word;
}