A six foot, preferably solid fence is the best deterrent, they won't jump in if they can't see, but not very practical for most of us. So here are details of plants they are not inclined to eat, it's not a complete list.
Fuzzy or hairy foliage:
Deer don’t like fuzzy or hairy textures against their tongues. Deer-resistant garden plants in this category include Lambs Ear (Stachys), Lady’s Mantle (Alchemilla), Siberian Bugloss (Brunnera), Flowering Tobacco (Nicotiana), Tuberous Begonias, Heliotrope, Yarrow (Achillea), Ageratum, Poppies, Purple Top Vervain (Verbena Bonariensis), and many others.
Also disliked by most deer are plants with spines on their leaves. Though some deer learn to eat around the thorns of rose canes to nibble off the leaves, they generally avoid plants with spines on the leaves themselves. In this category are Bear’s Breeches (Acanthus), Globe Thistle (Echinops), Cardoon, and Sea Hollies (Eryngium), among others.
Heavily fragranced foliage:
Plants with very aromatic foliage confuse the olfactory system and discourage feeding, making them the perfect addition to deer proof gardens. Many flowering herbs, including sage, thyme, lavender, and oregano, fit in this group. Other plants resistant to deer with fragrant foliage are catmint (Nepeta), hyssop (Agastache), Artemisia, Russian sage (Perovskia), boxwood (Buxus), Salvias, tansy (Tanacetum), bee balm (Monarda), mountain mint (Pycnanthemum), dead nettle (Lamium), blue mist shrub (Caryopteris), dill, lantana, and calamint (Calamintha). Deer resistant annual flowers include salvias.
Toxic foliage:
All ferns contain compounds that deer can’t tolerate, so do false indigo (Baptisia), bleeding hearts (Lamprocapnos/Dicentra), daffodils, Helleborus, monkshood (Aconitum), spurges (Euphorbia), and poppies (Papaver). Use caution, though, because some of these plants are also toxic to humans and pets who might sample a bite.
Leathery or fibrous foliage:
Plants with leaves that are tough to digest are also typically avoided by deer. Pachysandra is in this category, as are most irises, wax and dragonwing begonias, elephant ears (Colocasia and Alocasia), peonies, and some viburnums (including leatherleaf and arrowwood).
Grasses:
Deer much prefer to eat flowering plants and woody plant shoots over grasses, though a small percentage of a deer’s diet consists of young, succulent grasses. Deer cannot survive on grasses alone, and they’ll mostly consume even young grasses as a last resort. Because of this, ornamental grasses are a great plant choice.
text based on info from Savvygardening
Fuzzy or hairy foliage:
Deer don’t like fuzzy or hairy textures against their tongues. Deer-resistant garden plants in this category include Lambs Ear (Stachys), Lady’s Mantle (Alchemilla), Siberian Bugloss (Brunnera), Flowering Tobacco (Nicotiana), Tuberous Begonias, Heliotrope, Yarrow (Achillea), Ageratum, Poppies, Purple Top Vervain (Verbena Bonariensis), and many others.
Also disliked by most deer are plants with spines on their leaves. Though some deer learn to eat around the thorns of rose canes to nibble off the leaves, they generally avoid plants with spines on the leaves themselves. In this category are Bear’s Breeches (Acanthus), Globe Thistle (Echinops), Cardoon, and Sea Hollies (Eryngium), among others.
Heavily fragranced foliage:
Plants with very aromatic foliage confuse the olfactory system and discourage feeding, making them the perfect addition to deer proof gardens. Many flowering herbs, including sage, thyme, lavender, and oregano, fit in this group. Other plants resistant to deer with fragrant foliage are catmint (Nepeta), hyssop (Agastache), Artemisia, Russian sage (Perovskia), boxwood (Buxus), Salvias, tansy (Tanacetum), bee balm (Monarda), mountain mint (Pycnanthemum), dead nettle (Lamium), blue mist shrub (Caryopteris), dill, lantana, and calamint (Calamintha). Deer resistant annual flowers include salvias.
Toxic foliage:
All ferns contain compounds that deer can’t tolerate, so do false indigo (Baptisia), bleeding hearts (Lamprocapnos/Dicentra), daffodils, Helleborus, monkshood (Aconitum), spurges (Euphorbia), and poppies (Papaver). Use caution, though, because some of these plants are also toxic to humans and pets who might sample a bite.
Leathery or fibrous foliage:
Plants with leaves that are tough to digest are also typically avoided by deer. Pachysandra is in this category, as are most irises, wax and dragonwing begonias, elephant ears (Colocasia and Alocasia), peonies, and some viburnums (including leatherleaf and arrowwood).
Grasses:
Deer much prefer to eat flowering plants and woody plant shoots over grasses, though a small percentage of a deer’s diet consists of young, succulent grasses. Deer cannot survive on grasses alone, and they’ll mostly consume even young grasses as a last resort. Because of this, ornamental grasses are a great plant choice.
text based on info from Savvygardening