from tkinter import * top = Tk() top.title("Aimtocode") text = Text(top) text.insert(INSERT, "Title.....") text.insert(END, "Description.....") text.pack() text.tag_add("Write Here", "1.0", "1.4") text.tag_add("Click Here", "1.8", "1.13") text.tag_config("Write Here", background="yellow", foreground="black") text.tag_config("Click Here", background="black", foreground="white") top.mainloop()