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.
{ 4 / 10 }
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 / 10 }
3οΈβ£ Use anchor tag like a pro
Wait! I'm not gonna cover mailto or tel here because this are pretty basic one.
But do you know you can create a link for skype chat or callπ
{ 6 / 10 }
4οΈβ£ Regular expression
You can use "pattern" attribute in order to specifies the regular expression
For example, User can only enter password that must contain 8 or more characters that are of at least one number, and one uppercase and lowercase letter
{ 7 / 10 }
5οΈβ£ Custom attribute
Do you know HTML allow us to create our custom attribute as well so that we can store some data associated with it
The data-* attribute
{ 8 / 10 }
This data then can be used to in JavaScript in order to perform some complex operations
For example ππ»
{ 9 / 10 }
Did I miss something? Feel free to add more awesome things about HTML π
{ 10 / 10 }
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
- Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file. Not only for front-end developersπ
Get design inspiration for your next project from here
𧡠ππ»
πΉ Dribbble
- Dribbble is where designers gain inspiration, feedback, community, and jobs and is your best resource to discover and connect with designers worldwide.