Home | Programming | Html
There are three different ways you can include CSS on your website.
1 - Link to a .CSS file <head> <link rel="stylesheet" type="text/css" href="cssFileName.css" /> </head>
2 - Write the CSS between the head elements of your web page <head> <style type="text/css"> body {background-color: blue} h1 {color:white; font-size:12pt} p {margin-left: 10px} </style> </head>
3 - Mix the CSS with the HTML by using the style attribute of the HTML tags <p style="margin-left: 10px"> This paragraph will have a 10 pixel margin on the left! </p>
Article Source: http://www.writerdatabase.com
www.webdevnotes.com/how-to-insert-css-on-your-website/
Please Rate this Article
5 out of 54 out of 53 out of 52 out of 51 out of 5
Not yet Rated