Expect warm hospitality and plenty of halal food, usually without alcohol. Dress modestly with shoulders and knees covered, bring a card or a small gift, and follow your host's lead on seating and shoes. A wedding has a short religious contract (nikah) and a feast (walima); you are not expected to take part in any prayer.
A Muslim wedding centres on the nikah, the marriage contract, in which the groom offers the mahr (the bride's gift), the two agree in front of witnesses, and a short sermon is often given. The Prophet Muhammad ﷺ told Abd al-Rahman ibn Awf, who had just married, to hold a wedding feast, the walima, even with a single sheep, and he taught that anyone invited to a walima should go. So hospitality is part of the faith, and guests are honoured. The Quran speaks of marriage as love and mercy between two people.
The mood is joyful. The Prophet ﷺ came to the wedding of Rubayyi' bint Mu'awwidh, where girls were beating the daff, a frame drum, and singing, and, at another wedding, he remarked to Aisha that there had been no amusement with the bride, for the Ansar like amusement. Families differ: some have music and dancing, some only singing or recitation, some seat men and women separately and others together, and some are lavish and some simple. Weddings from Arab, South Asian, Turkish and African families can look very different and may begin late and run long. If you are unsure, ask the host, and if there are separate areas for men and women, it is out of modesty and not a statement about you.
Eid is the other big occasion. It begins with a special prayer in the morning, followed by visiting, family meals, sweets, new clothes and money or presents for children. As a guest you can say 'Eid Mubarak', bring sweets or dates, and join the meal. If you attend the prayer out of interest, stand at the back and watch quietly, or follow along as you wish. Nobody expects you to take part in anything that conflicts with your own faith.