Search This Blog

Tuesday, 9 September 2014

Overveiw

Overall reveiw of the course starting to get my head around HTML and CSS the more i practice the better need to time manage better with this class and others still learning HTML and CSS had trouble rembering  the deffenent tags inHTMLandCSS seemed to have my head around it now just have to put into practice more and finish the remake of evoke and the copy lession as only half way threw both poor time management on those tasks .
Also updateing blog every couple of nights shareing links with class mates and being on the ball
with the next task and try and better my work,and be PREPARED FOR NEXT HAND IN !

Histroy of web

History of the Web

Tim Berners-Lee invented the World Wide Web in 1989, about 20 years after the first connection was established over what is today known as the Internet. At the time, Tim was a software engineer at CERN, the large particle physics laboratory near Geneva, Switzerland. Many scientists participated in experiments at CERN for extended periods of time, then returned to their laboratories around the world. These scientists were eager to exchange data and results, but had difficulties doing so. Tim understood this need, and understood the unrealized potential of millions of computers connected together through the Internet.
Tim Berners-Lee, CERN (ca. 1991)Tim Berners-Lee.
CERN (circa 1991)
Tim documented what was to become the World Wide Web with the submission of a proposal to his management at CERN, in late 1989 (see the proposal.), This proposal specified a set of technologies that would make the Internet truly accessible and useful to people. Believe it or not, Tim’s initial proposal was not immediately accepted. However, Tim persevered. By October of 1990, he had specified the three fundamental technologies that remain the foundation of today’s Web (and which you may have seen appear on parts of your Web browser):
  • HTML: HyperText Markup Language. The publishing format for the Web, including the ability to format documents and link to other documents and resources.
  • URI: Uniform Resource Identifier. A kind of “address” that is unique to each resource on the Web.
  • HTTP: Hypertext Transfer Protocol. Allows for the retrieval of linked resources from across the Web.

Evoke second task redesign site

                             Redesigning the evoke website

Mark up structure

A typical page structure

  • Header (or masthead) at the top of the page, usually containing the top level heading of the page, and/or a company logo. This is the big bold statement at the top of the page that says what the web site is, and who it belongs to.
  • Main content column, which holds the main content of functionality you are here to use.
  • One of more sidebars, holding tributary content that is either related to that page's main content and changes as new pages are loaded (eg related links), or is always relevant and persists across the whole site (eg "your basket" information on an e-commerce site).
  • Navigation menu going across the page or down the page in a column. This often put in a sidebar, or may form part of the header.
  • A footer that goes across the bottom of the site and contains secondary information such as copyright information and contact details.
Lets visualise this a bit more with a specific example. The web site of Conquest of Steel (Chris Mills' band!) looks like so
Htmlstructure1.png
Figure 1: A typical example web site.
We could break this up into the sections we have just discussed, like so:

Htmlstructure2.png
Figure 2: the example site, with distinct sections overlaid.
These sections could contain any number of different nested elements, for example a footer could include a list full of links, a couple of paragraphs and an image. But how do we mark up these distinct sections, and group them together as single entities that can be laid out later on using CSS? Lets have a look, in the next section.

Structuring a page with HTML 4

HTML4 contains two generic container elements:
  • The <div> is a block level container that you can use to group sections of block level content together.
  • The <span> is an inline container that you can use to group sections of inline content together.
Note that <div> and <span> elements have no inherent content or dimensions, only that of their contents, until they are styled via CSS or manipulated by JavaScript. They also have no semantics, and the only way you can identify them is by giving them a class or id attribute.
You should only use these elements when there isn't a more appropriate, semantic element to use for marking up content. Marking up paragraphs and headings all with <div>s is a terrible thing to do, as although it might look ok, the page will be inaccessible to those using screen readers (screen readers need a good structure of headings to navigate by), plus it will be more bloated, harder to read, and less efficient to style with CSS. Try to cut down on the number of <div>s and <span>s used when possible: an abuse of these elements leads to what we call "divitis".
So, to mark up the example site, you could use the following elements:
Htmlstructure3.png
Figure 3: The example site, with appropriate HTML4 elements indicated for different major structural sections.
The markup would look something like this:
<body>

  <div id="header">
    <!-- header content goes in here -->
  </div>

  <div id="nav">
    <!-- navigation menu goes in here -->
  </div>

  <div id="sidebar1">
    <!-- sidebar content goes in here -->
  </div>

  <div id="main">
    <!-- main page content goes in here -->
  </div>

  <div id="sidebar2">
    <!-- sidebar content goes in here -->
  </div>

  <div id="footer">
    <!-- footer content goes in here -->
  </div>

</body>
 
Nesting dolls is a good way to look at web building
 

Interface design

Example of a maya interface
MAYA interface
User interface design (UID) or user interface engineering is the design of websites, computers, appliances, machines, mobile communication devices, and software applications with the focus on the user's experience and interaction. The goal of user interface design is to make the user's interaction as simple and efficient as possible, in terms of accomplishing user goals—what is often called user-centered design.
Good user interface design facilitates finishing the task at hand without drawing unnecessary attention to itself. Graphic design may be utilized to support its usability, influencing how the user performs certain interactions and improving the aesthetic appeal of the design; design aesthetics may enhance or detract from the ability of users to use the functions of the interface. The design process must balance technical functionality and visual elements (e.g., mental model) to create a system that is not only operational but also usable and adaptable to changing user needs.
Interface design is involved in a wide range of projects from computer systems, to cars, to commercial planes; all of these projects involve much of the same basic human interactions yet also require some unique skills and knowledge. As a result, designers tend to specialize in certain types of projects and have skills centered around their expertise, whether that be software design, user research, web design, or industrial design

Image optmization


The importance of optimizing images for web 

Even though broadband internet is taken for granted, optimizing images doesn’t seem to have the same importance as before. Why waste resources and time when it’s possible to reduce image size without losing it’s quality.
An important part of any website are photographs and in average they take about a half of it’s “weight”. Except that images should be of a good quality it is also important that they are properly optimised. Photo optimisation can be viewed from two aspects wherein the first aspect is the file size and the loading speed of an individual image, while the other aspect includes a proper file naming and optimisation for search engines.
If it takes too long for a website to load it is very likely that photographs used on a website are not properly optimised. This can affect a position on search engines or it can refuse visitors from such a website. There is an increasing number of mobile internet users which means certain limitation in data transfer and slower downloading speed which is another good reason for a proper optimization.
Photos that are transferred from a camera are in high resolution, for eg. 3456 x 2304 px and they are suitable for printing not for a website because it would take too long for them to load. So, the first step in optimisation is to resize it to a smaller resolution. It is not necessary to be an expert or to know programs such as Photoshop or Gimp. Everyone can do it with a little effort because there is a bunch of free and easy tools for resizing images.

CSS code

 Styles - CSS



CSS = Styles and Colors

Manipulate Text
Colors,  Boxes

Example

<!DOCTYPE html>
<html>
<head>

<style>
  body {background-color:lightgrey}
  h1   {color:blue}
  p    {color:green}
</style>

</heading/>


Styling HTML with CSS

CSS styling can be added to HTML elements the following 3 ways:
  • Inline - using the style attribute in HTML elements
  • Internal - using the <style> element in the <head> section
  • External - using external CSS files
The common way to add styling, is to put CSS syntax in separate CSS files.
In this tutorial the examples are simplified to make it easier for you to try it yourself.

Inline Styles

Inline styling is useful for applying a unique style to a single HTML element:
Inline styling uses the style attribute.
This line styling changes the text color and the left margin of single paragraph:

Example

<p style="color:green;margin-left:20px;">This is a paragraph.</p>




CSS Background Color

The CSS style background-color defines the background color for an HTML element:

Example

<body style="background-color:lightgrey">




CSS Font Family

The CSS style font-family defines the font to be used for in HTML element:

Example

<!DOCTYPE html>
<html>

<body>
  <h1 style="font-family:verdana">This is a heading</h1>
  <p style="font-family:courier">This is a paragraph.</p>
</body>

</html>



CSS Font Size

The CSS style font-size defines the text size to be used for in HTML element:

Example

<!DOCTYPE html>
<html>

<body>
  <h1 style="font-size:300%">This is a heading</h1>
  <p style="font-size:160%">This is a paragraph.</p>
</body>

</html


CSS Font Color

The CSS style color defines the text color to be used for in HTML element:

Example

<!DOCTYPE html>
<html>

<body>
  <h1 style="color:blue">This is a heading</h1>
  <p style="color:red">This is a paragraph.</p>
</body>

</htm


CSS Text Alignment

The CSS style text-align specifies the horizontal text alignment for an element:

Example

<!DOCTYPE html>
<html>

<body>
  <h1 style="text-align:center">Center-aligned heading</h1>
  <p>This is a paragraph.</p>
</body>

</html>
The text-align property makes the old <center> tag obsolete.

Internal CSS

An internal style sheet can be used to define a common style for all HTML elements on a page.
Internal styles are defined in the <head> section of an HTML page, in the <style> element:

Example

<!DOCTYPE html>
<html>
<head>

<style>
  body {background-color:lightgrey}
  h1   {color:blue}
  p    {color:green}
</style>

</head>




External CSS

External style sheet are ideal when the style is applied to many pages.
With external style sheets, you can change the look of an entire site by changing one file.
External styles are defined in the <head> section of an HTML page, in the <link> element:

Example

<DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <h1>I am formatted with an external style sheet</h1>
  <p>Me too!</p>
</body>

</html>




Deprecated Tags and Attributes

In HTML 4, several tags and attributes were used to style documents.
These tags are not supported in newer versions of HTML.
Avoid using these elements: <font>, <center> and <strike>.
Avoid using these attributes: color and bgcolor.

(HTML) elements

HTML Elements

An HTML element is everything from the start tag to the end tag:

The start tag is the opening tag and end tag is closeing 
tag.

Nested HTML Elements

Most HTML elements can be nested (elements can contain elements).
All HTML documents consist of nested HTML elements.
This example contains 3 HTML elements:

Example

<!DOCTYPE html>
<html>

<body>
  <p>This is my first paragraph.</p>
</body>

</html>


HTML Example Explained

The <p> element:
<p>This is my first paragraph.</p>
The <p> element defines a paragraph. It has a start tag <p> and an end tag </p>.
The element content is: This is my first paragraph.
The <body> element:
<body>
  <p>This is my first paragraph.</p>
</body>
The <body> element defines the document body. It has a start tag <body> and an end tag </body>.
The element content is another HTML element (a <p> element).
The <html> element:
<html>

<body>
  <p>This is my first paragraph.</p>
</body>

</html>
The <html> element defines the whole document. It has a start tag <html> and an end tag </html>.
The element content is another HTML element (the <body> element).

Don't Forget the End Tag

Some HTML elements will display correctly, even if you forget the end tag:

Example

<html>

<body>
  <p>This is a paragraph
  <p>This is a paragraph
</body>

</html>
The example above works in all browsers, because the closing tag is considered optional.
Never rely on this. It might produce unexpected results and/or errors if you forget the end tag.

Empty HTML Elements

HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag defines a line break).
You can close the empty element in the opening tag like this: <br />.

HTML Tip: Use Lowercase Tags

HTML tags are not case sensitive: <P> means the same as <p>.
The HTML5 standard does not require lowercase tags, but W3C recommends lowercase in HTML4, and demandslowercase for stricter document types like XHTML.

Some basic HTML code


Tags

 

HTML as a language is composed of these basic parts:

 

<the opening tag> the content </the closing tag>

 

 

The idea behind HTML is to take a piece of text and mark-it-up by wrapping it in tags.

 

The opening tag is formatted like this:

 

<p>

 

And the closing tag is formatted like this:

 

</p>  note the forward slash which indicates this tag is a closing tag.

 

 

Let’s see how HTML tags can be used to markup this piece of text:

 

This is my paragraph of text before I added any markup.

 

<p>This is my paragraph of text after I added the HTML tags to it.</p>

 

 

What do the different tags mean?

 

HTML is what is known as a semantic language (one that relates to the meaning of the language). I like to think of it as “it means what it says, it says what it means.”

 

Each tag wraps around a portion of the text, and also describes the portion of text it’s wrapping around.

 

Because of this, we will use different HTML tags to mark-up different parts of our text.

 
<a href=“http://www.google.co.nz”>This is a link to Google</a>




 

<strong>

 

<em>

 

<img src=”” alt=”” title=”” />

 
<br/> (break tag)

<div> (used to divide up the page )

<span> (use this to isolate some txt )

<ul> & <ol> & <li> (list tags,used to create menus )

<a> tag: mailto links (used to send a email)
 

<a herf ="

<strong >

<img  src =

 

introduction to web and how the web works


The short, horrendously simplified answer: websites are just collections of files. When you publish a website you are just putting a copy of your files in an online location that other people can access too. When other people go to visit your website they are just downloading a copy of your files.

You can think of it the Internet as a collection of other smaller networks that all link together. These smaller networks are built in many different ways, and it is this idea of interconnected-networks which is what gives the Internet its name.





Videos:







http://www.youtube.com/watch?v=ePajmya8Yo8 (4min excerpt from Lynda.com)


http://www.youtube.com/watch?v=qHQ5_uJ3tcE (another 4min excerpt from Lynda.com)



Here's how web works:

When you enter something like http://www.google.com, the request goes to one of many special computers on the Internet known as Domain Name Servers (DNS). All these requests are routed through various routers and switches. The domain name servers keep tables of machine names and their IP addresses, so when you type in http://www.google.com, it gets translated into a number, which identifies the computers that serve the Google Web site to you.
When you want to view any page on the Web, you must initiate the activity by requesting a page using your browser. The browser asks a domain name server to translate the domain name you requested into an IP address. The browser then sends a request to that server for the page you want, using a standard called Hypertext Transfer Protocol or HTTP.
The server should constantly be connected to the Internet.ready to serve pages to visitors. When it receives a request, it looks for the requested document and returns it to the Web browser. When a request is made, the server usually logs the client's IP address, the document requested, and the date and time it was requested. This information varies server to server.
An average Web page actually requires the Web browser to request more than one file from the Web server and not just the HTML / XHTML page, but also any images, style sheets, and other resources used in the web page. Each of these files including the main page needs a URL to identify each item. Then each item is sent by the Web server to the Web browser and Web browser collects all this information and displays them in the form of Web page.

In short:

We have seen how a Web client - server interaction happens. We can summaries these steps as follows:
  • A user enters a URL into a browser (for example, http://www.google.com). This request is passed to a domain name server.
  • The domain name server returns an IP address for the server that hosts the Web site (for example, 68.178.157.132).
  • The browser requests the page from the Web server using the IP address specified by the domain name server.
  • The Web server returns the page to the IP address specified by the browser requesting the page. The page may also contain links to other files on the same server, such as images, which the browser will also request.
  • The browser collects all the information and displays to your computer in the form of Web page.