CSS (Cascading Style Sheets)
CSS are instructions to web browsers that determine many characteristics of web page elements such as text size, position of elements on the page, and effects that occur upon mouseover. CSS code can be placed in the header of an HTML page or in a separate file. Using a separate CSS file allows multiple web pages to call up the styles in that CSS file.
How do you add a style in HTML?
There are two ways to add style information. Either it can be embedded in the HTML document or it can be attached as a separate document.
Styling information can be implemented in three ways:
- Embedded style refers to using the style element in the document's head section.
- Inline styles, which refers to using the style attribute in the HTML start tag.
- External style sheet refers to using the link element pointing to an external CSS file.