Ah, in the U.S. that's a "certificate of deposit" (CD). You might earn 2.75% for 1 year or 3.10% for 5 years.
There's many types of bonds... U.S. Treasuries backed by the U.S. government (considered the safest investment in the world), investment grade corporate bonds, "high yield" (junk) bonds, and even bonds backed by mortgages. The most common for investing is probably a "total bond market" fund that combines all of them. An example would be Vanguard Total Bond Market ETF (BND) which has an SEC yield of 3.13%.
If you favor access to the money, then a bond fund provides that better. But you can lose some money when interest rates go up, and people need a discount before they'll purchase older bonds (since they have a lower yield). If that's a concern, you could go with short-term bond funds, where they have the smallest impact to interest rate changes (but also pay the smallest amount of yield).