O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

WEB DEVELOPMENT

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
Carregando em…3
×

Confira estes a seguir

1 de 58 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a WEB DEVELOPMENT (20)

Anúncio

Mais recentes (20)

WEB DEVELOPMENT

  1. 1. WELCOME
  2. 2. Presentation on WEB DEVELOPMENT
  3. 3. OVERVIEW  INTRODUCTION  HTML & CSS  BOOTSTRAP  SQL  PHP  CONCLUSION
  4. 4. Introduction Web development : Web development refers developing websites for Hosting via intranet or internet. The Web development process includes Web design, Web content development, client-side/server-side scripting.
  5. 5. Introduction (cont.)  Web design: Web design is the process of creation, with the intention of presenting the content on electronic web pages, which the end-users can access through the internet with the help of a web browser
  6. 6. Introduction (cont.) What does Web Programming mean ?  Web programming refers to the writing, markup and coding involved in Web development, which include Web content Web client and server scripting and network security.
  7. 7. What are the benefits of web programming?  Allow you to turn a simple, static HTML page into a dynamic masterpiece.  Interact with your web site and use the application on any computer  Easier than programming applications that will run directly on the computer. 7
  8. 8. Client-side & Server-side programming Client-side scripting:  This code runs in a web browser.  Client side takes the data and renders it on screen.  Can send data back to the server. Server-side scripting:  This code executes on a web server.  Server side creates the data and returns it to the client. 8
  9. 9. The Web Architecture
  10. 10. Client & Server side programming language Client Side Server Side  PHP  C#  Java  HTML  CSS  Java Script
  11. 11. HTML  What is HTML? • HTML is markup language of describing web pages. • HTML stands for Hyper Text Markup Language. • A markup language is a set of markup tags.
  12. 12. HTML Attributes  HTML elements can have attributes.  Attributes provide additional information about an element.  Attributes are always specified in the start tag.  Attributes come in name/value pairs like: name=“value”.  The Document Language can be declared in the <html> using lang attribute.  HTML paragraphs are defined with the <p> tag.
  13. 13. HTML documents  All HTML documents must start with a type declaration: <!DOCTYPE html>.  The HTML document itself begins with <html> and ends with </html>.  The visible part of the HTML document is between <body> and </body>.  HTML headings are defined with the <h1> to <h6> tags.  HTML paragraphs are defined with the <p> tag.  HTML links are defined with the <a> tag.  The link address is specified in the href attribute.  HTML images are defined with the <img> tag.  The source file (src), alternative text (alt), and size (width and height) are provided as attributes.
  14. 14. Simple code on HTML <html> <head> <title>Presentation</title> </head> <body> <h1> welcome </h1> </body> </html>
  15. 15. Output:
  16. 16. Introduction to CSS  What is CSS?  CSS stands for Cascading Style Sheets.  Styles define how to display HTML elements.  External Style Sheets can save a lot of work.  External Style Sheets are stored in CSS files.
  17. 17. CSS Syntax  A CSS rule set consists of a selector and a declaration block.  The selector points to the HTML element you want to style.  The declaration block contains one or more declarations separated by semicolons.  Each declaration includes a property name and a value, separated by a colon.  A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly braces.
  18. 18. CSS Background  The background-color property specifies the background color of an element.  The background color of a page is defined in the body selector.  The background-image property specifies an image to use as the background of an element.  By default, the image is repeated so it covers the entire element.
  19. 19. CSS Fonts  The CSS style font-family defines the font to be used for in HTML element.  The CSS style font-size defines the text size to be used for in HTML element.  The CSS style color defines the text color to be used for in HTML element.
  20. 20. Three Ways to Insert CSS There are three ways of inserting a style sheet: Internal Style Sheet o An internal style sheet should be used when a single document has a unique style. External Style Sheet o An external style sheet is ideal when the style is applied to many pages. Inline Style Sheet o Inline styling is useful for applying a unique style to a single HTML element.
  21. 21. Example code:
  22. 22. OUTPUT:
  23. 23. BOOTSTRAP “The most popular front-end framework for developing responsive mobile first projects on the web.”
  24. 24. Bootstrap: What is it? • A tool to develop HTML pages • Extensible and personalizable UI: tables, buttons, forms, typography, carousels, panels….
  25. 25. Why use it?  Browser, desktop and mobile compatibility.  Easy to use  Customizable  Open Source(MIT)
  26. 26. How do we use it? Simply start from here <link href=“bootstrap.css” rel=“stylesheet”> <script src=“jquery.js”> </script> <script src=“bootstrap.js”> <script>
  27. 27. How to use it
  28. 28. Grids o System based on 12 columns o Fluid or fixed o Pluggable o Optimized for: xs (-768 px) sm (768 / 992 px) md(992 / 1200 px) lg(1200+ px)
  29. 29. Grids
  30. 30. Forms  Cross-browser Uis  Horizontal or Vertical  State ( success, error, warning)  Size (xs, sm, md, lg)
  31. 31. Buttons • Thought for web apps. • Variants : Large, small, extra small, primary, success, infi, warning, danger, link.
  32. 32. ICONS  Icon Font with 200 icons (Glyphicons)  Webapp ready  Can be changed with another set
  33. 33. Texts o Titles, paragraphs, lists. o Size management. o Formatting: I, b, s, small. o Labels and Badges.
  34. 34. Tables  Alternate lines (.table-striped)  With borders (.table-bordered)  Active (.table-hover)  Condensed (.table-condensed)  Responsive
  35. 35. SQL (Structured Query Language)
  36. 36. Introduction of Database & SQL Data : Know facts that can be recorded. Database : a collection of data.  represents some aspects of the real world.  Designed, built & populated for a specific purpose. Database management system: the software that manages data. SQL: SQL (Structured Query Language) is a standardized programming language used for managing relational databases.
  37. 37. Why SQL? SQL Queries are used to retrieve large amounts of records from a database quickly and efficiently. Also used  For data administration (to create tables, indexes, and views)  For data manipulation (to add, modify, delete, and retrieve data)  To query a database for useful information
  38. 38. Data Types: Data type selection is dictated by nature of data and by intended use.  Supported data types:  Numberic, Integer, Smallint.  Char (L), Varchar (L).  Date, Time.  Real, Double, Float.
  39. 39. How to Create database & Table?  To store data we have to  Create database structure.  Create tables that will hold end-user data. Database Command: create database Database_name  Table command: create table table_name( col_1 dataType(length), col_2 dataType(length), ……….. )
  40. 40. How to Insert values & Delete Table?  INSERT  Used to enter data into table  Syntax: INSERT INTO column_name VALUES (value1, value2, …., value_N);  DELETE  Delete a table row  Syntax: DELETE FROM tablename [WHERE conditionlist];
  41. 41. Select & Update Operation  SELECT  Used to list contents of table  Syntax:  SELECT columnlist  FROM tablename;  UPDATE  Modify data in a table  Syntax: UPDATE tablename SET columnname = expression [ columnname=expression] [WHERE conditionlist];
  42. 42. Example Code: OUTPUT:
  43. 43. PHP PHP: Hypertext Preprocessor (earlier called, Personal Home Page)
  44. 44. What is PHP?  PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.  PHP is an acronym for Hypertext Preprocessor.  PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP.  PHP scripts are executed on the server.  PHP is free to download and use.  Basic PHP Syntax :-  <?php //PHP code here ?>
  45. 45. What is a PHP File & Why PHP? What is a PHP File?  PHP files can contain text, HTML, CSS, JavaScript, and PHP code.  PHP code are executed on the server, and the result is returned to the browser as plain HTML.  PHP files have extension “.php”. Why PHP?  PHP runs on various platforms (Windows, Linux,, Unix, Mac OS X, etc.)  PHP is compatible with almost all servers used today (Apache, IIS, etc.)  PHP supports a wide range of databases.  PHP is free.  PHP is easy to learn and runs efficiently on the server side.
  46. 46. Client Server Relation
  47. 47. Variables & Constants  Variables  Variables are ”containers” for storing information.  Declaring PHP Variables.  In PHP, a variable starts with the “$” sign, followed by the name of the variable.  Example:- $txt= “HELLO WORLD!”;  PHP Constants  A constant is an identifier (name) for a simple value. The value cannot be changed during the script.  A valid constant name starts with a letter or underscore (no $ sign before the constant name).  Create a PHP Constant  To create a constant, use the define() function.  Syntax o Define(name, value, case-insensitive)
  48. 48. PHP Functions  A function is a block of statements that can be used repeatedly in a program.  A user defined function declaration starts with the word “function”.  Syntax  Function functionName() { code to be executed; }  Example  <?php function writeMsg() { echo “Helllo World!“; } writeMsg(); // call the function ?>
  49. 49. PHP Class A class is a complex or object data type which stores data and information on how to process that data.  Example  <?php Class Car { function Car() { $this->model= “VW”; } } //create an object $herbie = new Car(); // show object properties echo $herbie->model; ?>
  50. 50. PHP $_POST & PHP $_GET  PHP $_POST  PHP $_POST is widely used to collect from data after submitting an HTML from with method=“post”. $_POST is also widely used to pass variables.  PHP $_GET  PHP $_GET can also be used to collect from data after submitting an HTML from with method=“get”.  $_GET can also collect data sent in the URL.
  51. 51. When to use GET & POST?  When to use GET?  Information sent from a form with the GET method is visible to everyone (all variables names and values are displayed in the URL). GET also has limits on the amount of information to send. The limitation is about 2000 characters. However, because the variables are displayed in the URL, it is possible to bookmark the page. This can be useful in some cases.  When to use POST?  Information sent from a form with the POST method is invisible to others (all names/values are embedded within the body of the HTTP request) and has NO LIMITS on the amount of information to send.
  52. 52. PHP CODE
  53. 53. LOGIN PAGE
  54. 54. OUTPUT
  55. 55. Conclusion After completing this slide we have learnt about:  HTML  CSS  BOOTSTRAP  SQL  PHP All this things contribute to build up an efficient web programming.
  56. 56. Name :- Gourav Sharma Reg. No. :- 11614492 Ph. No. :- 9877150433
  57. 57. Thanks to all.

×