Professional Documents
Culture Documents
0
Development
www.meenteco.com
Web Services
Web services are typically application programming interfaces (API) or Web APIs that are accessed via Hypertext Transfer Protocol (HTTP). Web API is typically a defined set (HTTP) request messages usually expressed in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format. Any application can have a Web Service component. Examples of Web Service are Gmail Google Docs Dropbox
Languages
HTML/CSS JAVASCRIPT PHP AJAX JSON - (JavaScript Object Notation)
Tools
Dreamweaver Photoshop Web Server - WAMP Notepad++ Browser Firebug Extension FTP Client
Microsoft ASP.NET Backend: SQL Server Requirements: Windows Hosting, IIS, Visual Studio IDE, ASP.Net framework
Open Source LAMP PHP - Facebook Python Ruby on Rails Twitter Back end: MySQL Requirements: Linux Hosting, Apache
Steps in Hosting a Website Online 1. Buy a Domain from a Domain Registrar like GoDaddy.com 2. Buy Web Space from a hosting company like hostgator.com, bluehost.com etc. 3. Use a FTP Client to transfer files from your computer to the server
Steps in Deploying website locally 1. Install WAMP on your localhost to run PHP 2. Save your php files in the /www folder inside WAMP 3. Turn on your WAMP Server 4. Type http://localhost:8080 (Port no. may differ)
Demo 1 HTML
Basic HTML Structure <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text <title>Page title</title> <link rel="stylesheet" href="name.css" type="text/css" media="screen" /> </head> <body> ... </body> </html>
Demo 2
CSS
CSS Styling
Sandbox Simulator Demo On http://cssdesk.com/ create rounded corners with CSS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text <title>Page title</title> </head> <body> <p style="color: red"> ... </p> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text <title>Page title</title> <link rel="stylesheet" href="name.css" type="text/css" media="screen" /> < /head> <body> ... </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text <title>Page title</title> <style type="text/css" media="screen"> @import url("styles.css");</style> </style> </head> <body> ... </body> </html>
Good::
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text <title>Page title</title> <link rel="stylesheet" href="name.css" type="text/css" media="screen" /> </head> <body> ... </body> </html>
Use inheritance
Inefficient::
} } } }
Efficient::
Efficient::
Inefficient::
body { font-size: 85%; font-family: arial, helvetica, sans-serif; background-image: url(image.gif); background-repeat: no-repeat; background-position: 0 100%; margin-top: 1em; margin-right: 1em; margin-bottom: 0; margin-left: 1em; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-style: solid; border-width: 1px; border-color: red; color: #222222;
Efficient::
body { font: 85% arial, helvetica, sans-serif; background: url(image.gif) no-repeat 0 100%; margin: 1em 1em 0; padding: 10px; border: 1px solid red; color: #222; }
So, how can you make your CSS easier to understand for people who maintain your website?
/* --------------------------------Site: Site name Author: Masoom Tulsiani Updated: Date and time Updated by: Name --------------------------------*/
/* --------------------------------COLORS Body background: Container background: Main Text: Links: Visited links: Hover links: H1, H2, H3: H4, H5, H6: --------------------------------*/
Not good::
Better::
#header { ... } #header h1 { ... } #header h1 img { ... } #header form { ... } #header a#skip { ... } #navigation #navigation #navigation #navigation #navigation { ... } ul { ... } ul li { ... } ul li a { ... } ul li a:hover { ... }
#content { ... } #content h2 { ... } #content p { ... } #content ul { ... } #content ul li { ... }
/* --------------------------------header styles --------------------------------*/ #header { ... } #header h1 { ... } #header h1 img { ... } #header form { ... } /* --------------------------------navigation styles --------------------------------*/ #navigation { ... }
OK, how can you manage your CSS across an entire site?
Modular CSS
HTML files
header.css
content.css
Why separate CSS files? Its easier to find rules. You can also serve specific CSS files to pages.
HTML files
Why add a bridging file? You can add or remove files as needed without changing the HTML.
HTML files
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text <title>Page title</title> <link rel="stylesheet" href="bridging.css" type="text/css media="screen, projection"> </head> <body> ... </body> </html>
Recap?
HTML files
header
home
CMS
CMS Maintains multiple themes & has third party components which can be Integrated!
Companies are making use of content management systems made using MVC.
PHP
PHP Powerful Server Side Scripting Lang. Used Widely with MYSQL For Web Applications Syntax:
<?php //on//and //off ?>
hello.php
<html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
DEMO LOGIN USING PHP & Jquery <?php if($_POST) { $email = $_POST['email']; $password = $_POST['password']; $newpassword = $_POST['newpassword']; if($_POST['password'] && $_POST['email']) { $sql=mysql_query("SQl select statement"); echo "Login success"; } else if($_POST['newpassword'] && $_POST['email']) { $sql=mysql_query("SQl Insert values statement"); echo "Registration Success"; } } ?>
Javascript code <script type="text/javascript" src="http://ajax.googleapis.com/ ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#signup').click(function() { $('#password').val(''); $('#login_block').hide(); $('#signup_block').show(); }); $('#login').click(function() { $('#newpassword').val(''); $('#signup_block').hide(); $('#login_block').show(); }); }); </script>
User Interface Designer/UX Web Programmer LAMP/ ASP.Net Backend Programmers MySQL Graphic Designers
Finally the HTML Code <form method="post" action="loginup.php"> <div> <label>Email</label> <br/> <input type="text" name="email"/><br /> <input type="radio" name="choose" id="login" checked="checked"/> I have an account <br /> <input type="radio" name="choose" id="signup"/> I am new!<br /> </div> <div id="login_block"> <label>Password</label><br /> <input type="password" name="password" id="password"/><br/> <input type="submit" value=" Login "/> </div> <div id="signup_block" style="display:none"> <label>Choose password</label><br/> <input type="password" name="newpassword" id="newpassword" /><br/> <input type="submit" value=" Signup "/> </div> </form
DEMO: Instant Search with Jquery and Ajax (Auto Suggestor) JSON File Javascript Code CSS
User Interface Designer/UX Web Programmer LAMP/ ASP.Net Backend Programmers MySQL Graphic Designers
Questions?