The things you learn while studying code.
Source
seen from United States
seen from Philippines
seen from Argentina
seen from Türkiye
seen from India
seen from Netherlands
seen from United States
seen from Australia
seen from Philippines
seen from Pakistan

seen from United States
seen from United States
seen from India
seen from Netherlands

seen from United States

seen from United States

seen from United States
seen from Belgium
seen from Russia
seen from United States
The things you learn while studying code.
Source
New Post has been published on Devtoolsplus
New Post has been published on http://www.devtoolsplus.com/best-way-of-using-style-sheet/
Step 2: Best way of using style sheet
Step1: Css for beginner
There are three ways of using style sheet in web site. You can use one of them such as.
External style sheet
Internal style sheet
Inline styles
But we will learn css by using “External style sheet” because it is perfect system or best way of using stylesheet to be a web developer. Style sheet stays within <head>…</head> section.
How to attach style sheet with Html page?
No problem, it is easy to attach in html pages. To attach please create a new folder and create two files like
index.html
style.css
Now open the index.html file with your note pad or “web development tool Dreamweaver” and write the bellows code
<html> <head> <title>How to add style sheet in web page</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> </body> </html>
Here you can use another name of style.css as you like. But your style sheet should be stay in the same folder with your index.html file.
Step 3: Use of CSS background
New Post has been published on Devtoolsplus
New Post has been published on http://www.devtoolsplus.com/step1-css-for-beginner/
Step1: Css for beginner
Welcome to Easy CSS short course. I think if you complete my web design short course you will be a web developer within 10 days.
However I am starting here about CSS basic.
What is css?
The meaning of css is cascading style sheets. web site styles depends on CSS.
Use of style sheet:
You can use css style at 3 ways such as
Within HTML elements
Within <head>----</head>
External css file
Important: all the above style will be placed within <head>…..</head> section.
Learn befor Css:
You should learn basic advance html before learning css.
Css syntax:
Css syntax is built with 3 parts.
Selector
Property
Value
See the example of css syntax below
Selector {property: value; }
Real example
body {color:black;}
Here,
Selector = body
Property = color
Value = black;
You can use selector as a group like
h1, h2, h3, h4, h5, h6 {color: green;}
Class selector:
You can use various styles of same html elements through class selector. Suppose you want to use two color of Heading. Than you should define two classes such as type these bellows code in your text editor or Dreamweaver
<html> <head> <style type="text/css"> .color-1 { color:red;} .color-2 { color:blue;} </style> </head> <body> <h1 >This is read color heading</h1> <h1 >This is read color heading</h1> </body> </html>
Now save this file as class-style. html and open it through a web browser you will see the result like below.
Important:
(.) is class symbol
(#) is id symbol
All code will be written with small letter.
ID selector:
Id selector is similar with class selector. ID selector is indicted with (#) symbol. Please see the example of ID selector.
<html> <head> <style type="text/css"> .color-1 { color:red;} .color-2 { color:blue;} </style> </head> <body> <h1>This is read color heading</h1> <h1>This is read color heading</h1> </body> </html>
Now save this file as id-style.html and open it through a web browser you will see the result like below.
Important Note: you can not use same id more than one time in a page. But you can use same class many times in a page.
CSS comments:
If you use comments tag in css file it will hide from browser. It is very helpful to write some note. See the use of comment tag
/* write your comment here */
Step 2: Best way of using style sheet