5 Tweets 12 reads May 07, 2021
Do you have videos in your webpage?
Here are 4 tips to style video like a pro ↓
Adding subtitles is always good from accessibility point of view.
You can style the subtitles of video on your website using ::cue pseudo-element
The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode.
You can use it for style video on your webpage when its picture-in-picture mode
Loop is a boolean attribute. When present, it specifies that the video will start over again, every time it is finished
Poster attribute 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

Loading suggestions...