Post tutorial Report RSS Creating a website

Use HTML and CSS to create a simple mod site instead of relying on a template site.

Posted by on - Basic Website

[page=Introduction]
Many mods have fallen to the horrors of freewebs.com. Their owners will claim that they do not have the skills to create a site. Well, if you don't wish to take the time to make a good site then you most likely don't have the proper amount of dedication to your mod.

So, to help those smart people who will say NO to Freewebs.com I've created this tutorial.

NOTE: I will not cover all the basics of HTML, so you may want to read a HTML basics tutorial before starting.

[page=Starting and Tables]
One of the most basic and most used methods for site design is tables. Tables allow you to have content divided into columns and rows. Let's start a new HTML document. Open up notepad and enter the following code:



Your Mod Name Here


tags, appears in the top bar of your browser. We just created a blank HTML document that will recieve style data from style.css in the same folder. Remember to replace "Your Mod Name Here" with the name of your mod. The text withing the

Now we are going to add the tables. Add this code between the tags:

 


   



This will give you a table stucture somewhat like this:

User Posted Image

NOTE: I added the black background and text. Your will be on white without text.

Save this notepad file as "Index.html"You have finished the first step, on to CSS (I don't mean Counter-Strike: Source n00bs :P).

[page=Setting up the CSS file]
Now we will write A Cascading Style Sheet (CSS) file. This tells the page color, location, size, ect.

Open a new file in notepad and write this:

body { 
  background-color: Black;
  font-family: Verdana; 
  font-size: 14px; 
  color: White; 
  }
  
  p { 
  margin-left: 20px;
  margin-right: 20px;
  } 
  
  a:link {
  color: #ffffff;
  text-decoration: none;
  }
  
  a:visited {
  color: #CCCCCC;
  }
  
  a:hover {
  color: #ffff;
  text-decoration: underline;
  }
  
  font.header {
  font-size: 40;
  font-color: Yellow;
  text-align: center;
  }
  
  font.newstitle {
  font-size: 25;
  }
  
  font.poster {
  font-size: 11px;
  }
  
  td
  { 
  vertical-align: top
  }  
  
  


I'm not going to explain what this all means, but by scanning though you should be able to figure it out. Feel free to mess with font size, color, family, ect.

Save this as "style.css" in the same directory as "index.html."

[page=Adding the Content]

Now you are going to add the text and finish up the basic webpage. Change the code between the tags to this:

 

Header




 


News Post Title

By Salohcin :: 1/2/07

News goes here.



Footer


This basically added text into the tables using the styles defined in the CSS file. Now you can easily change the style from the .CSS without even touchiing the HTML. Your page should look somewhat like this depending on the changes you made to the style:

User Posted Image

Again, I won't explain all the HTML, but instead leave it to you to figure out what everything does and then change it to your purposes.

Thank you for reading, and good luck with your mod!

Post comment Comments
Sallycin Author
Sallycin - - 635 comments

Gah, Babuza claims the "Starting and Tables" works fine, but I also has an issue with it not loading all the way. Anyways, I purposely made it a bit vague on details, so the reader would put more thought into it.

Reply Good karma+1 vote
Kiith-Somtaaw
Kiith-Somtaaw - - 1,067 comments

Seems simple enough with a relatively solid layout, but it seems a little too vague with many of the details of actually making a website.
The 'Starting and Tables' section seems to be incomplete or something as well.

Reply Good karma Bad karma+1 vote
Spector
Spector - - 511 comments

Perhaps I can right an more detailed tutorial on building and maintaining websites sometime later to complement this.

Reply Good karma Bad karma+1 vote
Sallycin Author
Sallycin - - 635 comments

Cool, this is a pretty poor tut now that I look back on it. I should write one about divs. divs>tables.

Reply Good karma+1 vote
i_speel_good
i_speel_good - - 88 comments

Where are we supposed to find a forum and an actual hoster?

Reply Good karma Bad karma+1 vote
i_speel_good
i_speel_good - - 88 comments

for some reason the news appear after the date, not below the title

Reply Good karma Bad karma+1 vote
Midnitte
Midnitte - - 128 comments

"<font class="poster">By Salohcin :: 1/2/07

News goes here."
should be
"<font class="poster">By Salohcin :: 1/2/07


News goes here."
add br to add more space between

Reply Good karma Bad karma+1 vote
SLIPKNOT_512
SLIPKNOT_512 - - 5 comments

VERY EASY HTML TUTORIAL IS RIGHT HERE: http://university.mistupid.com/login/index.php VERY EASY TO UNDERSTAND!!!!

Reply Good karma Bad karma-1 votes
mo2k7
mo2k7 - - 16 comments

Thats cool, Basic yet professional (If you added images on the header and links)

also, you might want to notice on the last page under the code you put ".CSS without even touchiing " (One extra i on the Touching)

Reply Good karma Bad karma+1 vote
Ter3
Ter3 - - 48 comments

Why is this tutor listed on
any
HL1
any
????

Reply Good karma Bad karma+1 vote
Varsity
Varsity - - 1,044 comments

Tables bad.

Tables bad.

Tables bad.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: