webdevelopment workshop-html

27
WEB DEVELOPMENT WORKSHOP By Joe Joseph, Cruxsys Technologies For Department Of Computer Science, ICET, MVPA

Upload: joe-joseph

Post on 15-Apr-2017

314 views

Category:

Presentations & Public Speaking


0 download

TRANSCRIPT

Page 1: Webdevelopment workshop-html

WEB DEVELOPMENTWORKSHOP

By Joe Joseph, Cruxsys Technologies

For Department Of Computer Science, ICET, MVPA

Page 2: Webdevelopment workshop-html

WELCOME INTRODUCTION

HTML

CSS

Javascript Introduction

PHP Introduction

Page 3: Webdevelopment workshop-html

ABOUT ME● Currently Msc Computer Science

Student, wannabe academician● Started Career as Linux Systems

Engineer in 2006 after completing BCA and RHCE

● Worked as LAMP stack developer, Technical Consultant for startups etc.

● Expertise in Cloud computing, various open source technologies etc.

● Founder Cruxsys Technologies

Page 4: Webdevelopment workshop-html

HTMLHTML : Hypertext Markup Language

» HTML documents are made up of tags» Tags sorround content» Tags give meaning to the content it sorround

Page 5: Webdevelopment workshop-html

AN EXAMPLE

<!DOCTYPE html>

<html>

<body>

Welcome to the webdev workshop

</body>

</html>

Page 6: Webdevelopment workshop-html

ATTRIBUTES

● Tags can have attributes● Attributes are specified in the opening

tag● The values for attributes are given in

quotation marks

eg : <body bgcolor=”lime”>

Page 7: Webdevelopment workshop-html

ELEMENTS

● The tags and the enclosed information are together known as html elements

<p> is a tag

<p>

Hello World</p> is an html element

Page 8: Webdevelopment workshop-html

PAGE TITLES

<!DOCTYPE html>

<html>

<head>

<title>My first web page</title>

</head>

<body>

This is my first web page

</body>

</html>

Page 9: Webdevelopment workshop-html

HEADINGS

● <h1>, <h2>, . . . .<h6> tags are used for headings

● they should always be used in order● For example, an h4 should be a sub-heading of an h3, which should be a sub-heading of an h2.

Page 10: Webdevelopment workshop-html

PARAGRAPHS AND LINE BREAKS

The <p> tag is used for paragraphs

The <br> tag is used for linebreaks

<p>Welcome to the workshop<br>

on webdevelopment</p>

Page 11: Webdevelopment workshop-html

LISTS

● Ordered lists

<ol>

<li>HTML</li>

<li>CSS</li>

<li>Javascript</li>

<li>PHP</li>

</ol>

Page 12: Webdevelopment workshop-html

LISTS

● Unordered lists

<ul>

<li>HTML</li>

<li>CSS</li>

<li>Javascript</li>

<li>PHP</li>

</ul>

Page 13: Webdevelopment workshop-html

LINKS

anchor tag (a) is used to define a link

<a href="index.html">home</a> |

<a href="aboutus.html">about us</a> |

<a href="contact.html">contact</a>

<a href=”https://facebook.com/cruxsys”> Like us on facebook</a>

Page 14: Webdevelopment workshop-html

LINKS

An anchor can be set to any element in the same page with an id attribute set.

<p id=”last-stanza”> Woods are lovely dark and deep, but I have promises to keep</p>

<a href=”#last-stanza”>Last Stanza</a>

Page 15: Webdevelopment workshop-html

IMAGES

<img src="images/logo.gif" width="120" height="90" alt="Company logo">

src attribute : location of image

alt attribute : alternative description

no closing tag required

Page 16: Webdevelopment workshop-html

TABLES

<table>

<tr>

<td>Cell 1 of Row 1</td>

<td>Cell 2 of Row 1</td>

</tr>

<tr>

<td>Cell 1 of Row 2</td>

<td>Cell 2 of Row 2</td>

</tr>

</table>

Page 17: Webdevelopment workshop-html

FORMS

<form action="process.php" method="post">

</form>

action attribute : server side script that recieves form data

method attribute : how the data will be sent– post

– get

Page 18: Webdevelopment workshop-html

FORMS - input

<input type="text"> - standard textbox

<input type="password"> - textbox for inputting passwords, characters masked by a special character like *

Page 19: Webdevelopment workshop-html

FORMS - input

<input type="checkbox"> is for checkbox. can have a checked attribute (<input type="checkbox" checked>

<input type="radio"> is for radio buttons can checked attribute.

<input type="submit"> submit button. Submits the form when clicked

Page 20: Webdevelopment workshop-html

FORMS - textarea & select

<textarea rows="5" cols="15">

Lots of text </textarea>

<select>

<option value=”1”>Option 1</option>

<option value=”2”>Option 2</option>

<option value="3">Option 3</option>

</select>

Page 21: Webdevelopment workshop-html

Form elements' name attribute

All form elements should have name attribute

If no name attribute is present they will be ignored when submitted to the form handling script

Page 22: Webdevelopment workshop-html

Forms - labels

● Each form should have a label● label tag with a for attribute

<label for="fullname">Name</label>

<input name="fullname" id="fullname">

Page 23: Webdevelopment workshop-html

Span and Div

● used along with CSS for layout● span is an inline element● div is a block element

<div id="header">Header goes here</div>

<div id=”sidebar”>Sidebar </div> <div id=”content”>Content</div><div id=”footer”> &copy; 2015 <span class=”credits”>Powered by Cruxsys</span></div>

Page 24: Webdevelopment workshop-html

Abbreviations

This workshop covers <abbr title="HyperText Markup Language">HTML</abbr> and <abbr title="Cascading Style Sheets">CSS</abbr>

Page 25: Webdevelopment workshop-html

Pre and code

<pre><code>

&lt;body&gt;Content goes here&lt;/body&gt;

</code></pre>

Page 26: Webdevelopment workshop-html

HTML Conclusion

● Putting it all together

● Hands on session

● Further learning resourceshttp://w3schools.comhttp://htmldog.comhttps://www.codecademy.com/tracks/web

Page 27: Webdevelopment workshop-html

Short break

Next topic : CSS