


How to build a great mobile website? Google experts teach you 25 tricks (5) [Transfer]_html/css_WEB-ITnose
? 21. Your product images need to support large image display
Customers want to see what they buy product. On retail websites, users hope to see product images with higher resolution so that they can see more details. If the website does not support the display of large product images, users will definitely be very disappointed.
Key elements: For key images such as product photos, high-quality close-up images need to be provided.
? 22. Inform users in which screen orientation they are most comfortable accessing the website
Users tend to be in a Visit websites with a fixed screen orientation unless they are prompted to switch the screen orientation (such as when watching a video). You can design your website with both vertical and horizontal screen orientations in mind and encourage users to switch to the optimal screen orientation. But no matter how you switch the screen orientation, you must ensure that some important "call to action" content can be clearly displayed on the website.
Key takeaway: You can communicate with users about the best screen orientation, but make sure important “call to action” content remains prominent.
? 23. Let users keep accessing your website in a single browser window
On a smartphone Frequently switching windows on the Internet is a very troublesome thing, and users may not be able to find how to get back to your website. Therefore, let users browse your website in a separate window. In particular, do not open "call-to-action" content in a new window.
Key element: Make sure the call-to-action content is displayed in a separate browser window.
? 24. Avoid the "Full Site" label
Once users see the "Full King Power" option, they will think it is " "Mobile website" is a compressed and streamlined version of the website, and eventually they chose to click to enter the "full website". Even if the content of the desktop website and the mobile website are consistent, it will cause misunderstandings for users. Therefore, you can use the "desktop website" tag instead of "full website".
Key elements: To give users a simple website switching experience, use the "Desktop Site" label instead of the "Full Site" label.
? 25. You must know why you need the user’s address information
Users generally want to know, Why would you ask them for geolocation information. For example, a user booked a hotel in another city on a travel website, but he felt strange because the website would ask the user to provide his current geographical location information. Therefore, you need to default the geographical location column on the website to empty, and then let users choose it themselves, or provide users with a clear "call to action" operation, such as "Find near me", etc.
Key elements: You must know why you need the user’s address information, and then understand how this information affects the user experience
In response to the above 25 points, Jenny Gove, a user experience researcher at Google, summarized the four most important suggestions, which are as follows:
?1. Add an eye-catching search bar
If your mobile website doesn’t already have a search bar, you really need to add one quickly. "On mobile terminals, people want to be able to quickly find what they need, so we found that people have a great demand for the search bar, and it is best to place it on the homepage." Gove explained.
Of course, as a research project initiated by Google, it does not seem surprising that it is recommended to install a search bar in a prominent location on the website. But in fact, Google found that users don't actually mind using the search bar because it allows them to quickly find the information they need.
? 2. Split the large table into small pieces
Google found that many websites ask users to provide various information, such as address information (mail address) (required when delivering goods), credit card number (required when paying the bill), etc. When filling in this information, websites often provide a long form page with various input boxes, which is very complicated. So, it might be better if you can break these tables into smaller, easier-to-understand chunks.
In addition, Gove suggested that it would be best to show the steps for filling out the form. And it is best to be able to verify the correctness of the input content in real time when filling in. For example, when a user enters his or her zip code, it can be verified in real time.
? 3. Allow users to browse anonymously
Some shopping websites require users to register or log in before making purchases. Some websites are even more exaggerated and require registration or login before browsing. Both approaches are dead wrong.
Gove said, “If you are going to create a retail website, if the user does not have a registered account, then you can provide them with a guest identity. Yes, merchants hope that users can register and log in, but they can completely ”
? 4. Support convenient switching between devices
Because people use mobile terminals anytime and anywhere, they are very likely to use them. I was interrupted by something during the process, and then I moved to my laptop to work.
Gove believes that the most miserable experience is that when users switch devices, they cannot continue their previous experience. It is simply too troublesome to let users copy and paste the URL they visited.
The best solution is that the mobile website can provide a shortcut button, and then automatically send the current link or access content to the user's own mailbox, and then no matter what device the user logs in to, You can continue your own experience.
Finally, Gove feels that Google has clearly identified the problems in building mobile websites through user research. She feels that although there are many problems, fortunately these problems can be identified, and if these problems can be Being written down by people means that people also have the ability to solve these problems.

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor

Notepad++7.3.1
Easy-to-use and free code editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
