add style in html div code example Example: style attribute in html <p style="color: red; /* CSS */">Example</p>