6 Cool Things You Can Do With Regular HTML

No fancy libraries, just regular, raw HTML

Photo by Chris Arthur-Collins on Unsplash

It’s no wonder that HTML can do some stuff that we might even think that it is an external library. If efficiently used we can even hack NASA (I’m just kidding). So let’s look into some cool features of HyperText Markup Language.

1. Color Picker

Create a color picker by simply using the <input> tag and giving it a property of type=’color’.

2. Accordion

The <summary> tag defines a visible heading for the <details> element.

The heading can be clicked to view/hide the details.

Before opening
after opening

You can create simple accordions using this method, without the need to implement CSS classes and JavaScript click handlers that toggle visibility whenever clicked.

3. Make a call

Call someone direct from your website.

4. Progress bar

You can use the <progress> element which will represent the completion of something.

5. Autocomplete

The <datalist> tag is used to provide an “autocomplete” feature for the <input> elements.

We can see a drop-down of predefined options as you type.

6. Emoji

Many UTF-8 characters cannot be typed on a keyboard. Some keyboards and devices also do not have an emoji input. However, emojis can always be displayed using numbers (known as ‘entity numbers’).

We can use this method to produce emojis in HTML.

Conclusion

Here we discussed a few HTML-only things that might save you time, and avoid the need to complicate things by incorporating CSS and JavaScript.

I hope you have found this useful. Were any of these tips new to you? If so, be sure to let us know in the comments.

Build modular, reusable React components with Bit.

Monorepos are a great way to speed up and scale app development, with independent deployments, decoupled codebases, and autonomous teams.

Bit offers a great developer experience for building component-driven monorepos. Build components, collaborate, and compose applications that scale. Our GitHub has over 14.5k stars!

Give Bit a try →

An independently source-controlled and shared “card” component (on the right, its dependency graph, auto-generated by Bit)

Learn more


6 Cool Things You Can Do With Regular HTML was originally published in Bits and Pieces on Medium, where people are continuing the conversation by highlighting and responding to this story.


This content originally appeared on Bits and Pieces - Medium and was authored by Adarsh gupta

No fancy libraries, just regular, raw HTML

Photo by Chris Arthur-Collins on Unsplash

It's no wonder that HTML can do some stuff that we might even think that it is an external library. If efficiently used we can even hack NASA (I'm just kidding). So let's look into some cool features of HyperText Markup Language.

1. Color Picker

Create a color picker by simply using the <input> tag and giving it a property of type=’color’.

2. Accordion

The <summary> tag defines a visible heading for the <details> element.

The heading can be clicked to view/hide the details.

Before opening
after opening

You can create simple accordions using this method, without the need to implement CSS classes and JavaScript click handlers that toggle visibility whenever clicked.

3. Make a call

Call someone direct from your website.

4. Progress bar

You can use the <progress> element which will represent the completion of something.

5. Autocomplete

The <datalist> tag is used to provide an “autocomplete” feature for the <input> elements.

We can see a drop-down of predefined options as you type.

6. Emoji

Many UTF-8 characters cannot be typed on a keyboard. Some keyboards and devices also do not have an emoji input. However, emojis can always be displayed using numbers (known as ‘entity numbers’).

We can use this method to produce emojis in HTML.

Conclusion

Here we discussed a few HTML-only things that might save you time, and avoid the need to complicate things by incorporating CSS and JavaScript.

I hope you have found this useful. Were any of these tips new to you? If so, be sure to let us know in the comments.

Build modular, reusable React components with Bit.

Monorepos are a great way to speed up and scale app development, with independent deployments, decoupled codebases, and autonomous teams.

Bit offers a great developer experience for building component-driven monorepos. Build components, collaborate, and compose applications that scale. Our GitHub has over 14.5k stars!

Give Bit a try →

An independently source-controlled and shared “card” component (on the right, its dependency graph, auto-generated by Bit)

Learn more


6 Cool Things You Can Do With Regular HTML was originally published in Bits and Pieces on Medium, where people are continuing the conversation by highlighting and responding to this story.


This content originally appeared on Bits and Pieces - Medium and was authored by Adarsh gupta


Print Share Comment Cite Upload Translate Updates
APA

Adarsh gupta | Sciencx (2022-01-14T18:53:36+00:00) 6 Cool Things You Can Do With Regular HTML. Retrieved from https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/

MLA
" » 6 Cool Things You Can Do With Regular HTML." Adarsh gupta | Sciencx - Friday January 14, 2022, https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/
HARVARD
Adarsh gupta | Sciencx Friday January 14, 2022 » 6 Cool Things You Can Do With Regular HTML., viewed ,<https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/>
VANCOUVER
Adarsh gupta | Sciencx - » 6 Cool Things You Can Do With Regular HTML. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/
CHICAGO
" » 6 Cool Things You Can Do With Regular HTML." Adarsh gupta | Sciencx - Accessed . https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/
IEEE
" » 6 Cool Things You Can Do With Regular HTML." Adarsh gupta | Sciencx [Online]. Available: https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/. [Accessed: ]
rf:citation
» 6 Cool Things You Can Do With Regular HTML | Adarsh gupta | Sciencx | https://www.scien.cx/2022/01/14/6-cool-things-you-can-do-with-regular-html/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.