CSS
Cascading Style Sheets - Let's Style That HTML
Last updated
Cascading Style Sheets - Let's Style That HTML
Last updated
This is now the fun part. You going to style your page to look beautiful. In short, CSS adds colors to HTML Elements, indenting content, setting borders, etc.
Right, this entails embedding css in an HTML file(remember from HTML Basics). Examples:
CSS Example
Adding css on the head
tags in HTML
Inline CSS i.e. inside html single line
External file CSS. That's, create an a css file style.css
and add the css contents in it. Inside the HTML file, add the following line inside the head tags, so that css contents can be used.
Actually it depends with you. It's always advisable to use external file css. However, you can use inline css for quick formatting and in the header tags for small apps. Keep in mind that:
External stylesheet
Internal stylesheet
Inline stylesheet
Now that you have understood the basics of how to add the css in the HTML, lets get to know some important CSS stuff. esto es divertido(es) - This is fun.