In general there are 3 ways to laying CSS code into the HTML that is:
- First: Inline stylesheet that is laying or property directly into the HTML tag that is between <body> ... ... </ body>. example:
<body>
<p style="color:#ff0000"> Learning CSS </ p>
</ body>
- Second: Internal stylesheet element that is laying between CSS STYLE tag in the HEAD tag.
example:<head>
<style type="text/css">
p (color: # ff0000;)
</ style>
</ head> - Third: External stylesheet meletakannya that is outside the special HTML file, that is the way to save the file extensi. Css
example: make the code as below and save the file with the name style.cssp (color: # ff0000; font-size: 18px;)
If you want to display all the information that is in the style.css file into HTML, you must call the file with a type name to link to the LINK tag in the HEAD tag.
example:
<head>Among the three ways described above, in general, Web Depelover more ways to use 3 because the file management easier.
<link href="style.css" type="text/css" rel="stylesheet"/>
</ head>
Well, think about as it is and understanding how to create CSS (the author). But for those who like a smart and experienced about CSS, it may have another, I also do not know lho ... (the author is still learning as well) because the language may be different but means the same aja kok.
You Agree? Read More..