use alt in css code example Example: how to add css to alt attribute text body {background:#000022} img {color:#fff}