What exactly is a web page?You start your browser, Internet Explorer for example, and type in www.bigiron.com and then what happens? It must be some kind of voodoo right? No. Actually, it's pretty simple. Boring even.
HTMLThe first thing that happens is that the server which runs the web site returns some text. Here is a sample:
The text is called HTML. HTML stands for hypertext markup language. Basically, it contains words and some special tags. The tags look like this <tag>. They usually come in pairs. The start tag is <tag> and the end tag is </tag>. Everything in between is just text or other tags. For example, the "<p>My first paragraph.</p>" defines a paragraph with the text "My first paragraph.". The "p" stands for paragraph.
Your browser takes the HTML and formats it and displays it to you. Pretty simple right?
CSSWell, like everything else, the devil is in the details. HTML just says what is on the page but not how it should look. If you want to make your text large or use a specific font, then we need something called a cascading style sheet (CSS). CSS is another file that the server sends. This is a very simple example of a CSS file:
This particular example says make every "p" (or paragraph) element use the font "Times New Roman" and be 20 pixels tall.
Most browsers will let you view the source of a web page. Right click on a page and select "View source" and you can see exactly what the programmer has written.