Google uses two divs that are absolutely located on top of the input field. The first div contains the word stackoverflow, and the text is light gray. The second dvi contains "stacko" and the text is black.
If you check the source, find divs with class = "gsfi".
source share