Assets: attributes (class,id) and its purpose
Assets: attributes (class,id) and its purpose Sure! Here's a list of commonly used HTML tag attributes , organized by category and purpose , with practical examples — especially useful for interactive web apps like your food ordering system. 🔷 1. Global Attributes (usable on almost any element) Attribute Purpose Example class="" Assign CSS classes (styling/behavior) <div class="item-card"> id="" Unique identifier (for JavaScript or CSS) <div id="item1"> style="" Inline styling <div style="color: red;"> title="" Tooltip text on hover <button title="Click to order"> hidden Hides the element from display <div hidden> tabindex="" Sets tab order for keyboard navigation <input tabindex="1"> contenteditable Makes element text editable by user <div contenteditable="true"> data-* Custom d...