Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8932495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:19:38+00:00 2026-06-15T09:19:38+00:00

How do I put a < video > in <li><a href=#><p>Ethnics</p></a></li> Using the video

  • 0

How do I put a < video > in <li><a href="#"><p>Ethnics</p></a></li>

Using the video as below:

<video width="320" height="270" controls>
<source src="steve_powell_320_hard.mp4"  type="video/mp4; codecs=avc1.42E01E, mp4a.40.2">
<source src="steve_powell_320_hard.webm" type="video/webm; codecs=vp8, vorbis">
<source src="steve_powell_320_hard.ogv"  type="video/ogg; codecs=theora, vorbis">
</video>

UPDATE for Šime Vidas
HTML

<ul class="lists_video" id="list">
        <li><a href="#" class="video_trigger">Ethnics</a><video width="320" height="270" controls>
                    <source src="video/steve_powell_320_hard.mp4"  type="video/mp4; codecs=avc1.42E01E, mp4a.40.2">
                    <source src="video/steve_powell_320_hard.webm" type="video/webm; codecs=vp8, vorbis">
                    <source src="video/steve_powell_320_hard.ogv"  type="video/ogg; codecs=theora, vorbis"></video></li>
        </ul> 

CSS and JS as suggested by Šime Vidas with sample codes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:19:40+00:00Added an answer on June 15, 2026 at 9:19 am

    HTML:

    <ul id="list">
        <li>
            <a href="#" class="video_trigger">Ethnics</a>
            <video width="320" height="270" controls>
                <!-- your <source> elems here -->
            </video>
        </li>
    </ul>
    

    CSS:

    #list video { display: none; }
    

    JavaScript:

    $( '#list' ).on( 'click', '.video_trigger', function () {
        $( this ).siblings( 'video' ).show();
    });
    

    So, you hide the VIDEO element(s) initially with CSS. Then, when a .video_trigger anchor is clicked, its corresponding VIDEO element is displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

inside index.html.erb there is the following code <video width=320 height=240 controls=controls> <source src=truffle1.mp4/> Your
i have a VideoDisplay <mx:VideoDisplay id=myVideo width=100% height=100%> </mx:VideoDisplay> and i put the video
I am trying to put an FLV video on a website. I tried using
How do I put server-side webcam video on my web page? I'm using PHP,
How can I put Windows-based video formats, or even better YouTube's MP4 format, from
I'm trying to put a YouTube video source into the HTML5 <video> tag, but
Via SWFobject and AJAX I put in a video to a certain <div> .
I have a html/css based menu and I'm trying to put a flash video
What was the best video/session at Mix 2010? The videos have been put up
I'm trying to find a way to save a video file. Initially I'd put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.