Get the latest Flash player.
Summary: How to add color to an HTML document; learn how to build your own website in this free computer programming video.
Views: 894 | Tags: computer, digital, vidoes, computers, programs, html, programming, code, coding
About the Expert
Dorian Winterfeld Dorian Winterfeld has a Bachelor of Science Degree in Computer Science and has general web and database programming primarily in Perl and SQL on Windows and U... read more
Hi, I'm Dorian Winterfeld on behalf of Expert Village. I've been doing web programming for about ten years, and today we are going to cover the basics of HTML. Okay, now we have the very basics of our web page. We have the opening and closing HTML, the head, the title, the body, and the content of our web page, and we've bolded it and we've made it bigger. Now I'm just going to show you a few other things, easy things that you can do to change the look of your web page. You'll notice the background of the web page, by default, is white. Let's say we wanted to change the background to another color, this is how you do it. You add what's called an "attribute" to the body tag, and this is how you're going to add an attribute. In this case our attribute is going to be "bicolor", for background color. So we're going to say "bicolor equals open quote, green, close quote." Now, if you look at it, the body tag is still open, it still has its closing tag, but now it has an attribute saying the background color is going to be green. If we save the page, and then we hit reload, there it is, it's green. Now we could make this be blue, there basically is every color you can think of you can make the background of your web page. The other way to represent colors is with hex code, and you can get the hex code for every color under the rainbow and beyond off of the internet. We're not going to go into that right now, but you can see how the basic colors are there, and again, the default is white, so we're going to go back, get rid of that. We're going to go save it, and then I'm going to go back to the default, and the default is white, and there we go.