writing css in html attribute code example Example: style.css in html put in the <header> tag: <link rel="stylesheet" href="style.css">