In order to place/position html element we
use CSS (cascading style sheets).
Three different ways to add style in html:
Using Inline
CSS:
It
is used to apply CSS to a single HTML element using the style attribute of an
HTML element.
This is a Blue Heading
Using Internal CSS:
It mainly used to define a CSS for an entire
HTML page, or included html under same body. It can be included in the <head>
or <body> tab, it is mostly preferred to use the CSS in <head> so
that the styles are loaded first before the element is created.
or
Using External CSS:
It is mainly used to include external CSS
file in the html page. This is the most preferred way for adding style to html,
as it is included in the common CSS file it resolves lot of issue related to
style overwriting and the html code becomes more maintainable. It is included with
a <style> tag inside the <head> or <body> tag.