TopGit theo dõi necolas/idiomatic-html trên GitHub, đã đạt 522 sao. Principles of writing consistent, idiomatic HTML.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
The following document outlines a reasonable style guide for HTML development.
These guidelines strongly encourage the use of existing, common, sensible
patterns. They should be adapted as needed to create your own style guide.
This is a living document and new ideas are always welcome. Please
contribute.
Table of contents
General principles
Whitespace
Format
Attribute order
Naming
Practical example
License
1. General principles
All code in any code-base should look like a single person typed it, no
matter how many people contributed.
Strictly enforce the agreed upon style.
If in doubt when deciding upon a style, use existing, common patterns.
2. Whitespace
Only one style should exist across the entire source of your code-base. Always
be consistent in your use of whitespace. Use whitespace to improve
readability.
Never mix spaces and tabs for indentation.
Choose between soft indents (spaces) or real tabs. Stick to your choice
without fail. (Preference: spaces)
If using spaces, choose the number of characters used per indentation level.
(Preference: 4 spaces)
Tip: configure your editor to "show invisibles". This will allow you to
eliminate end of line whitespace, eliminate unintended blank line whitespace,
and avoid polluting commits.
3. Format
Always use lowercase tag and attribute names.
Write one discrete element per line.
Use one additional level of indentation for each nested element.
Use valueless boolean attributes (e.g. checked rather than
checked="checked").
Always use double quotes to quote attribute values.
Omit the type attributes from link stylesheet, style and script
elements.
Always include closing tags.
Don't include a trailing slash in self-closing elements.
(Keep line-length to a sensible maximum, e.g., 80 columns.)
Elements with multiple attributes can have attributes arranged across multiple
lines in an effort to improve readability and produce more useful diffs.
HTML attributes should be listed in an order that reflects the fact that class
names are the primary interface through which CSS and JavaScript select
elements.
Naming is hard, but very important. It's a crucial part of the process of
developing a maintainable code base, and ensuring that you have a relatively
scalable interface between your HTML and CSS/JS.
Use clear, thoughtful, and appropriate names for HTML classes. The names
should be informative both within HTML and CSS files.
Avoid systematic use of abbreviated class names. Don't make things
difficult to understand.
Principles of writing consistent, idiomatic HTML by Nicolas Gallagher is
licensed under the Creative Commons Attribution 3.0 Unported
License. This applies to all
documents and translations in this repository.
Based on a work at
github.com/necolas/idiomatic-html.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/necolas/idiomatic-html là nguồn chính thức.
necolas/idiomatic-html có bao nhiêu sao?
necolas/idiomatic-html có 522 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/necolas/idiomatic-html. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
necolas/idiomatic-html có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho necolas/idiomatic-html. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
necolas/idiomatic-html có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho necolas/idiomatic-html. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
necolas/idiomatic-html còn đang phát triển không?
Commit gần nhất trên necolas/idiomatic-html là 10.9 năm trước (theo timestamp GitHub). Repo có 69 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
necolas/idiomatic-html viết bằng ngôn ngữ gì?
Dữ liệu TopGit chưa ghi nhận ngôn ngữ chính cho necolas/idiomatic-html. Xem danh sách file trên GitHub để biết chi tiết.
Đọc đầy đủ README ở tab phía trên.
idiomatic-html có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về idiomatic-html.