- First chapter looking at how HTML is used to create web pages.
- This section starts with a chapter that explains how CSS uses rules to enable you to control the styling and layout of web pages.
- End up with some helpful information that will assist you in building better websites.
Note that the HTML code is in blue, and the text you see on screen is in black.
HTML | Text |
---|---|
Elements are usually made up of two tags: an opening tag and a closing tag. __________________ __________________ __________________
| Opening Tag | Closing Tag | | - | - | | | | __________________ __________________
<body>
Everything inside this element is shown inside the main browser window.
<head>
Before the
<body>
element you will often see a<head>
element. This contains information about the page
<title>
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.
HTML | RESULTS |
---|---|
- Specifying different versions of HTML
- Identifying and grouping elements
- Comments, meta information and iframes
Since the web was first created, there have been several different versions of HTML.
Released 1997
Released 2000
Re leased 2000
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.
<!-- -->
If you want to add a comment to your code that will not be visible in the user’s browser, you can add the text between these characters:
<!-- comment goes here -->
Every HTML element can carry the id attribute. It is used to uniquely identify that element from other elements on the page.
<p id="pullquote">
This is a quote</p>
Every HTML element can also carry a class attribute. The id and class attributes allow you to identify particular elements.
<p class="important">
Your Important paraghraph</p>
The
<div>
and<span>
elements allow you to group block-level and inline elements together.
<iframes>
cut windows into your web pages through which other pages can be displayed.
The
<meta>
tag allows you to supply all kinds of information about your web page.
Escape characters are used to include special characters in your pages such as <, >, and ©.
- HTML5 layout elements
- How old browsers understand new elements
- Styling HTML5 layout elements with CSS
<header>
<footer>
The
<header>
and<footer>
elements can be used for:
- The main header or footer that appears at the top or bottom of every page on the site.
- A header or footer for an individual
<article>
or<section>
within the page.
<nav>
The
<nav>
element is used to contain the major navigational blocks on the site such as the primary site navigation.
<article>
The
<article>
element acts as a container for any section of a page that could stand alone and potentially be syndicated.
<aside>
The
<aside>
element has two purposes, depending on whether it is inside an<article>
element or not.
- When the
<aside>
element is used inside an<article>
element, it should contain information that is related to the article but not essential to its overall meaning.- When the
<aside>
element is used outside of an<article>
element, it acts as a container for content that is related to the entire page.
## Sections <section>
The
<section>
element groups related content together, and typically each section would have its own heading.
## Heading Groups <hgroup>
The purpose of the
<hgroup>
element is to group together a set of one or more<h1>
through<h6>
elements so that they are treated as one single heading.
## Sectioning El ements <div>
the
<div>
element will remain an important way to group together related elements, because you should not be using these new elements that you have just met for purposes other than those explicitly stated.
# Process & Design
- How to approach building a site.
- Understanding your audience and their needs
- How to present information visitors want to see
- Who is the Site For? Target Audience:
- Individuals or companies?
- Why People Visit YOUR Website:
- General or Specific goal? personl of proffessional?
- What Your Visitors are Trying to Achieve?
- What Information Your Visitors Need:
- How Of ten People Will Visit Your Site?
- Site Map: the foundation of high quality SEO
- WireFrames: simple sketch of the key information
- Getting your message across using design:
- Content
- Prioritizing
- Organizing
- Visual Hierarchy
- grouping
- Similarity
- Access Content
- Modify Content
- Program Rules
- React To Events
- SlidesShows
- Forms
- Script and how to create one
- How Computer fit in
- How to write a script for a web page
A Script is a series of instuctions that a computer can follow to achieve a goal.
- Define the goal
- Design the script
- Code each step