Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2786

content-without-css

Skill này làm gì

Skill này kiểm tra xem trang có còn hợp lý khi style bị gỡ bỏ hoặc được thay bằng style riêng của người dùng hay không. Skill dành cho nhà thiết kế và lập trình viên muốn nội dung hoạt động với mọi người.

Khi nào nên dùng

  • ✓Khi bố cục dựa vào vị trí hiển thị để cho biết bước tiếp theo là gì.
  • ✓Khi nhãn hoặc thông báo lỗi chỉ hiện ra nhờ style trang trí.
  • ✓Khi form hoặc các bước chỉ rõ ràng nhờ CSS.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-without-css/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-without-css/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy tắt style của trang đăng ký của tôi và kiểm tra xem nhãn, các bước và thông báo lỗi có còn rõ ràng không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra cấu trúc ngữ nghĩa, thứ tự đọc và nhãn của trang, rồi chuyển hướng dẫn thiết yếu thành văn bản thật thay vì các thủ thuật trang trí.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Ensure content remains usable without CSS

Users can browse with custom styles, high contrast modes, reader tools, or failed stylesheets. If the page only makes sense visually, content order, instructions, and task flow break as soon as presentation changes.

Quick Reference

  • Use semantic HTML so headings, lists, and form relationships survive without CSS
  • Keep DOM order aligned with the reading and task-completion order
  • Do not put essential labels, instructions, or required markers in CSS generated content
  • Test key journeys with author styles disabled or overridden by user styles

Check

Find pages or components that rely on CSS for meaning. Verify the page still has a logical reading order, visible labels, instructions, error text, and operable primary actions when author styles are disabled or replaced by user styles.

Fix

Use semantic HTML and DOM order to preserve headings, lists, labels, field groups, helper text, and error messaging without relying on CSS positioning, pseudo-elements, or visual-only cues.

Explain

Explain why semantic HTML and meaningful DOM order let content remain understandable when CSS fails to load or users apply their own styles.

Code Review

Review templates, rendered HTML, and component markup related to Ensure content remains usable without CSS. Flag where meaning, reading order, labels, instructions, or task flow depend on CSS rather than semantics, and note how to verify the fix with styles disabled.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/content-without-css

Câu hỏi thường gặp

Vì sao một trang lại mất CSS?

Skill nói một số người dùng áp dụng style riêng hoặc chế độ tương phản cao, và các tệp stylesheet có thể không tải được.

Những gì không nên phụ thuộc vào CSS?

Nhãn thiết yếu, hướng dẫn, dấu bắt buộc và văn bản lỗi.

Thứ tự HTML có quan trọng không?

Có. Skill nói thứ tự trong HTML nên khớp với thứ tự đọc và thứ tự thực hiện tác vụ.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing rendered HTML, layout components, or design-system patterns that may depend on presentation for meaning. Check the DOM order, semantic structure, form relationships, and whether CSS generated content carries essential information.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2786
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự