Having used other Video Editors it seems like the options Blender offers for selecting what container format and what codec format you want to use for your video is confusing.
The above screenshot shows there are 3 Buttons to choose your container and codec, which are two things, which begs the question, what is the difference between 1 and 2? Is 2 the encoder to use? Then why is Blender saying "file format" for the hint boxes of each?
This causes some confusion in practice as well. As an example, Youtube needs a video using the H264 codec and MP4 container for best quality results after it will convert it.
If you choose "H.264" for 1, ...
... "MPEG-4" for 2 and "H.264" for 3 you get a file with the .mp4 extension.
... "H.264" for 2, then the codec selection box 3 is completely hidden and the extension is then .avi. How does that make sense? And why is 3 hidden?
... "Quicktime" for 2 and "H.264" for 3 you get a file with the .mov extension.