Accommodations range from tent & camp sites, RV sites, covered campsites, tent cabins and hotel rooms. Make reservations a long time in advance at nps.gov (there are many rules & regulations)
The Ahwahnee Hotel is a luxury resort. The Yosemite Lodge at the Falls is a family hotel/motel. Curry Village has tent cabins and some rooms as well. There are covered camp sites, tent sites and rv sites for the experience of “roughing it”.
The historic Wawona Hotel and Tuolumne Meadows Lodge (tent cabins/campsites only) are inside the park on the rim of the valley. Near Wawona is the Mariposa Grove of Giant Sequoia Redwood Trees and skiing in winter at Badger Pass. Toulomne Meadows and Tenaya Lake are worth the trip when the roads are open. There's a grove of Giant Sequoias there as well.
There are also number of hotels, condos for rent, cabins and campgrounds just outside the park too.