Worst web default | CSS – Techniques

  • Home / Web Development / Worst web default…

Worst web default | CSS – Techniques

There are a lot of defaults when it comes to browsers and the web. Think of interesting features that are baked into HTML so you don’t have to do weird things, like An example of this is from Manuel:

<h2 role="heading" aria-level="1" class="sr-only">
  Title
</h2>

You can only write your own <h2> And the browser deals with accessible parts. That’s why we should start with semantic HTML before adding an ARI role to everything.

There are other major drawbacks of the modern web, such as responsive design: A lot of people have said that the web is responsive by default and in fact we are the web developers who break it.

Then there are defaults when it comes to DSS. I’m thinking of such stuff flex. This slap sounds great display: flex On the parental factor and all the kids just snap at each other because that’s what I want to do most of the time.

So: the defaults on the web are good!

But there is something wrong with that. You may be familiar with an incomplete list of design flaws in my favorite website, CSS, where the CSS Working Group lists a number of issues in CSS Spec.

size There should have been a shorthand for width And height 5 page feature with a different definition instead

These are the default annoyances, some minor, some major. And like some of them, it can be fixed box-sizing CSS Properties Yes, there was a time on the web when adding recruits, borders or widths to an element would be as complicated as any other hassle. We don’t have to worry so much anymore.

But I think the key to the worst default backspace on the web was in most browsers, it would force users to go back to the previous page. There have been countless times when I tried to delete text in the input field and all of a sudden I was dragged to the last page I was on and all my data was lost. These types of things make typing on farms feel so delicate, as if at some point you can catch your breath and walk around your whole house.

Side note: I think that’s why so many people prefer local on the web. How fragile the web is when it comes to these default settings. When you upload an app, it looks like you’re on solid ground but a web app. This is a bad house that is ready to collapse at any moment.

Anyway, at least I didn’t go down without explaining myself first when Chrome introduced the Backspace Key Shortcut in 2016. Firefox removed it earlier this year, and so far today, five years later, I’m still scared to click that dark backspace button. I always hesitate if I click on the wrong key and then, very slowly, I will make sure I focus on the correct input, until I put all my data into the form.

I think this is a good lesson when developing software: First of all, the default settings are the most important thing in the world and it is very difficult to get it right. Second, even if you do the right thing and fix all these bad habits, breaking habits is extremely difficult.

Write a Comment

Your email address will not be published. Required fields are marked *

x