Will the 50mm 1.8D fit the Nikon D3100?

So i just got my Nikon D3100 a month ago, I'm loving it and i learned most of what's essential. Now the kit lens is good but it's not durable, the build quality is totally not good and the glass is definitely not that great, So i was thinking about investing in a better lens, and the 50mm 1.8D seemed like a better choice, it's cheap and it's build quality is great, not mentioning the ability to step down to an aperture of 1.8, which gives a more shallow DoF, which is exactly what i need! So, before i would buy the lens, i watched some videos on Youtube and some guy in one of the videos said that Nikon produced a 1.8G version because the 1.8D could NOT be mounted to the Nikon D3100, is it true?
Can i mount the 1.8D on the Nikon D3100?

Yes the 50mm f1.8 WILL work on your D3100 but it will not autofocus, you will have to manually focus it. There's a new AF-S version of the 50mm f1.8 but it's much more expensive.
There's a table here;
http://www.bythom.com/lensacronyms.htm
which shows which older Nikon lenses are mountable & which will focus/meter on your D3100.
- Will a vintage nikon nikkor pro 52 0 1a-50mm 1.8 camera lens fit a nikon d3100?
- Nikkor 50mm AF-S 50mm f/1.4G or AF 50mm f/1.8G?
- Can 28-200mm Sigma lens to fit Nikon 35mm SLR cameras fit on nikon d90?
- Will a Nikon 50mm f/1.8G AF-S fit my Nikon D3200?
- Will the Nikon 50mm f/1.8D AF Nikkor Lens fit on the Nikon F camera?