Tuesday, 9 September 2014

my new evoke website

Below is my design in illustrator so far.



 Below is my HTML code. (Will be posting more updates on my code as website is not yet complete.)







Below is my CSS code (Will be posting more updates on my code as website is not yet complete.)




Below are screenshots of my new evoke website so far.




If you do see any problems in my code or ways you think can improve my website please leave a comment it will help thank you.





Reflection on what I have learned

Through this project I have learned quite a bit about how to code a website. I now know more about the history about the web and how the web works. I now have more knowledge of how to build a proper website not only HTML but also CSS. I have now learned how to use CSS to improve my website and i have also learned more about colour choices as my original website colour choice was bad.

Simple menu, videos

Simple menu:


To make a simple menu you need an unordered list, with each item in list having a link to each page of the website.

<ul>
<li> <a href="index.html"> HOME </a> </li>
<li> <a href="linkhere"> ABOUT </a> </li>
<li> <a href="linkhere"> BOOK NOW</a> </li>
<li> <a href="linkhere"> CONTACT</a> </li>
</ul>

Video:

Before HTML5, there was no standard for showing videos on a web page. Videos could only be played with plug-ins (like flashplayers).

To show a video in HTML, use the <video> element:

<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>

Auto play a video:

<video width="320" height="240" autoplay>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>

Tuesday, 2 September 2014

Image optimization


What is optimizing images for the web?


The images you create in programs like Photoshop and Illustrator look amazing but often the file sizes are very large. This is because the images are made in a format which makes them easier to manipulate in different ways.

With file sizes upwards of a couple of megabytes per image, if you put these files on your website it would be very slow to load.

Optimizing your images for the web means saving or compiling your images in a web friendly format depending on what the image contains.

Images hold data other than just the pixels we see on the screen. This data can add unnecessary size to the image which leads to longer load times as the user waits for the image to download.

In terms of cost versus benefit optimizing your images should be near the top of your page speed optimizations if you don't have them optimized already.


How does it work? 


In simple terms optimizing your image works by removing all the unnecessary data that is saved within the image to reduce the file size of the image based on where it is being used in your website.

Optimizing images for the web can reduce your total page load size by up to 80%.

There are two forms of compression that we need to understand, Lossy and Lossless.

Images saved in a lossy format will look slightly different than the original image when uncompressed. Keep in mind that this is only visible at a very close look. Lossy compression is good for web, because images use small amount of memory, but can be sufficiently like the original image.

Images saved in lossless format retain all the information needed to produce the original image. For this reason these images carry a lot more data and in return are a much large file size.

We also can optimize images for the web by saving them as the appropriate dimensions. Resizing the image on the webpage itself using CSS is helpful but the issue is the web browser will still download the entire original file, then resize it and display it.

Can you imagine take a poster size image and using it as a thumbnail? The little 20px by 20px image would take as long to load as the original poster, when we could just be loading a 20px image the whole time.

 http://gtmetrix.com/optimize-images.html

Tuesday, 26 August 2014

CSS hover link code

/* unvisited link */
a:link {
    color: #FF0000;
}

/* visited link */
a:visited {
    color: #00FF00;
}

/* mouse over link */
a:hover {
    color: #FF00FF;
}

/* selected link */
a:active {
    color: #0000FF;
}

http://www.w3schools.com/css/css_link.asp

Interface design

Interface design deals with the process of developing a method for two (or more) modules in a system to connect and communicate. These modules can apply to hardware, software or the interface between a user and a machine. An example of a user interface could include a GUI, a control panel for a nuclear power plant, or even the cockpit of an aircraft.

In systems engineering, all the inputs and outputs of a system, subsystem, and its components are often listed in an interface control document as part of the requirements of the engineering project.

The development of a user interface is a unique field. More information can be found on the subject here: User interface design




Tuesday, 19 August 2014

CSS and HTML links

What is CSS?

CSS is a Style Sheet Language. CSS stands for Cascading Style Sheet. CSS can format the document content(written in HTML or other markup language): layout, colours, fonts, etc... CSS is designed primarily to enable the separation of the document content and document format. As a result, we can improve content accessibility, can similarly format two or more documents.

http://www.w3.org/wiki/CSS/Training/What_is_CSS

 

HTML Links

Links are found in nearly all Web pages. Links allow users to click their way from page to page.

The HTML <a> tag defines a hyperlink. A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. When you move the cursor over a link in a Web page, the arrow will turn into a little hand. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. By default, links will appear as follows in all browsers:

  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red
The HTML code for a link is simple. It looks like this:
<a href="url">Link text</a>
The href attribute specifies the destination of a link.

http://www.w3schools.com/html/html_links.asp