Helloi want to put a play/pause button on a html5 video tag. Any suggestions?

Recommended Answers

I was following you along till I read the word "tag" in your question. In the past I used https://www.google.com/search?client=opera&q=play%2Fpause+button+on+a+html5+video for examples. But why you put tag in your question eludes me.

Jump to Post

All 4 Replies

Oh man i think you got the point. You are like a hero to me. https://www.w3schools.com/TAGS/default.ASP Anyway i don't think this -post? thread? inlisting? topic? Whatever word suits you - is about the meaning of tag.

Semantics!!

It's an HTML5 video element. The element is represented by an HTML tag.

Google says you can use the onclick handler as so: onclick="this.paused ? this.play() : this.pause();" to toggle between playing/pausing when clicking on the video.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.