HTML5 Video Element — Alternative Text - Stack Overflow
Có thể bạn quan tâm
-
- Home
- Questions
- Tags
- Users
- Companies
- Labs
- Jobs
- Discussions
- Collectives
-
Communities for your favorite technologies. Explore all Collectives
- Teams
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Try Teams for free Explore Teams - Teams
-
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsGet early access and see previews of new features.
Learn more about Labs HTML5 video element — alternative text Ask Question Asked 9 years, 3 months ago Modified 10 months ago Viewed 18k times 13Unlike the img element, the video element doesn’t include an alt attribute for missing or inaccessible content. It seems to me that video is more likely to cause loading or accessibility problems than the humble image.
The note in the W3C Document Doesn’t make make clear a simple alternative.
Is there a recommended procedure for providing a suitable alternative text, or, say a link to a transcript?
Share Improve this question Follow asked Aug 20, 2015 at 22:08 ManngoManngo 16k13 gold badges101 silver badges140 bronze badges 1- 1 have you looked at adding ARIA attributes to the content, and using javascript handlers to trap any loading errors – Offbeatmammal Commented Aug 21, 2015 at 1:47
1 Answer
Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 4As you pointed out, the tag <video> doesn't have an alt attribute.
I have two ideas to satisfy at least in part this need.
1) Adding a paragraph inside the <video> tag
<video> <source src="my-video-path.mp4" type="video/mp4"> <p>Description of the video...</p> </video>2) Adding schema data
<video itemscope itemtype="http://schema.org/VideoObject"> <source src="my-video-path.mp4" type="video/mp4"> <meta itemprop="name" content="Name of the video"> <meta itemprop="description" content="Description of the video..."> <meta itemprop="duration" content="PT1M33S"> <meta itemprop="thumbnail" content="my-video-thumbnail-path.jpg"> </video> Share Improve this answer Follow edited Jan 17 at 9:39 ixany 5,9909 gold badges51 silver badges71 bronze badges answered Aug 27, 2020 at 10:38 Marco PanichiMarco Panichi 1,1791 gold badge20 silver badges31 bronze badges 1- 7 Any non-<source> and non-<track> content inside the <video> tag should only be a replacement for the video and not supplemental to it — it’s only intended for browsers that don’t support the video element. (kindof like <noscript>.) The spec even says “this content is not intended to address accessibility concerns.” – chharvey Commented May 25, 2023 at 21:03
Your Answer
Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Draft saved Draft discardedSign up or log in
Sign up using Google Sign up using Email and Password SubmitPost as a guest
Name EmailRequired, but never shown
Post Your Answer DiscardBy clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Not the answer you're looking for? Browse other questions tagged
or ask your own question.- The Overflow Blog
- The app that fights for your data privacy rights
- Your docs are your infrastructure
- Featured on Meta
- More network sites to see advertising test
- We’re (finally!) going to the cloud!
- Call for testers for an early access release of a Stack Overflow extension...
Related
2 HTML 5 Video Tag 1 Dynamic Text in HTML5 Video 9 HTML5 video: possible to place regular html content over video 2 video tag of html5 1 html 5 video element 0 Video element in HTML5 41 Add text above HTML5 Video 0 Video element in JavaScript 3 Add text to play button in Video.js 0 H1 Text Above HTML5 VideoHot Network Questions
- What are μ,~ in the testing logs for foundry
- Is the A321 XLR really necessary to fly MAD-BOS?
- How to protect against fake gold bars?
- Uk exhibition pass query impact
- How do different observers decide if they are looking at the same thing?
- Study("somewhere")
- Identifying parts of multipart line in QGIS
- See me Once, See me Twice #16
- Has -な become more common recently
- Displaying text side-by-side with pie chart
- Student is almost always late, and expects me to re-explain everything he missed
- Short story about a man living In an apartment who's curious about his neighbor who turns out to be a monster or demon
- Why do some claim that the law of non-contradiction is non-trivially unprovable?
- C# basic calculator
- Missile Impact Velocity
- Did Superdana manufacture a 66 AC outlet power strip/surge protector?
- What is the complexity of modulo order-finding problem on classical computer?
- Prove that the set of certain boundary points of a convex set is closed.
- Does the twin paradox hold in a universe that's empty except for the twins?
- Why did General Groves mention the baby delivery count here?
- Is my "escaping" wrong - or is it something else?
- Is Isaiah's suffering servant the prophet Jeremiah?
- Do referees get to see each other's reports?
- If every denomination is skeptical of every other denomination, why shouldn't non-Christian outside observers be skeptical of all denominations?
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
lang-htmlTừ khóa » Html5 Video Alt Text
-
Can We Use An Alt Attribute With The Video Tag? - Codecademy Forums
-
Media Alt Technologies - HTML Accessibility Task Force Wiki
-
Optimizing For Accessibility: Alt Text, Videos, Images & More - Moz
-
HTML Alt Attribute - W3Schools
-
The Video Embed Element - HTML: HyperText Markup Language
-
Alt Content For Html5 Video Tag Sucks - HTML & CSS - SitePoint Forums
-
Why Is There No Alt Attribute Associated With The Poster ... - GitHub
-
HTML Img Alt Tags For SEO Best Practice - Search Engines Love ...
-
Image ALT Tag Tips For HTML - Accessibility At Penn State
-
HTML5 Video Tag » The Definitive Guide [2022] | Bitmovin
-
Adding A Video Alt Tag - YouTube
-
Use Alt Attributes Appropriately On All Images | UCOP
-
Image Alternative Text - Directive Consulting
-
HTML | Alt Attribute - GeeksforGeeks