Page 01/07
HTML
TRICKS
You’ve
Missed
@junaidahmad Save This Post
Swiping.....
[Link]
Page 02/07
Capture
Just as the input tag has attributes for email,
text and password, there is also an attribute
to open the camera of mobile devices to
capture images.
This is done with the capture attribute
which can take two values:
user for the front camera.
environment for the back camera.
@junaidahmad Save This Post
Swiping.....
Page 03/07
[Link]
Refresh
You can set your website to refresh after a
given amount of time from the head tag!
The snippet below refreshes the website
every 10 seconds.
@junaidahmad Save This Post
Swiping.....
Page 04/07
3. Active
SpellCheck
You can use the HTML spellcheck attribute
and set it to true to activate it. Specify the
language to be used using the lang
attribute.
It is a standard attribute and is supported
by most browsers.
@junaidahmad Save This Post
Swiping.....
Page 05/07
[Link]
Thumbnail
With the poster attribute, you can create
an image which is displayed while the video
is downloading, or until the user hits the
play button.
If this is not included, the first frame of the
video will be used instead.
@junaidahmad Save This Post
Swiping.....
Page 06/07
[Link]
Download
If you want a particular resource to be
downloaded when a link to the target
resource is clicked, add the download
attribute.
@junaidahmad Save This Post
Page 07/07
Thanks for
Reading! 🙌
Let’s keep learning and building together.
I share practical tips on frontend development,
performance, and secure coding.
Connect with me on LinkedIn — let’s grow our
developer community.
Follow: Junaid Ahmad
Email: Junaidsandhu21@[Link]
Portfolio: [Link]
@junaidahmad Save This Post