

Series, volume 3
The user interface of the web
Let's re-examine
My name is Mirumi, and I run a blog called "Mirume" (https://mirumi.me). My main profession is software engineering, and I spend my days either programming or writing blog posts. For some time, I will be contributing articles on a wide range of topics, primarily focusing on IT technology. Please treat me kindly.
A user interface is a point of contact, or a means by which humans and systems exchange information. Nowadays, it mostly refers to the interaction between users and computers, particularly interfaces that handle graphical input and output (GUI).
In this article, we will revisit the GUI that exists all around us, particularly the basic components commonly used on web pages, and introduce the ingenuity and design principles behind them. Many people probably use the term "UI" with a feeling like, "This website's UI is difficult to use," but we hope to convey that the good or bad aspects of a UI are not simply about the arrangement or readability of its components.
Button
Buttons are often used in conjunction with other form-based UI elements, and a common use case is to "confirm the result of some action performed by the user." In some cases, buttons can trigger irreversible actions (such as deletion), so it's important not to make users feel anxious or uncertain. Let's look at an example of a purchase button on an e-commerce site to illustrate this point.
When a button is clicked, network communication begins to transmit the purchase request to the server. In cases where an operation requires some processing time and cannot be completed solely on the web page, it is essential to clearly indicate to the user that the process has started successfully.
You often see loading indicators like this. Without them, if the screen doesn't change immediately, users might feel uneasy and wonder if their click was registered, potentially leading them to click again. This could result in duplicate orders, which would be undesirable.
And there's one more important point to consider: it seems necessary to ensure that "important confirmation processes" are not sent redundantly. Therefore, in practice, when the purchase button is pressed, the following will likely happen.
This disables the button, acting as a safety mechanism. Once clicked, it will not function again, regardless of how many times it is clicked. In practice, surrounding text fields and other elements are often also disabled (appearing dimmed and becoming uneditable) along with the button.
I think this is a good example of how even basic UI components can incorporate subtle features designed to prevent risks.
Text form
While buttons are also a representative type of component, text forms offer a wider range of functionalities, purposes, and types compared to buttons. Consequently, designing effective text forms can often be quite complex. There are various types available, but for this explanation, we will consider all similar items as the same. Representative examples include the following:
4. This shows how data is being entered into a standard text form. There are many different types, including fields that only allow numerical input, those where values can be adjusted with a click, and text areas that allow line breaks and size changes.
When registering for a new service, you typically need to enter personal information such as your name, address, and email address. Often, many forms are displayed on the same page, and you must fill them out in the correct format expected for each one. From this perspective, what do you think of an input form like the following?
Should there be a space between the surname and given name? If so, should it be a half-width or full-width space? What if someone has a middle name? Is input in alphabetical characters allowed...? This doesn't explain anything.
One approach is to display explanatory text nearby, but even with just improvements to the user interface, significant enhancements can be achieved.
With this approach, it seems like I can confidently input data in most cases. The key is "information decomposition"; complex data should be broken down into as many smaller parts as possible (within a reasonable range) to make it easier to understand. The system should handle how these data are processed and manage things effectively, without requiring the user to make judgments.
Another important point is the use of placeholders as input descriptions. Placeholders are text that appears faintly in the initial state of a form, and by including actual examples or instructions, they can effectively convey an understanding of what kind of information should be entered.
Seeing the actual implementation really makes you realize it, but input forms without placeholders are surprisingly unsettling. You feel like you're groping around in the dark, unsure of what to write. This is a good example of a standard UI feature that carefully guides users.
Of course, if there is a system that can definitely expect a certain format, it should not rely solely on placeholders. Instead, the system should early detect and notify the user about the content they have entered. It's very frustrating to finish entering everything and then be told all at once, "◯◯ and ◯◯ and ◯◯ are invalid."
In terms of fine-tuning, one important point is to clearly define the purpose of each form field so that the IME (Input Method Editor) automatically switches to the appropriate input mode. For example, it's not necessary to allow full-width characters in email address fields, and only numeric values should be accepted in fields for entering amounts. These settings enable convenient features such as automatic switching between Japanese input on/off on PCs and automatic switching to the corresponding keyboard on smartphones.
Hierarchical menu structure
First, I would like everyone reading this to actually experience it. You can use any screen you like; just right-click or open the menu at the top of the window. Find an element where hovering the mouse cursor reveals a submenu, display that submenu, and then try moving it "diagonally."
Probably, everyone has been carefully moving the cursor for this experiment, so the submenu closed before the cursor reached the submenu area. It feels a bit strange. Please try again, but this time do it quickly. If you move the cursor as usual, without worrying about anything, I think you should be able to reach the submenu successfully.
This means that the system is "predicting where the user intends to move the cursor next, and preventing a behavior that is too straightforward, which would significantly reduce usability." Otherwise, if you don't move the cursor directly sideways, you wouldn't be able to reach the submenu. It's quite surprising to realize that such clever features are hidden in everyday menus, isn't it?
If you attempt to implement this on the web, the implementation can become quite complex, so it's a good idea to consider using a reliable software library if possible.
Tooltip
A tooltip is a component, or the function itself, that displays information to explain the action being performed when the cursor hovers over a specific UI element (often referred to as "mouseover" or "mouse hover"). The image below provides a clear example.
While this may seem like a simple concept, what I want to emphasize this time is that the ideal user interface should "work in harmony with the unconscious actions generated by the user's psychological state."
When encountering a webpage for the first time, or websites with many buttons and application-like elements, it's impossible to instantly understand what each element is used for. However, when a user intends to perform an action, their cursor naturally moves towards something that seems likely to be relevant. In such cases, even if the user wasn't expecting an explanation, a tooltip appears, confirming that they have indeed found the desired function.
Although it may not be a necessary feature for a website, it undoubtedly helps many users. It's one of the things I particularly appreciate in UI design.
However, in this modern era, we have unconsciously learned that "hovering the mouse over a UI element often reveals something," so sometimes, for better or worse, we end up "trying the cursor on every icon." This might be a turning point where another solution can be found.
Skeleton loading
Finally, let's talk about skeleton loading. This might be an unfamiliar term for some, so let's start by looking at some examples.
It is a type of user interface (UI) element often used as a loading indicator while pages are being loaded. By drawing the same shapes that will actually be displayed in the main content, it can strongly convey to the user the message that "the loading time will be short" and "it will complete very soon."
This user interface is already quite useful on its own, but there's another level of refinement to consider: animation.
10. Unfortunately, this magazine cannot show you the actual movement of the animation. However, if you are interested, please visit the Spotify (https://open.spotify.com) website. At the time of writing this article, you can see a skeleton loading screen with animations when the page is loaded.
Many of the animations in this design feature elements that appear to flow from left to right within each block of the skeleton loading screen, creating a wave-like effect. This helps convey the sense that the system is actively working on loading the content.
Looking back, even the initial display during button processing showed an animation with a "spinning" effect (as is typical, this doesn't actually move in the printed version of this magazine). Loading times are ideally as short as possible for users; one might even say they represent "time that shouldn't exist," so UI designers strive to minimize any potential stress caused by them.
In reality, there are moments when a completely static skeleton loading screen can cause a brief feeling of unease. However, the presence of even simple animations significantly reduces this psychological burden, and I have personally experienced this many times.
Just like the tooltip mentioned earlier, this is an example of a feature that isn't strictly necessary from a functional standpoint, but definitely contributes to improving the user experience. Similarly, there are many UI elements where the presence or absence of animation can significantly change the overall impression. Please pay attention to these details going forward.
(Written by Miru)

(Featured in the New Year issue of Up&Coming '24)
|
||||||||
![]() Up&Coming |
LOADING