logo

HTML

HTML

Open Links in a New Tab, Or Re-Use Already Existing Tab

To ensure only a single new tab or window is created for several links in the page, the same child attribute needs to set for all the links.
27 November 2020
HTML

HTML Guidelines for Creating Better Forms

This article discusses some basic HTML guidelines for creating better forms. It deals with HTML tags & attributes that can help user to fill the form better.
19 July 2020
HTML

How to Prevent Sending the Referring URL when Clicking a Link

The referring url may compromise user privacy when a link is clicked. However this can be prevented through the referrer meta tag, or using the referrerpolicy attribute on hyperlinks.
29 December 2019
HTML

Tracking Clicked Links using ping Attribute of <a> Tag

The ping attribute can be included in link tags to notify the server when the link is clicked. This can be used for tracking purposes.
26 December 2019
HTML

HTML <output> Tag - Representing Output of a Performed Calculation or User Action

The <output> tag is the standard HTML element in which the result of any user action or calculation performed can be shown. The result can inserted inside the tag using Javascript.
25 December 2019
HTML

How to Lazy Load HTML Videos

HTML videos can be lazily loaded using the preload attribute of the 〈video〉element. preload="none" needs to be set to disable pre-loading of the video.
24 December 2019
HTML

Synchronous / Asynchronous Image Decode using <img decoding> Attribute

The "decoding" attribute can be included for an <img> tag to specify whether to decode the image in parallel or along with the rest of the page content.
13 December 2019
HTML

Loading CSS Stylesheet on Demand Through Its disabled Attribute

A stylesheet can include the disabled attribute in its markup to prevent it from being downloaded on page load. Later when the stylesheet needs to loaded on demand, its disabled attribute can be removed with Javascript.
3 December 2019
HTML

Preventing Autofilling the Password Field in HTML Forms

To prevent situations where we would not like the browser to autofill the password field in a form, the autocomplete=new-password attribute can be used.
1 December 2019
HTML

Representing Edits to HTML Pages using <ins> & <del> Tags

Often there are edits made to documents. In HTML these changes can be highlighted using the <ins> & <del> tags.
28 November 2019
HTML

HTML Tags to Represent Programing Code

The 〈code〉, 〈kbd〉, 〈samp〉 and 〈var〉 HTML tags can be used to represent programming and code information in a webpage.
21 November 2019
HTML

How to Implement Click to Call Feature in Web Pages

Click to Call functionality in web pages can be implemented using the tel: schema inside a hyperlink. Clicking on such a link would open the Dialer App on the device.
31 October 2019
Javascript

How to Prevent Form Validation on Page Load & While Typing on Input Field (HTML Constraint Validation API)

The Constraint Validation API validates HTML forms on page load, and while typing on an input field. This seemingly confusing behavoiur to the user can be modified using a bit of CSS and Javascript.
26 October 2019
HTML

How to Change the Theme Color of the Address Bar in Mobile Browsers

The theme color of the address bar in mobile browsers can be changed using the theme-color meta tag. Any CSS color value can be set as its content.
24 October 2019
HTML

HTML <address> Tag - Setting Address Information for a Webpage

The HTML <address> element represents address information for the webpage. It can be read by machines and scripts for understanding that the included content is an address of some sort.
13 October 2019
HTML

HTML <mark> Tag - Marking Text of Special Importance

The HTML <mark> element can be used to highlight text of special relevance in a webpage. This tag can be read by machines, bots, screen readers etc to use the highlighted for their learning purposes.
9 October 2019
HTML

HTML <caption> Tag - Giving Title to Tables

The <caption> tag is used to give a caption or title to HTML tables. This is the correct way of giving a title to a table as per the HTML specification.
25 September 2019
HTML

HTML inputmode Attribute for Textboxes

The HTML inputmode attribute can be used for textboxes in a webpage. This can effectively customize the onscreen keyboard taking in the mind the data to be filled for the textbox - telephone, email, numbers etc.
19 September 2019
HTML

HTML <abbr> Tag - Highlighting Abbreviations in Web Pages

The <abbr> element is the standard markup element used to highlight abbreviated terms in a webpage. A title attribute can also provide the full description of the abbreviation.
11 September 2019
HTML

HTML <dfn> Tag - Highlighting Definitions in Web Pages

The HTML Definition element represented by <dfn> is the standard markup used to highlight terms being defined in webpages.
9 September 2019