Which elements are focusable? HTML has interactive elements with built in focusability. Elements like text fields, buttons and select lists. You can navigate them by keyboard automatically.
Sometimes, we use HTML elements like <p>, <h2> or <div> to create custom interactive components. If you don’t make these elements focusable, this creates problems for keyboard users. The tab index attribute solves this problem by making a non-focusable element focusable.
Use the <button> tag to create buttons. You can use <div> or <span> tags to recreate the functionality of a button. When you choose to do this, you have to write extra code to mimic the behavior of a button. It is easier to use the button tag when you need a button.
What are web components?
Web components are a set of web technologies that allow you to create custom reusable HTML elements. These elements are not dependent on using a specific framework. You can use them without having to load a framework like React or Angular.
To build a web component, you can use these three technologies:
Want to create your own components?
Check out these tools and resources for building your own web components.
What is a coding style? It is the way your code looks. The way you learned how to code, the tools and languages that influenced your personal style. Your style is influence by the many decisions that you make while writing code. If you work on a team, the team has its own standards that also influence how you write code.
Code is the way you communicate with other developers. To make sure that your code is understandable to other, you need to focus on writing code that is consistent and readable.
How do you make your code understandable?
Pick a way of writing and organizing your code. You’ll want to decide:
Tabs or spaces for indentation
A naming convention for variables and functions
How much white space you are going to use
If you have trouble deciding, look at coding style guides for suggestions.
Code is written for both computers and people to read. You want your code to communicate what it does. Remember, you won’t always be the person maintaining your code. You want your code to be readable and maintainable by your future self or another developer.
What can you do to make your code readable?
Pick a coding style guide for the language that you are using and follow it. By following it, you can focus on writing the code not formatting it.
What are browser dev tools?
Debugging can be a slow and challenging. If you use Chrome to develop, you may find that you can’t use the same tool in another browser. This can be frustrating when solving problems.
Can I DevTools?
Can I DevTools is a website by Pankaj Parashar that is similar to Can I use? It shows and compares dev tools. You can quickly see if a browser supports the dev tool you need.
More DevTools Tips
DevTools has many useful features and shortcuts. It is hard to learn them all. Start with DevTools Debugging Tips and Shortcuts to learn some of the useful features for debugging in Chrome, Firefox, Edge and Safari.
If you want to know how to do something in DevTools, check out DevToolsTips. You’ll find tips on how to empty the cache and do a hard reset, copy and elements style and debug unwanted scrollbars.
What is UX Debt? Like technical debt, UX debt piles up over time. Each design decision that you make can affect the user experience. Do you create a great user experience or ship your product? If you’re on a tight deadline, shipping wins.
What are the types of UX Debt?
There are two types of UX Debt — Intentional and Unintentional. Intentional debt occurs when you don’t have time or the resources to build your product right. Unintentional debt occurs over time. Design decisions that worked yesterday may not work today. Your users have changed and your UI hasn’t.
How do you manage it?
User Experience debt becomes a problem when you ignore it. Like technical debt, you need to manage how you handle it.
1. Determine where UX debt exists.
You need to figure out what issues you need to fix. Common places to look for problems are:
User Interface. Your buttons, links and visual styles may be hard to understand.
Content or copy. Check your written text, labels and headlines. They may be using confusing or hard to understand language.
Interaction Design. Is it easy to move from one page to the next?
Consistency. Does your UI look the same? Your elements should look and behave the same way.
How do you identify it?
Ask your users.
Use and analyze your analytics.
Perform regular user testing.
2. Focus on fixing debt
Not all issues are the same. Some need to be fixed right way. Others can wait until you have time. Rank the issues so you know which ones need to be handled first.
3. Build time into your schedule
Plan to tackle the UX issues that you have identified. If you don’t add them to your development schedule, you’ll forget to address them.