web designing workshop

33
Web Designing Workshop IEEE Jay Kanakiya

Upload: kanakiyajay

Post on 02-Nov-2014

142 views

Category:

Technology


0 download

DESCRIPTION

html and css workshop

TRANSCRIPT

Page 1: Web designing workshop

Web Designing Workshop

IEEEJay Kanakiya

Page 2: Web designing workshop

Objective

• Student has got to be able to code a simple website and upload it to http://neocities.org

Page 3: Web designing workshop

What you can do with html,css,js

• Web apps• Chrome Extensions• Chrome Apps• iOS & Android [ PhoneGap ]• FireFox OS• Windows 8

Page 4: Web designing workshop

Hello World

• Open a new File in Sublime Text .Copy Below<html><head></head><body>

<p>Hello World</p></body></html>

• Save it as index.html• Open that file in Chrome Browser

Page 5: Web designing workshop

History

• The founder of HTML was Tim Berners-Lee• Html => Hyper text Markup Language• The HTML 2.0 specification is dated November,

1995• Vision of the HTML developers is that all devices

must be able to reach the data on the Internet: computers with different platforms, browsers and characteristics, pocket devices, cell phones, devices for speech, and many others.

Page 6: Web designing workshop

3 Things inside Webpage

• Html => Markup• Css => Styling• Javascript => Dynamism

Page 7: Web designing workshop

SIMPLE SYNTAX

<tag attribute='value'>content</tag>

Page 8: Web designing workshop

HTML

• <b>BOLD</b>• <i>italic</i>• <u>Underlined</u>• <i><u>italic and underlined</u></i>

Page 9: Web designing workshop

• Head | Tag that surrounds important content that is invisible to the user, but is important to the browser. Elements within this tag contain metadata about the page and links to stylesheets, scripts, etc.

• The body is the container for all of a page's content. Comes after the <head> tag, within the overall <html> tag.

Page 10: Web designing workshop

Most Common Tags

• <h1> <h2> <h3> <h4> <h5> => Headings• <p>This is a paragraph. This is a paragraph.

This is a paragraph. This is a paragraph.</p>• <ol><ul> Lists• <li> List elements

Page 11: Web designing workshop

• <a href=“http://facebook.com”>FB</a>• <table>• <tr><td></td></tr>• </table>• <img>

Page 12: Web designing workshop

Attributes

• <div class=“vit ieee”></div>• <p id=“information”></p>• <img src=“” />• <a href=“”>

Page 13: Web designing workshop

Forms

• <input type=“text | email | button | password |search | url | date ”>

• <textarea></textarea>• <input type="radio" name="cricket"

value="dhoni"> Dhoni• <input type=“checkbox” name=“none”>• <input type=“submit” name=”submit”>

Page 14: Web designing workshop

Task 1

• Make this page• file:///H:/workshop-ieee/examples/beginner.h

tml

Page 15: Web designing workshop

<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><table><tr><td></td><td></td></tr><tr><th></th><th></th></tr></table> <h1></h1> <h2></h2> <p></p><ol><li><i></i></li><li><i></i></li><li></li></ol></body></html>

Page 16: Web designing workshop

DIV element

• Stands for division.• Most Commonly Used.• A block level container (or 'division' of the web

page) for content with no semantic meaning.

Page 17: Web designing workshop

Embeddable Content

• <video src="kitties.mp4" width="300" height="200" loop muted autoplay controls></video>

• <audio src="meow_mix.mp3" controls></audio>

• <canvas id="wittykitty" width="800" height="450“></canvas>

• file:///H:/workshop-ieee/tearable-cloth.html

Page 18: Web designing workshop

Task 1

• Create a simple webpage just using html• file:///H:/workshop-ieee/examples/beginner.h

tml

Page 19: Web designing workshop

CSS

• Cascading StyleSheets• 3 way to style an element• <div style=“color:red”></div>• <style> div { color : red} </style>• <link rel=“stylesheet” href=“style.css”></link>

Page 20: Web designing workshop

Syntax

Selector { property1 : value1;property2 : value2 ;}

P {Color : red ;Height : 4px;}

Page 21: Web designing workshop

Selectors• [element] Basic Selector• # ID• . Class• * ALL• > direct child• [space] Any child inside • :hover Hovers• #parent > .child Nesting• file:///H:/workshop-ieee/examples/selectors.h

tml

Page 22: Web designing workshop

Basic Props

• Length and percentages

• px : pixels• Em : current font-size• Pt : printed media• % : percentages

• height , width , Fonts , margin , padding

Page 23: Web designing workshop

Colors

• CSS brings 16,777,216 colors to your disposal. They can take the form of a name, an RGB (red/green/blue) value or a hex code.

• P{• Color : #ccc ;• Color : rgb(0,0,0) ;• Color : red ;• }

Page 24: Web designing workshop

Fonts

• font-family: "Times New Roman“;• Font-size : 16px;• Font-weight : bold ;• Font-style : italic ;Text-align, letter-spacing , line-height,word-

spacing , text-indent ,• total : 90+ css properties

Page 25: Web designing workshop

The Box Model

file:///H:/workshop-ieee/examples/boxmodel.html

Page 26: Web designing workshop

POSITIONING

• Static• Fixed• Relative• Absolute

file:///H:/workshop-ieee/examples/position.html

Page 27: Web designing workshop

Floats

file:///H:/workshop-ieee/examples/float.html

Page 28: Web designing workshop

Clear

Page 29: Web designing workshop

• Why use a Grid System ?

The Bootstrap Grid Framework

• file:///H:/workshop-ieee/examples/grid.html

Page 30: Web designing workshop

Boostrap Grid System

Page 31: Web designing workshop

Chrome Devtools

Page 32: Web designing workshop

http://getbootstrap.com/

Page 33: Web designing workshop

Task 2

• Make your Profile page and attach it to gallery page .

• file:///H:/workshop-ieee/examples/profile.html

• file:///H:/workshop-ieee/examples/gallery.html