Yogesh Chauhan's Blog

Useful (and probably ignored) HTML tags: Part 2

in HTML on July 21, 2021

Similar Posts

Useful (and probably ignored) HTML tags: Part 1

Some Interesting HTML Attributes


BDO = Bi-Directional Override

The bdo tag overrides the direction of the texts.


The cite tag is used to define the title for a book, a painting — something that can be considered an unique or a creative piece of work.

The cite tag will render texts in italic by default. Just like the address tag

<p><cite>The Alchemist</cite> is a novel by Brazilian author Paulo Coelho that was first published in 1988.</p>

col and colgroup

The colgroup tag is used to make a group of one or more columns in a table and apply a specific formatting using CSS.

To define that “number of columns”, you can use the col tag.

It’s an handy option to style multiple columns with single line of code rather than repeating code in each element. You could always use an external stylesheet as an alternative.

The colgroup must be placed inside a table tag after the caption tag and before the thead tag.


The data tag is used for data processing and adds a value that can be easily read and processed by machines for tasks such as reports.

<p>We need to order few more <data value="11302">Apple MacBook Pros</data>.</p>


The datalist tag is used to define a list of options for an input element.

You can just add a list of options way before you add an input element and then just link them together later when you add an input element via list attribute.

Another advantage of using datalist is that it enables “autocomplete” feature so that you probably won’t need a third party JS library to enable autocomplete in your options selection.

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
Can we execute conditions in SQL?SQL/MySQLLEFT JOIN in PostgresPostgresFive common features of Angular template syntax (with examples)AngularHow to create a CSS full page background image?CSSJavaScript String fromCharCode() MethodJavaScriptControl rendering using CSS content-visibility propertyCSS