mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): correct MP3 MIME type (#65576)
This commit is contained in:
+14
-14
@@ -17,7 +17,7 @@ Nearly every file format has a MIME type. HTML, for example, has the type `text/
|
||||
|
||||
The MIME type can tell an application, such as your browser, how to handle a specific file. In the case of audio and video, the MIME type indicates it is a multimedia format that can be embedded in the web page.
|
||||
|
||||
An MP3 file has the MIME type `audio/mp3`. An MP4, however, can have the MIME type `audio/mp4` OR `video/mp4`, depending on whether it's a video file or audio-only. This distinction tells the browser how to handle the file.
|
||||
An MP3 file has the MIME type `audio/mpeg`. An MP4, however, can have the MIME type `audio/mp4` OR `video/mp4`, depending on whether it's a video file or audio-only. This distinction tells the browser how to handle the file.
|
||||
|
||||
There are plenty of other file formats, such as the waveform format WAV, the multipurpose OGG, WMV for the Windows media player, the open source MKV, and many more.
|
||||
|
||||
@@ -39,7 +39,7 @@ Multimedia Internet Media Extension.
|
||||
|
||||
### --feedback--
|
||||
|
||||
MIME type was originally for mail.
|
||||
Review the part where MIME is defined.
|
||||
|
||||
---
|
||||
|
||||
@@ -47,7 +47,7 @@ Multiple Internet Mail Extensions.
|
||||
|
||||
### --feedback--
|
||||
|
||||
MIME type was originally for mail.
|
||||
Review the part where MIME is defined.
|
||||
|
||||
---
|
||||
|
||||
@@ -59,7 +59,7 @@ Media Information and Metadata Encoding.
|
||||
|
||||
### --feedback--
|
||||
|
||||
MIME type was originally for mail.
|
||||
Review the part where MIME is defined.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -75,7 +75,7 @@ To compress file sizes for faster internet transfer.
|
||||
|
||||
### --feedback--
|
||||
|
||||
A MIME type indicates the type of file.
|
||||
Review the part that explains what a MIME type is used for.
|
||||
|
||||
---
|
||||
|
||||
@@ -83,7 +83,7 @@ To encrypt files for secure transmission.
|
||||
|
||||
### --feedback--
|
||||
|
||||
A MIME type indicates the type of file.
|
||||
Review the part that explains what a MIME type is used for.
|
||||
|
||||
---
|
||||
|
||||
@@ -95,7 +95,7 @@ To convert files between different formats
|
||||
|
||||
### --feedback--
|
||||
|
||||
A MIME type indicates the type of file.
|
||||
Review the part that explains what a MIME type is used for.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -109,21 +109,21 @@ What is the MIME type for an MP3 file?
|
||||
|
||||
`audio/mpeg`
|
||||
|
||||
### --feedback--
|
||||
|
||||
An MP3 file cannot contain video.
|
||||
|
||||
---
|
||||
|
||||
`audio/mp3`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Review the part where the MIME type for MP3 is discussed.
|
||||
|
||||
---
|
||||
|
||||
`video/mp3`
|
||||
|
||||
### --feedback--
|
||||
|
||||
An MP3 file cannot contain video.
|
||||
Review the part where the MIME type for MP3 is discussed.
|
||||
|
||||
---
|
||||
|
||||
@@ -131,8 +131,8 @@ An MP3 file cannot contain video.
|
||||
|
||||
### --feedback--
|
||||
|
||||
An MP3 file cannot contain video.
|
||||
Review the part where the MIME type for MP3 is discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
2
|
||||
1
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ The `Audio()` constructor has properties just as it has methods. Those propertie
|
||||
|
||||
- **MIME type**: A MIME type, standing for Multipurpose Internet Mail Extensions, is a standardized way to programmatically indicate a file type. The MIME type can tell an application, such as your browser, how to handle a specific file. In the case of audio and video, the MIME type indicates it is a multimedia format that can be embedded in the web page.
|
||||
- **`source` Element**: This is used to specify a file type and source - and can include multiple different types by using multiple source elements. When you do this, the browser will determine the best format to use for the user's current environment.
|
||||
- **MP3**: This is a type of digital file format used to store music, audio, or sound. It's a compressed version of a sound recording that makes the file size smaller, so it's easier to store and share. MP3 has the widest browser support and the MIME type of `audio/mp3`.
|
||||
- **MP3**: This is a type of digital file format used to store music, audio, or sound. It's a compressed version of a sound recording that makes the file size smaller, so it's easier to store and share. MP3 has the widest browser support and the MIME type of `audio/mpeg`.
|
||||
- **MP4**: An MP4 is a type of digital file format used to store video and audio. It serves as a container that holds both the video (images) and the sound (music or speech) in one file. An MP4, can have the MIME type `audio/mp4` OR `video/mp4`, depending on whether it's a video file or audio-only.
|
||||
- Other formats are `WMV` which is associated with the Windows Media Player app, `OGG`, `MKV`, `AVI`, and more.
|
||||
|
||||
|
||||
@@ -2372,8 +2372,8 @@ function pauseAudio() {
|
||||
|
||||
- **MIME type**: A MIME type, standing for Multipurpose Internet Mail Extensions, is a standardized way to programmatically indicate a file type. The MIME type can tell an application, such as your browser, how to handle a specific file. In the case of audio and video, the MIME type indicates it is a multimedia format that can be embedded in the web page.
|
||||
- **`source` Element**: This is used to specify a file type and source - and can include multiple different types by using multiple source elements. When you do this, the browser will determine the best format to use for the user's current environment.
|
||||
- **MP3**: This is a type of digital file format used to store music, audio, or sound. It's a compressed version of a sound recording that makes the file size smaller, so it's easier to store and share. An MP3 file has the MIME type audio/mp3
|
||||
- **MP4**: An MP4 is a type of digital file format used to store video and audio. It serves as a container that holds both the video (images) and the sound (music or speech) in one file. An MP4, can have the MIME type audio/mp4 OR video/mp4, depending on whether it's a video file or audio-only.
|
||||
- **MP3**: This is a type of digital file format used to store music, audio, or sound. It's a compressed version of a sound recording that makes the file size smaller, so it's easier to store and share. An MP3 file has the MIME type `audio/mpeg`.
|
||||
- **MP4**: An MP4 is a type of digital file format used to store video and audio. It serves as a container that holds both the video (images) and the sound (music or speech) in one file. An MP4, can have the MIME type `audio/mp4` OR `video/mp4`, depending on whether it's a video file or audio-only.
|
||||
|
||||
## codecs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user