How to hide music in html

藏色散人
Release: 2023-01-03 09:31:38
Original
6967 people have browsed it

htmlHow to implement music hiding: First create and open the corresponding HTML sample file; then pass "" just hide the music player.

How to hide music in html

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer

HTML5 hidden music player

In HTML5, beginners often use the audio tag combined with the source tag

<!--music-->
<audio controls="controls">
 <source src="song.mp3" type="audio/mp3" />
</audio>
Copy after login

The following uses the embed tag, which can hide the music player

<!--music-->
<section class="music">
<embed src="video/song.mp3" autostart="true" loop="true" hidden="true"></embed>
</section>
Copy after login

Recommended learning: " HTML video tutorial

The above is the detailed content of How to hide music in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template