Pratham Profile picture
I work to place you in the top 1% of web developers โ€ข Building https://t.co/TzoPPvXkeN & https://t.co/vTZdsutbrT โ€ข DevRel โ€ข Prev @Rapid_API @HyperspaceAI

Apr 23, 2021, 26 tweets

The next 24 tweets will prove how powerful HTML is

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป

1. enterkeyhint attribute

The enterkeyhint is a global attribute defines the action for "enter" key on virtual keyboard

It accpets the following values ๐Ÿ‘‡๐Ÿป

2. Icons using HTML

- You can use HTML entity or HTML code to print some cool symbols or icons

3. Make your image clickable

The <map> tag is used to define an image map. An image map is an image with clickable areas.

You can use it with the <area> tag and coords attribute

Learn more about it here ๐Ÿ‘‡๐Ÿป

w3schools.com/tags/tryit.aspโ€ฆ

4. Responsive Images

Responsive web pages is in trend as there is rapid growing of mobile devices.

You can achieve responsive design using various methods but do you know images can be toggled for different screen sizes with markup.

You can use <picture> element for that. It gives web developers more flexibility in specifying image resources.

The <picture> element contains two tags: one or more <source> tags and one <img> tag.

You can pass different screen size in media attribute of source tag

5. Type

The "type" attribute of <ol> element let you change the type of order i.e, numeric, alphabetic or roman numbers

6. Target

"Open link in new tab" by just adding 'target' attribute as "_blank"

7. Accesskey

You can create shortcut key for your element using "accesskey" attribute.

It will focus or activate a particular element on your web page.

8. Make a skype call / chat

Did you know you can create a link for skype chat or call?

9. Multiple

Using "multiple" attribute of input element, user is allowed to enter more than one value in the <input> element

It is valid for type email and file only

10. Intact your company name

- Use "translate" attribute and set it value to "no" for your company name. So that in case, the webpage is translated into another language, your brand name will remain intact

11. sandbox

Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions

12. sandbox attribute accepts following values

13. Underline text like a pro

- You can create "wavy" line using one line of CSS

14. Custom attribute

HTML allow us to create our custom attribute as well so that we can store some data associated with it

The data-* attribute

15. Reversed

Reversed attribute simply reverse the numbering of ordered list. Instead to 1, 2, 3... It will be 3, 2, 1

16. Poster

Specifies an image to be shown while the video is downloading, or until the user hits the play button. You can consider it as a thumbnail

17. Regular Expression

- You can use "pattern" attribute in order to specifies the regular expression

18. Spellcheck

The "spellcheck" attribute is used to check the spelling and Grammar.

19. Tabindex

The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating).

For example, the element with tabindex="1" will be focused when user press the tab first time

Check this pen for better understanding

codepen.io/prathamkumar/pโ€ฆ

20. Accept

The accept attribute specifies the types of files that the server accepts (that can be submitted through a file upload)

21. Loop

Loop is a boolean attribute. When present, it specifies that the audio / video will start over again, every time it is finished.

22. Draggable

The draggable attribute specifies whether an element is draggable or not. It is often used in drag and drop operations.

That's pretty much it for this thread.

This thread proved that web development is a enormous field, where there is always some margin of improvement ๐Ÿ‘จโ€๐Ÿ’ป

Peace out ๐Ÿ˜‰โค๏ธ

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling