Where can I include text in CSS?

Ozzie August 5, 2011
Pinterest Stumbleupon Whatsapp

I was reading the article on CSS and they showed examples of codes. But where would I put the text (what I’m trying to write) in the code itself? Thanks in advance!

  1. herbchiltos
    August 6, 2011 at 6:36 am

    there are two type of put a css coding in html tagging 1- in line 2- external sheet.

  2. Jeffery Fabish
    August 5, 2011 at 2:32 pm

    You put the CSS either in the HTML page itself (easiest) or in an external file (neatest).

    Let's say this is your current HTML file:
    <!--

    Hello World!

    I am an HTML file

    -->
    Now you want to add CSS? Put it in between the "" and "" tags (preferably after your titles and META tags). So a revised HTML file with CSS would look like this:

    Hello World!h1 {font-size:20px;}p {font-size:15px;}I am an HTML fileand I love youA great place to learn any web programming is "W3 Schools":http://www.w3schools.com/css/default.asp