audio : 사운드 파일 재생하기
| MP3 | Wav | Ogg |
IE | O | X | X |
파이어폭스 | X | O | O |
크롬 | O | O | O |
사파리 | O | O | X |
오페라 | X | O | O |
html)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0"> <title>Insert title here</title> </head> <body> <!-- autoplay : 자동으로 오디오 재생 controls : 컨트롤바 나타냄 loop : 반복재생 src : 경로 autobuffer : 사용자가 플레이하기전 미리 다운로드 할지 여부 --> <audio controls> <source src="images/sound.MP3" type="audio/mpeg"> <p>이 브라우저는 audio 요소를 지원하지 않습니다.</p> </audio> </body> </html> | cs |
결과
'IT > - 프로그래밍' 카테고리의 다른 글
HTML5/CSS3 canvas 로 원그리기 (0) | 2017.07.05 |
---|---|
HTML5/CSS3 canvas 로 line 그리기 (0) | 2017.07.04 |
HTML5/CSS3 video : 동영상 파일 재생하기 (0) | 2017.07.02 |
HTML5/CSS3 embed : url로 된 동영상 재생하기 (0) | 2017.07.01 |
HTML5/CSS select : 목록 선택상자 (0) | 2017.06.30 |