Musical+or+sitcom?

If I did not know better and wasn't a religious watcher of the sitcom I would have trouble determining whether this show is a musical or a sitcom. The characters always seem to be singing in at least every second episode. Here are a couple examples and just by the way my personal favourite would got to be nothing suits me like a suit and dream on Neil Patrick Harris is just an amazing singer. I also included some extra songs not from How I Met Your Mother (still them singing though).

media type="youtube" key="_TPFgRP0JIY" height="256" width="446" align="left" media type="youtube" key="5tSUm4SBHeI" height="224" width="503" align="right"

media type="youtube" key="rdDVUVUI-OE" height="258" width="447" align="left" media type="youtube" key="Im1nvbrd5DI" height="283" width="363" align="right"

media type="youtube" key="JQwsj6IRw2I" height="290" width="363" align="left"media type="youtube" key="HU1Gih0iJME" height="290" width="503" align="right"

media type="youtube" key="8yMmhha_G0A" height="315" width="420" align="left"media type="youtube" key="zf19FYXF9-c" height="315" width="420" align="right"

media type="youtube" key="H90MJTO4wZo" height="290" width="503" align="left"media type="youtube" key="5E2fMKRapj4" height="315" width="420" align="right"

media type="youtube" key="GF1b1pf9DRY" height="290" width="503" align="left"media type="youtube" key="mz8n2hzQ0t0" height="315" width="420" align="right"

media type="youtube" key="9-N3eu_HTDM" height="258" width="447" align="left"media type="youtube" key="NNfjgUYsMO8" height="258" width="447" align="right"

media type="youtube" key="b_3-vjvPiUU" height="315" width="420" align="left"media type="youtube" key="LqJxyuTMMog" height="315" width="420" align="right"

media type="youtube" key="BT1DZVn5h2Y" height="315" width="420" align="left"media type="youtube" key="MqmBAEdLIYU" height="290" width="503" align="right"

media type="youtube" key="-6S5caRGpK4" height="315" width="420" align="left"media type="youtube" key="EhXsJjVdj1E" height="315" width="420" align="right"

[] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] []
 * __Image and video source:__**