Introduction
...................................................................................................................................................................
INLINE - Inline CSS adds styling to single HTML elements using a type of attribute of an element called <style>. They can be an advantage if you want a specific page to have a different type of CSS than others. But if not inline CSS must be applied to each HTML element you wish to style. This can be very time consuming.
...................................................................................................................................................................
INTERNAL- Means the code that is stored in the web page inside the head tag e.g. When using internal CSS, you must add a new tag, <style>, inside the <head> tag. If any CSS is used within the page it will inherit the formatting e.g. if the font colour is red everything will change. The HTML code below contains an example of <style>'s usage. When using internal CSS, you must add a new tag, style, inside the tags.
<head>
<style>
<style>
</head>
...................................................................................................................................................................
EXTERNAL-
The line below which is underlined is in HTML and put in between the <head> and </head> tag. The HTML code links to style sheet which then links to the style sheet code. HTML and CSS codes separate in the pages however they are link together using the underlined code below. External codes are easy to find and read which benefits the user. External CSS also allows you to manage the layout of the web page by only having to change it once for the whole web site and not for every single file.
<head>
<link rel="stylesheet" href="style.css">
</head>
...................................................................................................................................................................
Reference:
http://bit.ly/FlQ1D
http://www.w3schools.com/css/css_howto.asp
...................................................................................................................................................................
INLINE - Inline CSS adds styling to single HTML elements using a type of attribute of an element called <style>. They can be an advantage if you want a specific page to have a different type of CSS than others. But if not inline CSS must be applied to each HTML element you wish to style. This can be very time consuming.
<h1 style="font-size: 1.2em">
...................................................................................................................................................................
INTERNAL- Means the code that is stored in the web page inside the head tag e.g. When using internal CSS, you must add a new tag, <style>, inside the <head> tag. If any CSS is used within the page it will inherit the formatting e.g. if the font colour is red everything will change. The HTML code below contains an example of <style>'s usage. When using internal CSS, you must add a new tag, style, inside the tags.
<head>
<style>
<style>
</head>
...................................................................................................................................................................
EXTERNAL-
The line below which is underlined is in HTML and put in between the <head> and </head> tag. The HTML code links to style sheet which then links to the style sheet code. HTML and CSS codes separate in the pages however they are link together using the underlined code below. External codes are easy to find and read which benefits the user. External CSS also allows you to manage the layout of the web page by only having to change it once for the whole web site and not for every single file.
<head>
<link rel="stylesheet" href="style.css">
</head>
...................................................................................................................................................................
Reference:
http://bit.ly/FlQ1D
http://www.w3schools.com/css/css_howto.asp