If ϕ:A→B is a ring homomorphism then the image of a subring S⊂A is a subring ϕ(A)⊂B. Is the image of an ideal under a ring homomorphism also an ideal? The answer is negative. Let’s provide a simple counterexample.
Let’s take A=Z the ring of the integers and for B the ring of the polynomials with integer coefficients Z[x]. The inclusion ϕ:Z→Z[x] is a ring homorphism. The subset 2Z⊂Z of even integers is an ideal. However 2Z is not an ideal of Z[x] as for example 2x∉2Z.