From the course: Simplifying Web Development with Accessibility Best Practices
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Elements with purpose - HTML Tutorial
From the course: Simplifying Web Development with Accessibility Best Practices
Elements with purpose
- [Instructor] In addition to structural semantic elements, HTML has a laundry list of elements fit for specific purposes, adding any type of navigation, either a menu, some page navigation, like next or previous page, a slider control, or anything else navigation-wise, wrap it in a <nav> element and it gets the role and landmark navigation. Need a data table? Use the <table> element and get the benefits of all the table functionality built into the browser and assistive technologies. Need a form? Use <form> elements. Need unordered or ordered lists? Use list elements. Need a drop-down select or any type of select element? Use a <select> element. Need a check box, a date picker, a color selector, a password or range selector, or anything else that requires input? Use an <input> element. Need a button? Use a <button> element. Need a link? Use the <link> element. I could go on, but I think you see my…