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.


Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to uninstall Cocoapods from the Mac OS?

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
How to send and receive query strings via links in Angular 9?Angular4 different ways to create JavaScript ObjectsJavaScriptThe order Property in Flex Items in CSSCSSHow to pass arguments in SCSS function?SCSSHow destructuring works in React?ReactHow to modify AutoSave Interval using code in WordPress?WordPress