Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.
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!
2011-08-06 06:36:00
there are two type of put a css coding in html tagging 1- in line 2- external sheet.
2011-08-05 14:32:00
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