dots Created with Sketch.
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

BDO = Bi-Directional Override

The bdo tag overrides the direction of the texts.

cite

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.

data

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>


datalist

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.

amazon

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

#Jul 22 Is there a CSS parent selector? #Jul 22 Difference between :where and :is in CSS #Jul 22 Does :is() pseudo selector hint at CSS preprocessing in the future? #Jul 22 Control Scrolling with CSS Scroll Snap #Jul 21 Control rendering using CSS content-visibility property #Jul 21 How to use @supports rule in CSS?
You might also like these
HTML canvas methodsHTMLWhat Does Host-Based Intrusion Detection System (HIDS) Mean and What Are Some Advantages Over NIDS?MiscellaneousAll possible ways you can Insert Data in PostgresPostgresDebugging in WordPress Part 1: WP_DEBUGWordPressHTML Copyright SymbolHTMLWhat Is a Graph Database?Miscellaneous