August 11 2008
HTML Basics - Part 2 - A Few More Basics
Tagged Under : HTML, html basics, HTML tags, Website Design
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
You’ll find that once you familiarize yourself working with HTML, you’ll be able to control the look and feel of your web site. It won’t be long before you’re a whiz at HTML
Platform Independant:
HTML is ‘Platform Independant’, which basically means ‘universal’. It doesn’t matter what kind of computer you have, what operating system you use or what server you host your website on. Windows, Mac, UNIX/Linux, they will all preform equally providing your HTML files are saved in ‘Standard Text Format’, otherwise known as ASCII. The only thing that may vary is what type of HTML editing software will work on your computer.Basic Anatomy of a Web Page:
Every web page consists of a text file (your HTML file) and image files (pictures or graphics) used on the page. The HTML file contains all the text, and gives your website browser instructions on how the page should be displayed to the viewers.Before I jump the gun too much, you need to know that each HTML page created has a special extension. For example, this name of this page is ‘Introduction’ but it ends in the extension of ‘.html’. By looking at the extension of the page displayed in your web browser, you can tell what type of code was used to create that page. We’re learning about .html, but there is also .php, .asp and .. well, let’s just stop there for now
![]()
Tags
Tags tell the web browser what to do. A tag is comprised of a < character at the beginning and a closing > at the end. These tags can contain information on what font should be displayed (ie Times New Roman) or how that font should look (ie Italic or Bold) which are some of the common tags used. Tags are also used to display images and to create hyperlinks (links to other pages or even other websites). We’ll be learning about many of the common HTML tags, but for now it’s more important that you understand what they are.One easy way to learn about tags is by viewing the ‘Source Code’ of other HTML websites. This is one of the tricks I’ve used to learn about HTML myself! Viewing the source code is easy to do although the steps may differ between browsers. For example, in Mozilla FireFox, simply click on “View/Page Source”. You’ll then see all of the HTML code used to create that one web page.
Try it now..
Let’s have a peak at Google.. www.google.com and then view the source code in your browser. (Try View >> Page Source).
Cool huh?!
Question:
You’ve explained to me that every page ends with an extension like .html, but when the link above to Google’s web site doesn’t have that.. now I’m confused!Answer:
When you type www.google.com in your web browser, your browser actually see’s www.google.com/ <-- note the / at the end. When a browser see's the / with nothing after it, it automatically looks for an index page, which in the case of html will be 'index.html'. Try entering www.google.com/index.html and you’ll see that you end up at the very same page.When viewing the source code of websites, it’s important to note that no two are the same - and never will be. Some sites make use of website builders which automatically create its own code, and though it may look much like regular HTML, it may also insert some program specific code as well. Microsoft Front Page is one such culprit, and even my beloved XSite Pro has it’s own signature. Websites also make use of Content Management Systems such as Joomla, or blogging scripts such as WordPress. You have probably come across all of these various types of websites though you may not have realized it.
In the coming lessons we’ll talk about images, meta tags, and yes, even the dreaded tables. I say dreaded as the code can be really heavy, and there are much better ways to accomplish the same things (aka CSS - Cascading Style Sheets). I’ll touch on CSS later on, but it’s truly become it’s own language and I can only show you the basics.
| 3.6 (1 person) |



















