These lessons will take you through the basics of the CSS language.
After over four months in the making (and almost a year on the idea board), C2D has finally launched! This site is focused on teaching web site design, coding, and common sense to and from anyone who wants be a part of our community!
Founded on two basic principles: Love the Lord your God with all your heart, soul, mind and strength and Love your neighbor as yourself. Because of this, the people we teach, help, and learn from are our family - and together we will change the face of the Internet!
Bring on the PHP, XHTML, CSS, Photoshop, AutoCAD and more!
Happy New Year!
Are you sick of pop-ups, light-weight pornographic ads, and other junk that fills the sites you need to use? Do you want to prevent as much as you can for as little money as possible? Me too. Welcome to C2D’s anti-junk tutorial.
I am a die-hard CSS fan as much as the next guy, but when has CSS gone to far? Well, one when you are making a cross-browser compatible site for ANYONE in the world. (Sorry, but CSS is still *new* to Grama's Browser.) I like this article by daniel bulli. It really sums the whole thing up. ;]
Well, I was reading the first chapter of Colossians (Colossians 1) and I was surprised by how much it covered. It is a pretty extensive start for one of Paul's letters. One of my favorite parts is verse 9-10, where Paul gives a great example of something we should ask God for - an understanding of what he wants to do in your life, and spiritual wisdom.
Today we are going to add links to our code! After all, where would the web be without links?! They are the most important (I think) part of HTML!
A link looks like this:
<a href="LOCATION">LINK NAME</a>I'm sorry but I don't know why they start with an "a", lol. I think it just stands for "anchor". However, I am pretty sure that the "href" stands for "Hypertext Reference" but don't quote me on that...
Now besides the actual code there are two parts to the link - the "LOCATION" and the "LINK NAME". Most links are references to pages on the same site, so the location would look like this:
<a href="page2.html">Page 2</a>The other type is a link to a different site:
<a href="http://www.code2design.com">Code2Design</a>Now that we know how to wield the POWER of PHP's file API lets kill some orc's! :twisted:
uh.. wait...that's not, *quite* right...
*ahem
Actually, what I was going to say is:
Now that we know how to read and write to files let me show you how to include other PHP files in your scripts.
If you have ever coded in another language I am sure your saying "it's about time!". After all, including other files will become the basis for many of your scripts. If you think about it, it makes more sense to have a several different files that you can include if you want - as appose to having ONE huge file.
There are two main functions for including files into your script:
include();
require();
Basically, the only difference is that if include can't get the file you will get an error, but the script will still run. However, if require can't get the file your script will terminate with an error. Therefore, it is better to use include if you still want your script to keep going even if the file can't be opened.
So to get you used to including files I want you to open your text editor and type the following into it:
Now that we know how to read and write to files, lets make something. Do you remember the simple "Chat System" from lesson 11? Lets turn it into a REAL chat system. (One that won't forget the messages!) So open SciTE (or Notepad) and type the following into it:
(Do NOT copy and paste the code! You need to learn it and typing it will help you to focus on it.)
";
$endofpage = "";
$form = "