+ All Categories
Home > Technology > Web essentials

Web essentials

Date post: 09-Feb-2017
Category:
Upload: fadwa-gmiden
View: 88 times
Download: 0 times
Share this document with a friend
21
Web Fundamentals
Transcript
Page 1: Web essentials

Web Fundamentals

Page 2: Web essentials

Objective

1st Step

2nd Step

3rd Step

4th Step

5th Step

We stand here

Types of Websites

How does it really works

First web page

Firstweb project?

Structure and Styling

Page 3: Web essentials

What are websites types?

Page 4: Web essentials

Dynamic vs Static

Static websites

Our website

HTML5File

CSSFile

JSFile

Dynamic websites

Our website

HTML5File

HTML5File

JSFile

PHPFile

SQLFile

Page 5: Web essentials

How does web work?

Page 6: Web essentials

Application Server & Web Server

Internet

HTTP Requests

Web Response

Protocol Requests

Page 7: Web essentials

Our First Web Page

Page 8: Web essentials

Web Page Structure

Header

Main Content

Footer

Page 9: Web essentials

Web Page Structure

<!DOCTYPE html><head>

<title>Page Title</title></head><body>

[...] yada yada yada [...]</body></html>

Page 10: Web essentials

Web Page Structure in depth<!DOCTYPE html><head>

<title>Page Title</title><meta ...><link rel="stylesheet" type="text/css" href=""><link rel="icon" href="my/path/to/favicon.ico" type="image/x-icon" />

<script type="text/javascript"></script></head><body>

<header><nav></nav>

</header><section>

<article></article>…<!-->This is a comment<-->

</section><aside></aside><footer></footer>

</body></html>

Page 11: Web essentials

Structure and Styling

Page 12: Web essentials

What is structure?

Page 13: Web essentials

Head Structure in depth

<head><title>Page Title</title><meta ...><link rel="stylesheet" type="text/css" href=""><link rel="icon" href="my/path/to/favicon.ico" type="image/x-icon" />

<script type="text/javascript"></script></head>

Page 14: Web essentials

Body Structure in depth

Body Structure:

<body><header>

<nav></nav>

</header><section>

<article></article>...

</section><aside></aside><footer></footer>

</body>

Important tags inside of Body:

<h1></h1> Header tag from 1..<h6></h6> To 6<p></p> Paragraph tag<ul></ul> (<ol></ol>) List tag<a></a> Link tag<img> Image tag<table></table> Table tag<video></video> Video tag<audio></audio> Audio tag<br/> Break-line<hr> Horizontal line<div></div> new block

Page 15: Web essentials

What is styling?

Page 16: Web essentials

Styling web pages

CSS: Cascading Style Sheet

body{background-color: #015582;color: white;line-height:1.45

}img{

width:100%;height:400px;

}

Page 17: Web essentials

Styling in depth

3 ways to add styles to the code:➔ Inside the Style tag

<style type="text/css">body{

background-color: #015582;color: white;line-height:1.45

}img{

width:100%;height:400px;

}</style>

➔ Inside a tag using style attribute<p style = "color:red;"></p>

➔ In an external file <link rel="stylesheet" type="text/css" href="path/to/file.css">

Page 18: Web essentials

Styling in depth

Why use CSS:

➔ Defining areas➔ Defining Colors➔ Creating transitions➔ Fonts➔ ...➔ Responsiveness ➔ Usability

Page 19: Web essentials

First web project

Page 20: Web essentials

Creating our first web project

Understandingfolder hierarchy

Ask Questions

Pick a project

Present your work

Work together

Page 21: Web essentials

Thank youFadwa Gmiden


Recommended