set style inline html code example Example 1: how to add css to html <link rel="stylesheet" href="hi.css"> Example 2: html inline style <element style="css">