Meaning of the word "optional subject" in English

What does "optional subject" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

optional subject

US /ˈɒpʃənəl ˈsʌbdʒɪkt/
UK /ˈɒpʃənəl ˈsʌbdʒɪkt/

Noun

a subject that a student can choose to study, as opposed to a compulsory subject

Example:
In high school, art was an optional subject for me.
Students must choose at least two optional subjects.