Understanding the Interplay between HTML, CSS, JavaScript, and PHP in Web Development, Study notes of Web Design and Development

An overview of HTML, CSS, JavaScript, and PHP, explaining their roles in web development. It covers HTML as the standard markup language for creating web pages, CSS for styling, JavaScript for programming web page behavior, and PHP for server-side scripting and database interaction. The document also touches upon topics like HTML structures, styles, text formatting, tables, frames, and lists.

Typology: Study notes

2020/2021

Uploaded on 09/06/2021

48-anjali-singhal
48-anjali-singhal 🇮🇳

1 document

1 / 92

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Web Design and
Development
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c

Partial preview of the text

Download Understanding the Interplay between HTML, CSS, JavaScript, and PHP in Web Development and more Study notes Web Design and Development in PDF only on Docsity!

Web Design and

Development

  1. You enter http://server.com into your browser’s address bar.
  2. Your browser looks up the IP address for server.com.
    1. Your browser issues a request to that address for the web server’s home page.
  3. The request crosses the Internet and arrives at the server.com web server.
  4. The web server, having received the request, fetches the home page from its hard disk.
  1. With the home page now in memory, the web server notices that it is a file incorporating PHP scripting and passes the page to the PHP interpreter.
  2. The PHP interpreter executes the PHP code.
  3. Some of the PHP contains MySQL statements, which the PHP interpreter now passes to the MySQL database engine.
  4. The MySQL database returns the results of the statements back to the PHP interpreter.

Q1. What four components are needed to create a fully dynamic web page? Ans. 1. A web server (such as Apache),

  1. a server-side scripting language (PHP),
  2. a database (MySQL),
  3. and a client-side scripting language (JavaScript).

php

  • PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.

Comments // single line comment /* this is a multi line comment */ Variable declaration

  • Php is a loosly typed language.
  • We place a $ in front of a variable when declaring it.
  • $a=10;
  • $mycounter=1;
  • $mystring = “hello”;
  • $myarray = array(“one”, “two”, “three”);

What is HTML?

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for creating Web pages
  • HTML describes the structure of a Web page
  • HTML consists of a series of elements
  • HTML elements tell the browser how to display the content
  • HTML creates static web pages
  • HTML is not Case sensitive.

What is an HTML Element?

  • An HTML element is defined by a start tag, some content, and an end tag: Content goes here...

HTML tags

  1. Heading tag
    • We define the tag from through
    • defines the most important heading and defines the least imp heading.
  2. HTML paragraphs
    • They are defined with the

      tag.

  3. line break
    • we use
      tag

### HTML Attributes
  • All HTML elements can have attributes
  • Attributes provide additional information about elements
  • Attributes are always specified in the start tag
  • Attributes usually come in name/value pairs like: name="value"

The href Attribute

  • The tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to: Click here a-> anchor tag.

width and height Attributes

The tag should also contain the width and height attributes, which specifies the width and height of the image (in pixels):

alt Attribute

The required alt attribute for the tag specifies an alternate text for an image, if the image for some reason cannot be displayed. This can be due to slow connection, or an error in the src attribute, or if the user uses a screen reader. Example:-