HTML styles is basically achieved with CSS, Cascading Style Sheet, which is another markup language used to add style to HTML elements.

There are several ways CSS is used with HTML.

  • a CSS file(s) can be made separate from the HTML file(s) with a link(s) in the HTML header to access the CSS files(s)
  • the CSS code snippet(s) can be added in the style element to the header of individual HTML file(s)
  • CSS styles can also be added directly in the style attribute of individual HTML elements