Christian Web Design Blog

Tutorials, tips, tools and free resources!

Archive for the ‘Basics of HTML’ Category

Basics of Web Design - Part 5

Posted by admin On September - 21 - 2008 ADD COMMENTS

Building your first HTML web page

  • Jump in! Coding your first HTML page by hand
  • Write HTML code
  • Saving the HTML document
  • Preview your page

Jump in! Coding your first HTML page by hand

Learn by doing! That’s always the best way. since you have the basics behind you, you should be ready to open up your Notepad and start writing. You will need a simple text editing program like: Notepad, Wordpad, Notepad ++, or something similar. Just don’t use MS Word.

Write HTML code

Type this code in your text editor.
<html>
<head>
<title>My Title</title>
</head>

<body>
<h1>Heading</h1>
<p>Paragraph</p>
</body>

</html>

Saving the HTML document

Save your file as HTML on your desktop. Best way to do this is ‘Save As’ under ‘File’.

Name it anything you like, but keep this in mind:

  1. No spaces: ‘about page.html’ is no good but ‘about_page.html’ works fine.

  2. Always end with either ‘.html’ or ‘.htm’. Preferably ‘.html’, most people use this.

  3. No special characters: $, %, ^, & in your page name.

  4. Where given the option, save the file as UTF-8.

Preview your page

Find the HTML document on your desktop and double click to open it! CONGRATULATIONS!

Feel free to experiment with various tags before continuing. Practice makes perfect!

Basics of Web Design - Part 4

Posted by admin On September - 14 - 2008 1 COMMENT

Introduction to HTML and Tags

Here’s what we will be covering:

  • A closer look at Tags
  • Parsing. What the browser reads and shows.
  • Foundations to HTML Structure

A closer look at Tags.

All of what you are reading is placed inside of HTML tags. But your web browser parses those tags. Take a look at this Illustration:

This is an example of the underline tag. There are always an opening and closing tag. The closing tag is known by the “/”.

Here’s a look at some common HTML Tags

Basic HTML Document:

<html>
<head>
<title>Document name goes here</title>
</head>

<body>
<p>Visible text goes here, inside a paragraph tag.</p>
</body>

</html>

Comparing HTML code and the web page it creates

Take a look at this side by side comparison of HTML and the Page it displays in the browser.

Take a look at the page here. Right-Click on your mouse and choose View Source to see the source code.

Now that you know what it looks like. It’s time to start writing!

Foundation to HTML structure

2 main areas of an HTML page:

Head <head> </head>
The head tag is all of the invisible stuff.

<title></title> Title tag

<meta /> Meta Tag

These are common tags included in the Head tag.


Body <body> </body>

The body tag is all of the visible stuff.

<p></p> Paragraph tag.

<h1></h1> Heading Tag. There are 6 sizes: h1 - h6

<ul></ul> Unordered List.

<li></li> List Item.

These are some common tags included in the body.

For a more complete list of HTML tags, view this post.

HTML <html> </html>

Every page needs to be “wrapped” in the HTML tag. This is important, because a web browser doesn’t know it’s an HTML page unless it has the <html> </html> tag. Look at the example below.

<html>

<head>

<title>Title of your page</title>

</head>

<body>

<p>some text</p>

</body>

</html>

List of HTML Tags

Posted by admin On September - 14 - 2008 1 COMMENT

List of common HTML Tags. Refer to this often as you are learning the basics of HTML.

HTML Basic Document

<html>
<head>
<title>Document name goes here</title>
</head>

<body>
Visible text goes here
</body>

</html>

Heading Elements

<h1>Largest Heading</h1>

<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>

<h6>Smallest Heading</h6>

Text Elements

<p>This is a paragraph</p>
<br> (line break)
<hr> (horizontal rule)
<pre>This text is preformatted</pre>

Logical Styles

<em>This text is emphasized</em>
<strong>This text is strong</strong>
<code>This is some computer code</code>

Physical Styles

<b>This text is bold</b>
<i>This text is italic</i>

Links, Anchors, and Image Elements

<a href=”http://www.example.com/”>This is a Link</a>
<a href=”http://www.example.com/”><img src=”URL” alt=”Alternate Text”></a>
<a href=”mailto:webmaster@example.com”>Send e-mail</a>

A named anchor:
<a name=”tips”>Useful Tips Section</a>
<a href=”#tips”>Jump to the Useful Tips Section</a>

Unordered list

<ul>
<li>First item</li>
<li>Next item</li>
</ul>

Ordered list

<ol>
<li>First item</li>
<li>Next item</li>
</ol>

Definition list

<dl>
<dt>First term</dt>
<dd>Definition</dd>
<dt>Next term</dt>
<dd>Definition</dd>
</dl>

Tables

<table border=”1″>
<tr>
<th>someheader</th>
<th>someheader</th>
</tr>
<tr>
<td>sometext</td>
<td>sometext</td>
</tr>
</table>

Frames

<frameset cols=”25%,75%”>
<frame src=”page1.htm”>
<frame src=”page2.htm”>
</frameset>

Forms

<form action=”http://www.example.com/test.asp” method=”post/get”>

<input type=”text” name=”lastname” value=”Nixon” size=”30″ maxlength=”50″>
<input type=”password”>
<input type=”checkbox” checked=”checked”>
<input type=”radio” checked=”checked”>
<input type=”submit”>
<input type=”reset”>
<input type=”hidden”>

<select>
<option>Apples
<option selected>Bananas
<option>Cherries
</select>

<textarea name=”Comment” rows=”60″ cols=”20″></textarea>

</form>

Entities

&lt; is the same as <
&gt; is the same as >
&#169; is the same as ©

Other Elements

<!– This is a comment –>

<blockquote>
Text quoted from some source.
</blockquote>

<address>
Address 1<br>
Address 2<br>
City<br>
</address>

Source : http://www.w3schools.com/html/html_quick.asp

Basics of Web Design - Part 3

Posted by admin On September - 14 - 2008 ADD COMMENTS

Building your first HTML web page

Here’s what we will learn:

  • The Simple Life. Using a pre-made Template
  • Using an HTML editor such as Kompozer or Dreamweaver.
  • Coding HTML by hand, the old fashioned way!
  • Introduction to HTML tags

The Simple Life. Using a pre-made Template.

This is by far the easiest way to create a web page. So why not impress your friends and take the easy road to creating professional web pages!

If you are wondering what a template is, it is a ready made web site. Most of the time they need to be modified to fit your own distinctive look. And almost always you’ll be writing new copy. They can be found at places like:

I recommend these sites because they are styled with CSS. But we’ll cover CSS in later tutorial. For now, just know that you can’t do too much to mess up the design or layout with CSS templates when you are editing the page.

If you do a Google search for web templates and come across Photoshop templates, stay away from them for now. Just trust me on that. Get the basics of HTML and web design down first before you try and learn another complicated program.

The above mentioned sites have what you need. Theses free web templates are compatible WYSIWYG editors like Kompozer or Dreamweaver. If you don’t have an editor, I recommend getting Kompozer. It’s free and works very well!

Using an HTML editor such as Kompozer or Dreamweaver.

These programs are WYSIWYG editors. WYSIWYG is an acronym that stands for: What You See Is What You Get. It makes since when you use it. The basics of how they work can be similar to OpenOffice Writer, or MS Word.

They are great to use for beginners or professionals. You can pretty mush begin editing your website like a pro right away. But there are some drawbacks. The main one being, you lose some control of your design by not using HTML to make your page.

Which leads us to our next point!

Coding HTML by hand, the old fashioned way!

This is by far the best way to create your web pages. It most likely will always be due to the limitations of editors. HTML is easy to learn too! The first step to writing HTML is understanding TAGS.

Oh yea, you’ll want one more tool on your web design belt. Notepad ++. This free, handy text editor color codes your HTML code.

Introduction to HTML tags.

HTML stands for Hyper Text Markup Language.

HTML tags look like this: <html> </html>, <p> </p>, <br />.

Tags are stuffed inside those angle brackets so that a web browser knows to “parse” it. Simply meaning, the browser will “do” what is in the tag, and not show it on your screen.  That means for you the HTML coder, you will need to be familiar with the different tags and what they do. And master them, so you can have full control over your web page.

Most of the time the what is contained inside the brackets are abbreviated forms of what they do.

Continue to Basics of Web Design - Part 4, for an HTML Tag list.

Basics of Web Design - Part 2

Posted by admin On September - 10 - 2008 ADD COMMENTS

Now, how do you get your site live up on the web?

Now that we understand what the web is, here’s a step by step tutorial about how to get your well coded pages live on the web.

  1. Domain Registration
  2. Hosting
  3. FTP what?

Domain Registration

Since we already went throught what domain registration is in the previous Basics of Web Design tutorial, now it’s time for you to actually register that domain name.

Registration is simple.

Since I am not getting paid to endorse any domain registrars, do a quick search for ‘domain registration’. Back so soon?! Nice to see you again! Now that you have looked at a few companies who can provide this service for you, don’t register that domain name just yet!

Because…

Hosting

If you did click around a bit on your registrars wite, you’ll notice that they want you to host with them. All you need is the basic package at this point. The price for hosting shouldn’t be much more than a few dollars per month.

Here’s why you held off.

It’s usually cheaper to get the domain name and hosting together. And less confusing too! Once you have that here’s the final, and possibly most confusing step.

FTP what?

You’ll need to connect to your new server via FTP (File Transfer protocol). To do this you need an FTP client. A great and very simple one is FileZilla. It’s free too!

Once you install the software on your computer, you will need to make a connection to a new site.

How do I do that? well, it depends on the Client you downloaded. Usually you can refer to the manual or faq of the software.

You will need three simple pieces of information: Host Name, User Name, Password. these you will neet to get from your hosting provider.

Once you connect to your site, you can then upload them to the root folder. Preview your new site in your web browser!

Basics of Web Design - Part 1

Posted by admin On September - 6 - 2008 ADD COMMENTS

Christian Web Site Design Basics

These series of tutorials are dedicated to beginners. This tutorial covers the basics of web site design from domain names, web servers, and web hosting. There’s some good knowledge in here for all Christian Web Developers.

Here is the out line of this tutorial:

  • Why we call it the web
  • What a server is and does
  • How we see a web site
  • Domain names
  • Registrars and domain registration

So lets get started!

Why do we call it the web?

The web as we know it is just a bunch of interlinked computers, sending, receiving, pretty much sharing data. These are connected by cable lines, phone lines, fiber optic cables, satellite, or cell service.

There are two kinds of computers linked in this network, servers and any computer receiving data from those servers. Like our computers at home.

It’s the web because all computers are ’strung’ together.

What a Server is and does.

A server does just that, serves data to receiving computers. That data is commonly in the form of files known as web pages. Servers can do this by running special software. What is this software called? Server software! Popular serving software is Apache, Red Hat, and Windows.

Servers are also capable of running many software applications, just line your computer at home. Just think if you have ever registered for a site so you can have access to it’s content, or signed up for email. There’s other software and files which interact with that software and your web browser to make that happen.

A server commonly ’serves’  web pages to our web browser.

How we see a web site.

One answer: URL. Uniform Resource Locater. It’s like a phone number. The internal workings are handled through web servers DNS. Simply typing a URL into the address bar of a web browser takes us to a web site.

We see a web site when we type in the URL in the web browser.

Domain names.

Domain names are used in URL’s to identify, or call on web pages. Domain names are actually identifying an IP (Internet Protocol) address.

Domain names are used to identify IP addresses which call on web pages.

Registrars and domain name registration.

Registrars are facilitators for domain name registration. Domains are your unique address on the web. Domains can’t be duplicated, so some people will buy popular domain names and sell them to the highest bidder.

Domains are your unique address on the web.

The next tutorial in this series will deal with how to get your web site published live on the Internet.

Thank you my fellow Christian web designers, I hope you find this useful. And as always, feel free to contribute!

Basics of making a web site

Posted by admin On September - 2 - 2008 1 COMMENT

While somethings are common to developers, those who are still learning may find the basics to be very unfamiliar. I’ve designated a series of simple tutorials to guide you through the basics of web design, and what you need to know before you can publish your web site.

Here’s a quick glossary of terms you will want to be familiar with:

  • Server: The computer that a server program runs in is also frequently referred to as a server.
  • Serving Software: A computer program that provides services to other computer program, commonly feeding that computer web content.
  • Default page: The first page the serving software will read.
  • Document Root: The directory in the Web server’s file system which is the beginning of the file tree of available files and documents.
  • Local view: Any time your web file is viewed on your machine, without reading from a web server.
  • Publishing: After your web files are loaded to the document root of your web server, they are published.
  • FTP: File Transfer Protocol. The program and protocol which allows files to be transferred across the Internet.

Here’s how to create your first HTML page and link to a contact page. I’ve provided simple step by step instructions and an illustration.

Structure and naming conventions

Or - How the heck does the internet show my page?

Servers are what “serves” your pages to the web. They commonly use an operating system like, Apache, RedHat, or Windows (but not like the one you have on your computer).

So how then does this computer show my page?

I’m glad you asked. First, make sure you refer to the glossary of terms above as you read this post.

The web serving software will automatically look for the default file in the document root. The default file is commonly named something like: index.html or default.html.

This illustration may help explain it to you better:

Example of server request

Example of server request

Creating the Default Page

Now that you know how a server works, you can create your first page!

For more information on Tag basics, see this post.

Open any text editor, like Word Pad, and type in these tags:

<html>
<body>

</body>
</html>

Great! Now save this file in a folder named something like web site. It’s important to get in the habbit of saving often early, in case of system crashes.

Now in between the body tags Type this:

<h2>My great web page</h2>
<p>This is my information here!</p>

Now save the file and open it from your web browser.

You should see this:

My great web page

This is my information here!

What about links?

Ahh yes, Links! Links are what makes the web, well, the web! Most common links are are known as navigation links.  We’ll be covering them here, but there are also external links, which will be covered later, after you master the basics.

Create a new HTML page. Now save it as: contact.html. Now insert this:

<html>
<body>
<h2>Contact us</h2>
<p>123 Happy St.</p>
<p>Happy, Indiana</p>
<p>Phone: 555 555-555</p>
<p>Back to <a href ="index.html">Home Page</a></p>
</body>
</html>

Now double check that the file is saved in the same folder your index file is. Go ahead and open it in your web browser and click on your link.

Impressive isn’t it!

Here’s the link explained:

  • The ‘a‘ tag is an anchor. Use this any time you want to make a link to anywhere on the web.
  • The href attribute is an http reference. That means it will direct your browser to an “http” location. In this case is is going to be something like: http://yourharddrive/documents/web site/index.html. You may be more familiar with: http://www.domainname.com/index.html when you are browsing the web. Either way in our example, the browser is calling the http equivalent to where the document or file is stored in the root, unless the href specifies somewhere else.
  • =”index.html” Everything needs to be in quotations after the equals sign. Otherwise the browser doesn’t read the code right.
  • Finally, </a> every tag needs to be closed. It’s just one of those things. Close your tags by adding a ‘/’ before the tag definition.

You can take this one step higher and link from your index file top your contact file, or create more files like about, or services. At any rate, have fun and relax, because if you’re not having fun it’s not worth it!

Basic HTML TAGS

Posted by admin On August - 29 - 2008 1 COMMENT

HTML Tag Basics

For those of us needing a reference of basic HTML tags, make sure you bookmark this post!


So what is an HTML TAG anyway?

It is a notification or commands written into a web document.

Or, another explanation:
Code to identify the different parts of a document so that a web browser will know how to display it.

Pretty much anything that looks like this:

<tag> </tag> -or-  <tag />


What are the basic HTML TAGS?

Read the rest of this entry »

Learning HTML saves a lot of time!

Posted by admin On August - 29 - 2008 ADD COMMENTS

Software such as Adobe DreamWeaver and Kompozer are great for assisting in speedy web site development. But what happens if you get stuck?

Learning HTML basics will save you time in the long run. I always tell people who are learning to build their site to go to w3schools.com and learn the basics of HTML. It only takes about three days if you spend around three to four hours per day on it.

Why would learning HTML save me time?

Yes, it’s true. 12 hour’s or so of learning code doesn’t sound too appealing to most.

Consider this:
Lets say you are using DreamWeaver and are editing your happy site. Then you run into a text formatting problem, like an annoying space between two lines that you can’t get rid of.

Like this:

First line of text.

Second line of text.

You could try to move your mouse cursor in between the two lines, and click away, attempting to find the ‘blank’ line in the middle.  Next you frantically search the settings in the property inspector, open the various menus, and even try rewriting the lines, in hopes it can be redone right.

Obviously there are lots more examples than these of annoyances when editing your web page in an editor. But learning Code will definitely save you time in the long run.

If you would like to see the solution to this problem, click the link below!

Read the rest of this entry »