learning-journal

A place where I can learn or take notes

View on GitHub

Structure Web Pages with HTML

Process and Design

Who is the site for?

Sites should be designed for a target audience, and as such it is important to understand your target audience and what they would like.
Try asking people who you know would be interested in the site what they want to see.
Not everyone is going to have interest in the site, so even if it has a wide appeal, work towards the target demographic the most.

Target Individuals

Invent fictional visitors from your target audience and use the idea of them to help influence design choices.

Why People Visit Your Website

To help determine the reason people are visiting, there are two basic types of questions,

  1. What are their underlying motives for their visit?
  2. What are the visitors’ goals?

    Key Motivations

    • Are they looking for something general or specific?
    • If specific is it personal or professional?
    • Is spending time on this a necessity or a luxury?

      Specific Goals

    • Do they want general or specific information?
    • Are they already familiar with your product or does it need to be introduced?
    • Is their request time sensitive?
    • Does it have to do with whether or not they decide to purchase something?
    • Do they need to contact you? And if so how?

      What Your Visitors are Trying to Achieve

      Create a list of reasons people might want to come to your site and try assigning them to your fictional visitors.
      It is difficult to think of every reason, but come up with the main ones you believe in.

      What Info Your Visitors Need

      Figure out what info they are there for, then offer additional info you believe they may want or need.
      Go back through the reasons people may visit the site and think about what all of them need to achieve that.
      Prioritize information based on how essential it seems.
      Your site will seem more relevant to visitors if the info they need is readily available.

      How Often Will People Visit Your Site

      Determine whether the content of your site would benefit from being updated more regularly.
      If people are regularly at the site, or if the information therein changes over time, work out how often it should be updated to ensure people return.

      Site Maps

      Orgainze the information you have into sections or pages to create a diagram of the site’s structure.
      Try to group like subjects together. If you ask people from the target audience, it can be more helpful in organizing the site in a good way.
      Some info may need to be duplicated for different pages if it is a part of multiple subjects.

      Wireframes

      A wireframe is a sketch of the key info required on each page of a site.

      Getting Your Message Across Using Design

      Organizing and prioritizing info helps users understand their signifigance and what order to go through them in.
      Make parts of the page look distinct so they will stand out and be easier to understand.
      Grouping related content into chunks simplifies the design and makes it more accessible to users. Using a similar visual style among the same types of content will make the user associate the two and make them easier to understand.
      Use Visual Hierarchy to draw attention to the main point of something. If it’s relevant to the user, they will look closer to see the rest of the info on it. Size, color, and style are the three main points of difference in establishing a visual hierarchy, which is the order in which your eyes percieve things. Images are also very useful for this.

      Grouping and Similarity

      Ways of organizing elements of a page to show relation.

    • Proximity
    • When several items are placed close together * Closure
    • A real or imaginary box can be formed around elements due to proximity or allignment * Continuance
    • When elements are place in a line or a curve * White Space
    • Placing relative items closer together and leaving a bigger gap between unrelated items * Color
    • A background color placed behind related items * Borders
    • A line can be drawn around the border of the group or between it and its neighbors * Repetition
    • Items of similar size, color, font, orientation, or shape suggests matching elements have similar importance or meaning.
      * Consistancy
    • Using a consistant style suggests other items of the same structure type will have similar info * Headings
    • Giving a chunk of info a heading tells the user immediately whether or not it relates to them

      Designing Navigation

      Good navigation tends to follow three principles * Concise

    • Should be quick and easy to read with a limited number of options * Clear
    • Users should be able to predict what they will find before clicking the link * Selective
    • Primary navigation should only reflect content, not things like login, search, or legal info Good sites often have primary and secondary modes of navigation, for bigger sections and their subcategories.
      Some other good things to consider * Context
    • Good navigation tells the user where they are on the site * Interactive
    • Each link should be big enough to click on and should change when interacted with by the user * Consistent
    • It is best to keep primary navigation the same across the site, even if secondary navigation changes from page to page.

Structure

The use of headings and subheadings is important in structuring word documents.
HTML uses elements to describe the structure of pages, using tags like containers for the different pieces.
Attributes tell us more about specific elements and are made up of a name and a value separated by an equals sign.
<body> contains things shown in the browser
<head> contains info about the page
<title> is shown at the top of the browser on the tab for the page
HTML stands for hypertext markup language, which is named as such because it allows users to create hyperlinks to external or internal sources.
Coding in a content management system usually means you will not be able to edit things like the HTML of a page, just the contents of specific areas of the page itself.
To look at how other sites are built, you can view their source code.

HTML5 Layout

Traditional HTML Layouts

Many web page authors used to only use <div> to group elements together, and would add a class or id attribute to identify them.

New HTML5 Layout Elements

HTML5 introduces new element that indicate the type of content that can be found in them.

Headers and Footers

The <header> and <footer> elements can be used for the main header and footer at the top and bottom of the page, or for ones on individual articles.

The <nav> element contains the major navigational blocks on the site.

Articles

The <article> element contains any section of a page that can stand alone. They can also be nested inside of each other.

Asides

The <aside> element, when inside of an article, should retain information related to, but not essential in its overall meaning.
When not within an article, it contains content related to the page as a whole.

Sections

The <section> element groups related content together; it can contain multiple articles, or it can be used to break up a long article.

Heading Groups

The <hgroup> element groups together <h1> through <h6> headings to treat them as one heading.

Figures

The <figure> element can contain anything referenced from the main flow of an article. It should only be used when the content references only the element, and isn’t integral to the page. It should also inclue a <figcaption> element, which decribes the content of the figure.

Sectioning Elements

The <div> element can be used to group together related elements.

Linking Around Block-Level Elements

Placing an <a> element around an block containing child elements allows you to turn the entire block into a link.

Helping Older Browsers Understand

Older browsers have trouble reading HTML5, and will treat new elements as inline elements, so to fix this, you should include header. section. footer. aside. nav. article. figure {display: block;} as code in your CSS file.
To style these elements for earlier versions of Internet Explorer, you neeed to use HTML5 shiv or HTML5 shim.

Extra Markup

The Evolution of HTML

Each new version of HTML has been designed to improve on its predecessor, however, some older browsers cannot process elements of the newer versions.

back