How-to articles, tricks, and solutions about ATTRIBUTE
How to Add a Mouseover Text with HTML
How to Allow Only Positive Numbers in the Input Number Type
In this snippet, we’ll demonstrate how to allow only positive numbers in the input number type. You can use the “min” attribute to specify restrictions.
How to Allow the File Input Type to Accept Only Image Files
In this tutorial, we’ll show how to allow the file input type to accept only image files or certain image file extensions. Use the HTML “accept” attribute.
How to Assign a Checked Initial Value to the Radio Button
In this tutorial, find out how you can assign a checked initial value to the radio button with HTML. To achieve that goal, you need to use the checked attribute.
How to Change the Style of the "title" Attribute Within an Anchor Tag
Since actually, we cannot style the “title” attribute inside an anchor tag, we suggest using some other methods of styling the tooltip inside an anchor tag.
How to Disable Form Fields with CSS
In this tutorial, we’ll demonstrate how it is possible to disable form fields with some CSS. For that, you can use the pointer-events property set to “none”.
How to Set the Equivalent of "src" Attribute of an <img> Tag in CSS
In this snippet, you can find the solution of setting the equivalent of “src” attribute of an <img> tag. For that, use the content or background-image properties.
How to Use the "required" Attribute on the <select> Element in HTML5
The “required” attribute works only on empty values. In this snippet, we’ll show how to apply it to the HTML <select> element. Read and find some examples.