How-to articles, tricks, and solutions about HTML
How to Divide a Horizontal Line into Multiple Parts
In this tutorial, you will learn how it is possible to divide an HTML horizontal line into multiple parts. For that, you can use the CSS border-top property.
Which is the Float Input Type in HTML5
In this tutorial, you’ll learn which is the float input type in HTML5. Read our snippet and try some examples with the step value to see the solution to this problem.
How to Set a Minlength Validation in HTML5
In this snippet, find out what alternative attributes to minlength can be used to set a minlength validation in HTML5. Read our snippet and try examples.
How to Use the HTML accept Attribute
In this tutorial, we’ll explain what is the HTML accept attribute and why it is used. Use this attribute to specify file types the user is allowed to choose from.
What is the Difference Between the hidden and aria-hidden Attributes
On this page, you will learn what is the difference between the hidden and aria-hidden attributes. Read our snippet and see examples with these attributes.
How to Prevent Tab Indexing on Specific Elements
In this snippet, we demonstrate how it is possible to prevent tab indexing on specific elements. Read our tutorial to find out the answer and also try examples.
Which Tag is Better to Use: <embed> or <object>
On this page, you will learn what is the difference between the HTML <embed> and <object> tags and which one is better to use. Read the snippet and find examples.
Is It Possible to Use a <span> Within Another <span>
In this snippet, you will learn whether it is possible to use an HTML <span> element within another element. Read this tutorial and find the answer to this question.
How to Render an HTML String Preserving Spaces and Line Breaks
In this tutorial, you can learn how to render an HTML text preserving spaces and line breaks. You need to use the HTML <pre> tag or the CSS white-space property.