Table Component
Contributed by Heran Wang
A table component displays data in rows and columns.
Basic Table Component
Code Usage
Usability
-
Simplicity and Readability:
- The design is straightforward with easily understood headings and list items that outline the features of each pricing plan.
- The use of
h2
andh3
tags helps create a hierarchy of information, making it more digestible.
-
Consistency:
- Each pricing card follows the same structure and layout, making it easier for users to compare them side by side.
-
Clear CTAs (Call to Action):
- Each card has a single, clear action button labeled "Subscribe," making it evident what users are supposed to do next.
-
Responsive Design:
- The CSS includes a media query that adjusts the layout for screens less than 768px wide.
- This makes the design usable across various devices.
Accessibility
-
Semantic HTML:
- The use of semantic tags like
h2
,h3
, andul
not only benefits SEO but also screen readers. - It helps to convey the structure of the content.
- The use of semantic tags like
-
Color Contrast:
- The button's color scheme (blue background and white text) provides good contrast.
- This makes it more readable for people with vision impairments.
-
Keyboard Navigation:
- Standard HTML elements like buttons are used, which are naturally focusable and accessible through keyboard navigation.
-
Text Size:
- The font sizes for
h2
andh3
are larger than the default, improving readability for all users, including those with low vision.
- The font sizes for
Version
Version | Editor | Author | Date | Description |
---|---|---|---|---|
v1.0 | Heran Wang | Heran Wang | 07/OCT/2023 | Initial version |
v2.0 | Heran Wang | Heran Wang | 09/OCT/2023 | Full version |
v3.0 | Heran Wang | Heran Wang | 14/OCT/2023 | Verify updates |