e come faccio a metterlo se é un tag html e nn php? visto che devo metterlo in un if!

mi oui fare l'asempio di come lo posso mettere?