HTML

HTML

HTML stands for HyperText Markup Language. The HyperText part refers to the fact that HTML allows you to create links that allow visitors to move from one page to another quickly and easily. A markup language allows you to annotate text, and these annotations provide additional meaning to the contents of a document. If you think of a web page, we add code around the original text we want to display and the browser then uses the code to display the page correctly. So the tags we add are the markup.

Looking at How Other sites are Built

DOCTYPEs

Because there have been several versions of HTML, each web page should begin with a DOCTYPE declaration to tell a browser which version of HTML the page is using.

IDs And CLASSES

The id is used to uniquely identify that element from other elements on the page. Its value should start with a letter or an underscore (not a number or any other character).

Every HTML element can also carry a class attribute. Sometimes, rather than uniquely identifying one element within a document, you will want a way to identify several elements as being different from the other elements on the page.

THE DIV TAG

 <div> </div>

The div element allows you to group a set of elements together in one block-level box.

THE META TAG

The meta element lives inside the head element and contains information about that web page.

HEADER AND FOOTER

The header and footer elements can be used for:

  1. The main header or footer that appears at the top or bottom of every page on the site.

NAV TAG

The nav element is used to contain the major navigational blocks on the site such as the primary site navigation.

Body, Head & Title

Everything inside this element is shown inside the main browser window.

Before the body element you will often see a head element. This contains information about the page, you will usually find a title element inside the head element.

The contents of the title element are either shown in the top of the browser, above where you usually type in the URL of the page you want to visit, or on the tab for that page (if your browser uses tabs to allow you to view multiple pages at the same time).

Process and Design

HTML

Who is the Site For?

Every website should be designed for the target audience—not just for yourself or the site owner. It is therefore very important to understand who your target audience is.

Target Audience: individuals:

Target Audience: Companies:

What Information Your Visitors Need?

You need to work out what information the visitors need in order to achieve their goals quickly and effectively.

Key Information:

Site Maps

Example 1:

SiteMap 1

Example 2:

SiteMap 2

Wireframes

Example 1:

Wireframe 1

Example 2:

Wireframe 1

Visual hierarchy

Most web users do not read entire pages. Rather, they skim to find information. You can use contrast to create a visual hierarchy that gets across your key message and helps users find what they are looking for.

Visual hierarchy:

It’s the order in which your eyes perceive what they see. It is created by adding visual contrast between the items being displayed. Items with higher contrast are recognized and processed first.

Larger elements will grab users’ attention first. For this reason it is a good idea to make headings and key points relatively large.

Foreground and background color can draw attention to key messages. Brighter sections tend to draw users’ attention first.

An element may be the same size and color as surrounding content but have a different style applied to it to make it stand out.

Designing Navigation

Site navigation not only helps people find where they want to go, but also helps them understand what your site is about and how it is organized. Good navigation tends to follow these principles:

The navigation should be quick and easy to read. It is a good idea to try to limit the number of options in a menu to no more than eight links. These can link to section homepages which in turn link to other pages.

Users should be able to predict the kind of information that they will find on the page before clicking on the link. Where possible, choose single descriptive words for each link rather than phrases.

The primary navigation should only reflect the sections or content of the site. Functions like logins and search, and legal information like terms and conditions and so on are best placed elsewhere on the page.

Good navigation provides context. It lets the user know where they are in the website at that moment. Using a different color or some kind of visual marker to indicate the current page is a good way to do this.

Each link should be big enough to click on and the appearance of the link should change when the user hovers over each item or clicks on it. It should also be visually distinct from other content on the page.

The more pages a site contains, the larger the number of navigation items there will be. Although secondary navigation will change from page to page, it is best to keep the primary navigation exactly the same.

HTML

# CSS CSS

Whats is CSS?

  1. A selector.

  2. A declaration.

CSS!

CSS!

Using External CSS

CSS!

  1. href

This specifies the path to the CSS file (which is often placed in a folder called css or styles).

  1. type

This attribute specifies the type of document being linked to. The value should be text/css.

  1. rel

This specifies the relationship between the HTML page and the file it is linked to. The value should be stylesheet when linking to a CSS file.

CSS!

References:

Main page