Sunday, September 21, 2014

HTML and CSS


Okay! Let's define the HTML- CSS relationship. A simple HTML file looks like this. 




What if we wanna add some styles and make it goofy? Like this?




Or, scary (Halloween-ish)?



And, we'd like to give different styles to the same HTML file? Or perhaps, same style to different HTML files? That's when we need CSS! Let's define CSS now.. 



  • Cascading Style Sheets (CSS) is a style sheet language.
  • Styles define how to display HTML elements.
  • Styles are normally saved in external (separate) .css files. 
  • External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file!


No comments:

Post a Comment