HTML5 Form Validation Examples
For an old days we used JavaScript validation to validate any form in a website and this was until recently unthinkable. But as soon as the HTML5 came then the validation becomes very easy to […]
For an old days we used JavaScript validation to validate any form in a website and this was until recently unthinkable. But as soon as the HTML5 came then the validation becomes very easy to […]
While embedding JavaScript in an HTML and putting the script tags i.e. included in JavaScript, where is the best place? Let’s see what happens when browser loads a website: First it fetch the HTML. Starts […]
The section tag defines sections in a document like chapters, headers, footers whereas div tag defines a division in an HTML document. Here we will discuss the difference between section and div in HTML. In […]
Without JavaScript, a PDF can be embedded into HTML pages. Embedding PDFs without JavaScript is a major part in HTML. In below there are 4 examples that describes how to use this common techniques. For […]
Redirect HTML page is done using the meta refresh for fallback purposes in the head section of a HTML i.e. replace old page with the URL of the page you need to redirect to. This […]
We all know that for a text input, the placeholders are working fine. But what about if we use a placeholder for a select box as well? Let’s see. Sometimes we need to use placeholder […]
While creating the id attributes for HTML elements, we need to provide Valid values for id attribute. Let’s see what are they. ID and NAME value must contain with a letter (A-Za-z) and this may […]
The localStorage property allows you to store objects in HTML5 that is more secure and can store large amounts of data locally. It’s essential sometimes having stored JavaScript object in HTML5 localStorage. But objects don’t […]