Latest Post

How to use for CSS

How to use for CSS

How to use for CSS


CSS stands for Cascading Style Sheets.

CSS is saves a lot of type. It can control the layout of multiple web pages all at once.

CSS can we added to HTML elements in 3 type:
  • Inline - by using the style attribute in HTML and PHP elements.
  • Internal - by using a start <style> and end </style> element in the <head> section.
  • External - by using an external CSS file.

Inline CSS

An inline CSS is used to apply a unique style to a single HTML and PHP element.
This example sets the text color of the <p> element to blue.

Example: 
<p style="color:blue;">This is a Blue Heading</p>


Internal CSS

An internal CSS is used to define a style for a single HTML and PHP  page.
An internal CSS is defined in the <head> section of an HTML page, within a start <style> and end </style>element:

Example: 
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: pink;}
p    {color: red;}
</style>
</head>
<body>

<p>This is a paragraph.</p>

</body>
</html>


External CSS

An external style sheet is used to define the style for one or many HTML and PHP pages.
To use an external stylesheet, add a link to it in the <head> section of the HTML and PHP page:

Example: 
<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styles.css">
</head>
<body>

<p>This is a paragraph.</p>

</body>
</html>

13 comments:

  1. This code working fine..

    Thank you.

    ReplyDelete
  2. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites! Wordpress webshop laten maken

    ReplyDelete
  3. Yay google is my king assisted me to find this outstanding site! . new york web designs

    ReplyDelete
  4. Yay google is my world beater helped me to find this great web site ! . ny web design firms

    ReplyDelete
  5. Thank you for the sensible critique. Me and my neighbor were just preparing to do some research about this. We got a grab a book from our local library but I think I learned more from this post. I’m very glad to see such wonderful info being shared freely out there. ny web design firms

    ReplyDelete
  6. Fairly uncommon. Is likely to appreciate it for people who include community forums or anything, internet site theme . a tones way for the client to communicate. Excellent job.. new york web designs

    ReplyDelete
  7. Glad to be one of many visitors on this awing site : D. new york web designs

    ReplyDelete
  8. Black Ops Zombies Cheats and Strategy… [...]You can read all about it here.[...]… web design agency new york

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Hello. Great job. I did not expect this. This is a excellent articles. Thanks! san francisco design agency

    ReplyDelete
  11. A complete sententious blog, intended to impress people.
    German

    ReplyDelete
  12. You made some decent points there. I looked online for that problem and found most people goes coupled with with all your website. branding agency san francisco

    ReplyDelete
  13. hello there and thank you for your info – I have certainly picked up something new from right here. I did however expertise several technical issues using this site, as I experienced to reload the web site lots of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I’m complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Well I am adding this RSS to my e-mail and can look out for much more of your respective exciting content. Make sure you update this again soon.. san francisco brand agency

    ReplyDelete