Professional Documents
Culture Documents
Module I: HTML - General Introduction to Internet and WWW; HTML: Structured language,
Document types, Rules of html, Html tags, Head tags, Body tags, Headings, Divisions and
Centering, Quotations, Preformatted text, Lists, Horizontal Rules, Block level elements, Text
level elements,Character entities, Comments, Fonts, Tables: Table tags, Colors, Color names,
Color values, Marquee
tag. Advanced HTML - Linking in html: Anchor tags, Layer tags, Link relationships, URL:
Relative, Absolute, Image, Image maps, Frames: Layouts, Targeting, No frame tag, Floating
frames, Audio, Embed tag, Forms: form tag and its attributes.
Module II: CSS: Style sheet Basics, Adding Style to a Document, CSS (Cascading Style Sheet)
and HTML Elements, Selectors, Document Structure and Inheritance.
Module III: PHP: Overview of PHP, The building blocks of PHP: variables, globals & super
globals
Data types: Set type, type casting, test type, Operators & Expressions, Flow control functions in
PHP,
Functions: Defining a function variable scope, calling a function returning values, setting default
values for arguments, passing variable reference, built in functions
Module IV: Arrays: Creating arrays (associative & multidimensional), Array related functions.
Working with Objects, Working with string functions: Formatting strings, Using Date and Time
functions.
Forms in PHP: Form elements, adding elements to a form, creating a simple input form,
combining HTML & PHP code on a single page
redirecting the user, creating a send mail form, File upload form, working with files and
directories.
Cookies: Introduction, different types of cookies, setting a cookie with PHP, deleting a cookie
Servers :
Clients :
TCP / IP
Internet Domain:
Internet Gateway
InterNIC:
NCST:
The style attribute is used to add styles to an element, such as color, font,
size, and more.
The lang Attribute : You should always include the lang attribute inside
the <html> tag, to declare the language of the Web page. This is meant to
assist search engines and browsers.
All HTML elements can have attributes
The href attribute of <a> specifies the URL of the page the link goes to
The src attribute of <img> specifies the path to the image to be
displayed
The width and height attributes of <img> provide size information for
images
The alt attribute of <img> provides an alternate text for an image
The style attribute is used to add styles to an element, such as color,
font, size, and more
The lang attribute of the <html> tag declares the language of the Web
page
The title attribute defines some extra information about an element.
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important
heading
The browser moves onto a new line, skipping one line between the previous
line and the new line.
https://www.geeksforgeeks.org/html-center-tag/
The <center> tag in HTML is used to set the alignment of text into the
center. This tag is not supported in HTML5. CSS’s property is used to set the
alignment of the element instead of the center tag in HTML5.
Syntax:
<center> Contents... </center>
Center-align text (with CSS):
<style>
h1 {text-align: center;}
p {text-align: center;}
div {text-align: center;}
</style>
Quotations, https://www.w3schools.com/html/html_quotation_elements.asp
Tag Description
Lists https://www.w3schools.com/html/html_lists.asp
HTML lists allow web developers to group a set of related items in lists.
7/4/2023
Fonts, https://www.w3schools.com/tags/tag_font.asp
Advanced HTML
Module 2
https://www.w3schools.com/htmL/html_css.asp
http://web.simmons.edu/~grabiner/comm244/weekfour/css-concepts.html
CSS Selectors
CSS selectors are used to "find" (or select) the HTML elements you want to
style.
https://www.w3schools.com/css/css_selectors.asp
https://www.w3schools.com/css/css_combinators.asp
https://www.w3schools.com/css/css_pseudo_classes.asp
https://www.w3schools.com/css/css_pseudo_elements.asp
https://www.w3schools.com/css/css_attribute_selectors.asp
What is PHP?
PHP is an acronym for "PHP: Hypertext Preprocessor"
PHP is a widely-used, open source scripting language
PHP scripts are executed on the server
PHP is free to download and use
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. Download it from the official PHP resource: www.php.net
PHP is easy to learn and runs efficiently on the server side
A PHP script is executed on the server, and the plain HTML result is sent back to
the browser.
<html>
<body>
</body>
</html>
Comments in PHP
single-line comments,
// This is a single-line comment
# This is also a single-line comment
multiple-line comments, /*
This is a multiple-lines comment block
that spans over multiple
lines
*/
PHP Variables
A variable can have a short name (like x and y) or a more descriptive name
(age, carname, total_volume).
A variable starts with the $ sign, followed by the name of the variable
A variable name must start with a letter or the underscore character
A variable name cannot start with a number
A variable name can only contain alpha-numeric characters and
underscores (A-z, 0-9, and _ )
Variable names are case-sensitive ($age and $AGE are two different
variables)
The scope of a variable is the part of the script where the variable can be
referenced/used.
local
global
static
A variable declared within a function has a LOCAL SCOPE and can only be
accessed within that function:
To do this, use the global keyword before the variables (inside the function):
<?php
$x = 5;
$y = 10;
function myTest() {
global $x, $y;
$y = $x + $y;
}
myTest();
echo $y; // outputs 15
?>
PHP also stores all global variables in an array called $GLOBALS[index].
The index holds the name of the variable. This array is also accessible from
within functions and can be used to update global variables directly.
The differences are small: echo has no return value while print has a return
value of 1 so it can be used in expressions. echo can take multiple
parameters (although such usage is rare) while print can take one
argument. echo is marginally faster than print.
String
Integer
Float (floating point numbers - also called double)
Boolean
Array
Object
NULL
Resource
PHP String
A string is a sequence of characters.
A string can be any text inside quotes. You can use single or double
quotes.
Eg: $x = "Hello world!";
PHP Integer
An integer data type is a non-decimal number between -2,147,483,648 and
2,147,483,647.
Eg: $x = 5985;
PHP Float
A float (floating point number) is a number with a decimal point or a number
in exponential form.
$x = 10.365;
PHP Boolean
A Boolean represents two possible states: TRUE or FALSE.
$x = true;
$y = false;
PHP Array
An array stores multiple values in one single variable.
$cars = array("Volvo","BMW","Toyota");
PHP Object
Classes and objects are the two main aspects of object-oriented
programming.
PHP Resource
The special resource type is not an actual data type. It is the storing of a
reference to functions and resources external to PHP.
Fourth module
Redirecting : https://www.geeksforgeeks.org/how-to-make-a-redirect-in-php
Directories: https://www.w3schools.com/php/php_ref_directory.asp
Cookies: https://www.w3schools.com/php/php_cookies.asp