Website Building for Dummies

What is HTML?

From the small business owner to the student creating a class project, or even casual individuals working on a blog or personal project online, HTML knowledge is incredibly useful. Although the prospect of having to learn a programming language certainly does seem daunting, the good news is that HTML uses common words so that it is fairly simple to pick up.

HTML is Hypertext Markup Language, a format for creating documents and web pages. It was originally invented in the early 1990s by Tim Berners-Lee, and was based on an earlier markup language called SGML (Standard Generalized Markup Language), which was was based on an earlier format simply called GML (Generalized Markup Language) developed at IBM in the 1960s. HTML consists primarily of matching pairs of angle-bracketed tags surrounding human-meaningful text (like this). The tags provide meaning, context, and display information to the text they surround. (WhoIsHostingThis.com)

An easy way to distinguish HTML and CSS from one another is to remember HTML is used for meaning, structure, and content of a webpage and CSS is used for presentation, layout, and design.

Where and How is HTML used?

Almost all webpages utilize or use HTML. It could be said that HTML is the default language of websites. HTML documents are rendered by a a web browser (the application you are using to read this page). HTML rendering hides all the tags, and changes the display of the rest of the content based on what those tags say it should look like.

According to WhoIsHostingThis.com, HTML — Hypertext Markup Language — is the language used for creating web pages and other web-based documents. It consists mainly of matching pairs of angle-bracketed tags, enclosing sections of human-meaningful text. The tags, which are not displayed by web browsers, are used to provide information about how the text and page should be displayed.

The basic structure of an HTML document includes tags, which surround content and apply meaning to it. Below is a screenshot of an HTML document I created, it provides the code to create a basic HTML document/webpage: Basic HTML Document Screenshot

What is CSS?

CSS stands for Cascading Style Sheets. It defines the layout, design, and styling of the content and the webpage. CSS is used to do everything from specifying page fonts to describing where to position menu bars and content areas.

The beginner's guide to html highlights and explains some of the advantages of using CSS:

Writing CSS

All CSS follows the same basic structure, which consists of three parts - the selector, the property and the value:

Basic CSS Structure Screenshot CSS Example Screenshot

We can apply CSS styling to any of the standard HTML tags, such as body, paragraph, header, etc.

Hopefully by now you have a basic understanding of HTML and CSS, their differences, and their functions. You might think you're ready to start building your own website now. You've answered the important pre-webpage building questions and know the basic structure for both an HTML and CSS document. Well god speed in your web authoring and designing endeavors, the last page provides extra resources to help you with webpage layout and design elements as well as links to additional information on HTML.

HTML and CSS Tips & Tricks


  • Always close your HTML tags. (When you type an opening HTML tag, always place the corresponding closing tag at the end)

  • Use widths and heights with HTML images. (It's a good idea to specify the width and height of an image when using a image tag)

  • Use an HTML validator such as W3C Markup Validator (It's a great idea to run your Web pages through an HTML validator before you publish them on your Web site. These programs will pick up potential problems such as missing closing tags on tables, and using tags that won't work properly on all browsers)

  • Organize the Stylesheet with a Top-down Structure. (It always makes sense to lay your stylesheet out in a way that allows you to quickly find parts of your code)

  • Combine Elements in your CSS Stylesheets. (Elements in a stylesheet sometimes share properties. Instead of re-writing previous code, why not just combine them? For example, your h1, h2, and h3 elements might all share the same font and color)

  • Create Your HTML First. (Many designers create their CSS at the same time they create the HTML. It seems logical to create both at the same time, but actually you'll save even more time if you create the entire HTML mockup first. Creating the HTML layout first allows you to visualize the entire page as a whole, and allows you to think of your CSS in a more holistic, top-down manner)