parent
23712d24b5
commit
1fcfa81bd2
2 changed files with 84 additions and 0 deletions
@ -0,0 +1,48 @@ |
|||||||
|
--- |
||||||
|
title: 'Accessible Form UI' |
||||||
|
description: 'Create an accessible form UI using HTML and CSS.' |
||||||
|
isNew: false |
||||||
|
sort: 7 |
||||||
|
difficulty: 'beginner' |
||||||
|
nature: 'Accessibility' |
||||||
|
skills: |
||||||
|
- 'HTML' |
||||||
|
- 'CSS' |
||||||
|
- 'Layouts' |
||||||
|
- 'Positioning' |
||||||
|
- 'Accessibility' |
||||||
|
seo: |
||||||
|
title: 'Create an Accessible Form UI for a Website Using HTML and CSS' |
||||||
|
description: 'Learn how to create an accessible form component using HTML and CSS.' |
||||||
|
keywords: |
||||||
|
- 'accessible forms' |
||||||
|
- 'css project idea' |
||||||
|
- 'responsive design' |
||||||
|
- 'html and css' |
||||||
|
roadmapIds: |
||||||
|
- 'frontend' |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
In this project, you are required to create a form UI using only HTML and CSS. The form will include fields for a full name, email, password, and confirm password, along with a button to toggle the visibility of the password text. Additionally, the form will feature a completeness progress bar and a checklist of requirements that must be met for the form to reach 100% completeness. While this version of the form won’t be functional, it will be a static UI component that can be enhanced with JavaScript in the future. |
||||||
|
|
||||||
|
The goal of this project is to not only help you practice your HTML and CSS but also to focus on creating an accessible form that is easy to use for all users, including those with disabilities. Given below is the rough mockup of the form UI that you need to create: |
||||||
|
|
||||||
|
[![Form UI](https://assets.roadmap.sh/guest/form-components-7t4b3.png)](https://assets.roadmap.sh/guest/form-components-7t4b3.png) |
||||||
|
|
||||||
|
## Accessibility Guidelines |
||||||
|
|
||||||
|
You should read up on accessibility guidelines and best practices before starting this project. However, here are some key points to keep in mind while creating an accessible form UI: |
||||||
|
|
||||||
|
- **Labeling**: Ensure that each form field has a corresponding `<label>` element that is clearly associated with the field using the `for` attribute. |
||||||
|
- **Focus State**: Style the focus state of each input field so that users navigating with a keyboard can easily see which field is currently active. |
||||||
|
- **Error Messaging**: Consider adding space for error messages that can be displayed when a user inputs invalid data. These messages should be clearly associated with the relevant input field. |
||||||
|
- **ARIA Attributes**: Use ARIA (Accessible Rich Internet Applications) attributes where necessary, such as `aria-required` for required fields and `aria-invalid` for fields with errors. |
||||||
|
- **Color Contrast**: Ensure that the color contrast between text and background is sufficient to meet WCAG (Web Content Accessibility Guidelines) standards, making the form readable for users with visual impairments. |
||||||
|
- **Interactive Elements**: Make sure that the button to show/hide the password is accessible via keyboard and screen readers, providing clear feedback on the current state (e.g., "Password is hidden" or "Password is visible"). |
||||||
|
|
||||||
|
Once done, you can test the form UI using a screen reader or browser extensions like Axe or Lighthouse to check for accessibility issues and make necessary adjustments. |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
After completing this project, you will have a solid foundation in creating accessible and well-structured forms using HTML and CSS. You can later enhance this form by adding JavaScript to make it fully functional and dynamic in future projects. |
@ -0,0 +1,36 @@ |
|||||||
|
--- |
||||||
|
title: 'Datepicker UI' |
||||||
|
description: 'Create a simple datepicker UI using HTML and CSS.' |
||||||
|
isNew: false |
||||||
|
sort: 6 |
||||||
|
difficulty: 'beginner' |
||||||
|
nature: 'CSS' |
||||||
|
skills: |
||||||
|
- 'HTML' |
||||||
|
- 'CSS' |
||||||
|
- 'Layouts' |
||||||
|
- 'Positioning' |
||||||
|
seo: |
||||||
|
title: 'Create a Datepicker UI for a Website Using HTML and CSS' |
||||||
|
description: 'Learn how to create a datepicker component using HTML and CSS.' |
||||||
|
keywords: |
||||||
|
- 'basic css' |
||||||
|
- 'css project idea' |
||||||
|
- 'responsive design' |
||||||
|
- 'html and css' |
||||||
|
roadmapIds: |
||||||
|
- 'frontend' |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
In this project, you are required to create a simple datepicker UI using only HTML and CSS. It will not be a functional datepicker, but a static UI component that you can later enhance with JavaScript. |
||||||
|
|
||||||
|
The goal of this project is to help you practice positioning, layout, and styling techniques in CSS. Below is a rough mockup showing the datepicker UI you need to create. |
||||||
|
|
||||||
|
[![Datepicker UI](https://assets.roadmap.sh/guest/datepicker-ui-7l480.png)](https://assets.roadmap.sh/guest/datepicker-ui-7l480.png) |
||||||
|
|
||||||
|
Feel free to customize the colors, fonts, and overall design to match your style. |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
While this version won't be functional, it will provide a solid foundation for creating an interactive datepicker in a future project. |
Loading…
Reference in new issue