When developing a web page, the first thing to consider is to distinguish the focus of the page. By including these contents with div tags, the code of the page will show a neat and indented style.
To < H6 > these elements are used to highlight the key content of the page. This helps users pay more attention to the key parts of the page. For blogs, I (referring to the author of this article) recommend using the < H1 > tag to highlight the blog title. Because the blog title is almost the most important part of the page.
A good page should separate HTML tags from CSS style sheets. This is a principle that every web developer should know when he first comes into contact with web development. However, until today, there are still many developers who do not strictly follow this principle.
Do not embed style sheet code in HTML tags. Developers should get into the habit of creating separate files to store CSS style sheets. This will also facilitate other developers to finish their work quickly when modifying your code.
In the < img > tag, the alt attribute is usually very useful. Because search engines usually can't grab image files directly. However, if the developer adds the description of the picture to the alt attribute, it will be convenient for the search engine to capture.
5、在表格里使用
5. Use < label > and < fieldset > in the table
为了提高代码质量,并让用户容易理解表格内容,我们应该用
In order to improve the code quality and make it easy for users to understand the table content, we should create table elements with < label > and < fieldset > tags.