0% found this document useful (0 votes)
6 views24 pages

Digital Dreams

The document provides an overview of Bootstrap, an open-source front-end framework for building responsive websites, detailing its key features such as responsive design, grid system, CSS components, and JavaScript plugins. It also covers how to link Bootstrap to a project via downloading or using a CDN, as well as commenting in HTML. Additionally, the document includes a comprehensive introduction to JavaScript, covering variables, data types, operators, functions, loops, and the Document Object Model (DOM).

Uploaded by

benhoffmanplc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views24 pages

Digital Dreams

The document provides an overview of Bootstrap, an open-source front-end framework for building responsive websites, detailing its key features such as responsive design, grid system, CSS components, and JavaScript plugins. It also covers how to link Bootstrap to a project via downloading or using a CDN, as well as commenting in HTML. Additionally, the document includes a comprehensive introduction to JavaScript, covering variables, data types, operators, functions, loops, and the Document Object Model (DOM).

Uploaded by

benhoffmanplc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 24

steven.spencerppl@gmail.

com Godgrace101 LKD new


[email protected],,,, W4

** Ecommerce platfporms category


Shopify
Blinkit
Shopee
noon.com
Vtex commerce platform
zalando
quickteller
HCL Commerce Cloud
SIVVI

[email protected]

[email protected],,, ismail400 LKD


Blessedyr2024

**** BOOTSTRAP*******

Bootstrap is a popular open-source front-end framework that helps developers build


responsive and mobile-first websites. It provides a collection of CSS and
JavaScript components, such as grids, forms, buttons, navigation bars, modals, and
more, that can be easily customized and integrated into web projects.

Some of the key features of Bootstrap include:

1. Responsive Design: Bootstrap allows developers to create websites that


automatically adjust their layout and content based on the screen size and
resolution of the device being used. This ensures that the website looks and
functions well on desktops, tablets, and smartphones.

2. Grid System: Bootstrap provides a flexible and responsive grid system that
allows developers to create responsive layouts for their web pages. The grid system
is based on a 12-column layout, making it easy to divide the page into multiple
sections and arrange content in a visually appealing manner.

3. CSS Components: Bootstrap offers a wide range of pre-built CSS components that
can be used to style various elements of a website. These components include
typography, buttons, forms, tables, alerts, badges, and more. Developers can easily
customize the appearance of these components to match the design requirements of
their project.

4. JavaScript Plugins: Bootstrap includes a set of JavaScript plugins that add


interactivity and functionality to web pages. These plugins handle tasks such as
carousel sliders, modals, dropdown menus, tooltips, scrollspy, and more. They are
easy to integrate and enhance the user experience of the website.

5. Customization Options: Bootstrap provides a customization tool called "Sass"


that allows developers to modify the default variables and styles of the framework.
This enables them to create a unique and personalized design for their website by
changing colors, fonts, spacing, and other visual aspects.
6. Browser Compatibility: Bootstrap is designed to be compatible with all modern
browsers, including Chrome, Firefox, Safari, Edge, and Internet Explorer. It
ensures consistent and reliable performance across different browsers, reducing the
need for extensive cross-browser testing.

Overall, Bootstrap simplifies the web development process by offering a


comprehensive set of tools and components that streamline the creation of
responsive and visually appealing websites.

** Responsive Spacing:
Bootstrap uses responsive spacing classes to control the margin and padding of
elements. These classes are applied based on the device size. For example, you can
use classes like p-4 to add padding to an element. The number in the class name
represents the spacing scale (0 to 5), with 0 being no padding and 5 being the
largest.

** Padding Utilities:
Bootstrap provides specific padding utility classes for each side of an element.
You can use classes like py-3 for vertical padding or px-2 for horizontal padding.
Similarly, pt-2 and pb-3 are used for top and bottom padding, respectively.

** Responsive Padding Utilities:


Bootstrap also supports responsive padding utilities, allowing you to set different
padding values for different screen sizes. For example, p-md-3 sets padding 3 for
medium and larger screens.
---------------------------------

****

There are two main ways to link Bootstrap to a project:

1. Downloading Bootstrap:
- Download the Bootstrap files from the official website
(https://getbootstrap.com/).
- Link the CSS file in the head section of your HTML file using the `<link>`
tag: `<link rel="stylesheet" href="path/to/bootstrap.css">`.
- Link the JavaScript file at the end of the body section of your HTML file
using the `<script>` tag: `<script src="path/to/bootstrap.js"></script>`.

2. Using a Content Delivery Network (CDN):


- Include the CSS file by adding the following link in the head section of your
HTML file: `<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">`.
- Include the JavaScript file by adding the following script tag at the end of
the body section of your HTML file: `<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></
script>`.

Using a CDN is a popular method as it allows you to directly link to the latest
version of Bootstrap hosted on a content delivery network, eliminating the need to
download and host the files locally.
--------------------------

*****

To comment on Bootstrap, you can use HTML comment tags. Here's how you can add
comments:
1. Single-line comment: Use `<!-- -->` to add a comment on a single line. For
example:
```html
<!-- This is a comment -->
```

2. Multi-line comment: Use `<!--` to start the comment and `-->` to end it. For
example:
```html
<!--
This is a
multi-line comment
-->
```

You can add comments anywhere in your HTML code, including within Bootstrap
classes, elements, or custom styles. Comments are not rendered on the webpage and
are only visible in the source code. They are useful for adding notes or
explanations to your code, making it easier for others to understand or for your
own reference.

** ms-auto will shift the container to right


** me-auto will shift the container to left
** fs front size

#2f1c6a

****JAVASCRIPT*****

//Javascript Variables
//var carName = "Honda";
//var a = 50;
//var d = true;
//document.write(typeof carName);
//document.write(typeof a);
//document.write(typeof d);

//Methods in Javascript
//Example of a Methods: alert(), splice() while property are length, typeof

//Concatenation in Javascript
// var a = "Ada is";
//var b = 24;
//var c = "years old";
//document.write(a + b + c);

//Var a = {firstname: "mike", lastnmae:"John",};


//document.write(a.firstname + "" + a.lastname);

//class work: using Concatenation diplay "obi is 30 years and Ada is 40


years",
//let the 30 and 40 be decleard as a Variables

//var b = 30;
//var d = 40
//document.write("obi is " + b + " years and Ada is " + d + " years" );
// Data Types in Javascript.
// string ""
// Number 1234
// Boolean True or False
//Object
// Null
// Undefined

//var a = 5
//document.write(typeof a)

//var a = {firstname:"mike", lastnmae:"jhon",};


//document.write(a.firstname + " " + a.lastname);

//Operators
//Arithmetic Operators:
// + Addition
// _ substration
// * multiplication
// % modulus
// ++ increment
// -- decrement

//Assignment Operators
// = simple Assignment
// += Add on Assignment
// -= substract on Assignment
// *= Multiplication on Assignment
// /= Division Assignment
// %= Modulus Assignment

// comparison Operators
// == Equal, check only the value.
// === Identical ,, check both the value and the data type.
// != Not Equal
// !== Not Identcal
// > greater than
// < less than
// >= greater than equal to
// <= less than equal to

// Logical Operator
// && = and
// || = Or
// ! = Not

//var x = 10;
//var y = 9;
//document.write(!(x < y)) ;
//var a = 20;
//var b = 20;
//var c = 5;
//var d = 10;
//document.write(a=b || c=d);

// Class Work
// For Arithmetic Operators:

// var x= 40;
// var y= 20;

//var z = x + y;
//var a = x - y;
//var b = x / y;
//var c = x % y;
//var h = x * y;
//var i = ++x;
//var o = --x;

// document.write( z + " " + a + " " + b + " " + c + " " + h + " " + i + " " +
o);

// For Assignment Operators:

// Javascript Functions

// Local and Global Variables


//local: decleared and accessed in the function.
// Global: decleared and accessed any where in the function

//function myName(firstName, secondName, thirdName) {


// document.write("I " + firstName + "in " + secondName + " " + thirdName)
//}
// myName(" am ", " digital", " academy");

// Using Return In JS

//function myName(firstName, secondName){


// return firstName + secondName;
//}
// var a = myName(10,5);
//document.write(a);

// function myName(firstName, secondName){


// return firstName * secondName;
//}
//var a = myName(10,5);
// document.write(a);

// Javascript if and else statement

//var a = 30;
//var a = 30;
//if( a == b){
// document.write("I am correct");

//}else{
// document.write("I am wrong");
//}

// Using else if statement


//var a = 30;
//var a = "30";
//if( a === b){
// document.write("I am correct");

// }else if(a == b){


// document.write("I am still correct");
//}

//var a = 30;
//var b = "30";
//function myName() {
// if( a === b ){
// document.write("I am correct");
// }else if( a == b){
// document.write("I am still correct");
// }else{
// document.write("I am wromg");
// }
// }
// myName();

// Using the switch statement

// var a = 30;
// var b = "30";
// function myName() {
// switch (a == b) {
// case false:
// document.write("I am wromg");
// break;
// case false:
// document.write("I am still correct");
// break;
// default:
// document.write("I am wrong");

// }
//}
//myName();

//class work: create 2 variables to be string, using ur comparison operator


of d 3 equal sign (===), to get d value that is true if statement

//var a = "10";
//var b = "10";
//function myName(){
// if( a === b ){
// document.write("I am correct ");
// }

// }
// myName();

// Javascript Loops
// 3 Types of Javascript Loops
// 1. For Loop
//for(a=1; a<=5; a++){
// document.write(a);
// }
// 2. While Loop
// var a = 0;
// while(a <=10){
// document.write(a + "<br/>");
// a++;
// }

// 3. Do While Loop
// var a = 0;
// do{
// document.write(a + "<br/>");
// a++;
// }while(a <= 10);

// Break and Continue Property:

//var a = 0;
// while( a <= 10){
// if( a == 5){
// break;
// }
// document.write(a);
// a++;
// }

// for( a=1; a<= 10; a++){


// if( a == 5){
// continue;
// }
// document.write(a);

// }

// Javascrip Array
//Examples:
// var course = new Array("graphics design", "web development", "UI/UX")
// document.write(course);

// var course = new Array("graphics design", "web development", "UI/UX")


// document.write(course[1] + " " + course[2]);

//var course = new Array();


//course[0] = "graphics design";
//course[1] = "web development";
//course[2] = "UI/UX";
//document.write(course[1] + " " + course[2]);

//var course = ["graphic design", "web development", "UI/UX"]


//document.write(course[1] + " " + course[2]);

// Using Associative Array: By giving it a 'name'


//var course = ["graphic design", "web development", "UI/UX"];
//course["name"] = "Data Analysis"
//document.write(course[1] + " " + course["name"]);

// document.write(course.Length) to count the number of index in array


// document.write(course.concat(courses)); to join 2 Arrays example:
//var course = ["graphic design", "web development", "UI/UX"];
// var course = ["graphic design2", "web development2", "UI/UX2"];
// var course[3] = "computer operation"
// document.write(course.concat(courses));

/* myCar("volve", "Honda")
myCar("volve", "Honda")
myCar("volve", "Honda")
for (a = 0; a < =3; a++) {
document.write("volvo" + " " + "Honda" + "<br/>");
document.write(a);

}*/

//Class work: Declear an array with values of 30, 25 and graphic design use an
associative array to add UI/UX. Diplay any of the values and the associative array
been added.

//var course = [30, 25, "graphic design"];


// course["name"] = "UI/UX";
// document.write(course[1] + " " + course["name"]);

//for(a = 1; a<=20; a++){


// document.write("volvo" + " " + "Honda" + "<br/>");
// }

// Class work:

function myData() {
var a = 12;
var b = 10;
return a + b;

}
document.write(myData(12,10))

function myName() {
var a = "I am"
var b = "School"
document.write(" I am " + " " + "going" + " " + "to " + "School")
}
myName("I am", "School")

//Element.setAttribute()
createEle.setAttribute("id", "mycreateEle");
createEle.getAttribute("id");
createEle.classlist.add("list-item");
// createEle.classlist.remove("list-item");
createEle.innerText = "Star Wars";
var movies = doocument.querySelector("list-item");
console.log(movies.innerText);
console.log(movies.innerHTML);
// Accessing Parent Element and Nodes
var ul = document.querySelector('ul')
console.lon(ul.parentNode.parentNode.parentNode);
console.lon(ul.parentElement.parentElement);

console.log(ul.childNodes);
console.log(ul.childNodes[1].style.backgroundColor = 'red');
console.log(ul.firstchild)
console.log(ul.lastchild);
console.log(ul.firstElementChild);
console.log(ul.lastElementChild);
console.log(ul.previousSibling);
console.log(ul.previousElementSibling);
console.log(ul.nextSibling);
console.log(ul.nextElementSibling);

// Class work

//How to create form using JS


var addLi = document.querySelector('ul');
var createLi = document.createElement('li');
addLi.append(createLi);

createLi.setAttribute('class', 'list-item');
createLi.innerText = 'Iron Man';
createLi.style.fontweight = 'bold';
createLi.style.backgroundColor = 'blue';
createLi.style.fontsize = '50px';

** DOM: Document Object Model


Examples:
* document.addEventLister : To set event

* document.getElementById : It gets the Id Attribute.

*document.getElementByClassName : It gets the class name .

* document.getElementByTagName : It gets the tag element.

* document.querySelector: It gets the element, attribute and class of a document.


to target the querySelector, first add # before the ID.

*document.querySelectorAll

* document.setAttribute : it is used to create a new attribute.

* document.getAttribute: To get attributes name.

* document.removeAttribute : To remove the atrribte name

*document.innerHTML: modify the text and the Html


* document.innerText: Add a text to the element
*document.ClassList: it is used to modify the class attributes. It is either add or
remove
* document.parentElement : It access the parent element.

*document.parentNode: it modify the parents node by giving text first.


document.childNode
document.children
document.firstChild
document.lastChild
document.firstElementChild
document.lastElementChild
document.previousSibling
document.previousElementSibling
document.nextElementSibling
document.nextSibling
*document.createElement : to create element
document.append : To join two elements
--------------------------

**** To set a hover effect in JavaScript, you can use the `mouseover` and
`mouseout` events along with the `addEventListener` method.

Here's an example of how you can set a hover effect on an element using JavaScript:

HTML:
```html
<div id="element">Hover over me</div>
```

CSS:
```css
.hover-effect {
background-color: yellow;
color: black;
}
```

JavaScript:
```javascript
const element = document.getElementById('element');

element.addEventListener('mouseover', function() {
element.classList.add('hover-effect');
});

element.addEventListener('mouseout', function() {
element.classList.remove('hover-effect');
});
```

In the example above, we first select the element using `document.getElementById`


and store it in the `element` variable. Then, we add event listeners for the
`mouseover` and `mouseout` events. When the mouse is over the element, the `hover-
effect` class is added to the element's class list using `classList.add()`,
applying the desired hover effect. When the mouse is moved out of the element, the
`hover-effect` class is removed using `classList.remove()`, reverting the element's
appearance.

Note: Make sure to define the CSS class `.hover-effect` in your CSS file or inline
style to specify the desired hover effect.
***** AJAXS****
Download file called XAMPP. Open htdocs and create folder callled AJAX, PHP

Ajax: send a request to the web broswer

*** Http Status


200: ok
403: Forbidden
404: Not Found

Ajax, which stands for Asynchronous JavaScript and XML, is a set of web development
techniques used to create asynchronous (or "live") web applications. The key idea
behind Ajax is to update parts of a web page with new data from the server without
requiring a full page reload. This leads to a more dynamic and responsive user
experience.

Here's an explanation of the key components and concepts related to Ajax:


1. Asynchronous Operations:

Traditional web applications often involve synchronous requests, where the


entire page is reloaded when a user interacts with it. Ajax allows asynchronous
communication with the server, meaning that a request can be made to the server,
and the rest of the page can continue to function without waiting for the response.

2. XMLHttpRequest (XHR) Object:

The XMLHttpRequest object is the core of Ajax. It allows JavaScript to make


HTTP requests to the server and handle the server's response without requiring a
page reload.
Modern web development often uses the fetch API as an alternative to
XMLHttpRequest.

3. Data Formats:

While the "X" in Ajax originally stood for XML, it's common to use other data
formats, such as JSON (JavaScript Object Notation), for data interchange. JSON is
lightweight and easier to work with in JavaScript.

4. Callback Functions:

Ajax relies heavily on callback functions. These functions are executed in


response to events, such as the completion of an Ajax request. Common callbacks
include success callbacks for handling a successful response and error callbacks
for handling errors.

5. DOM Manipulation:

One of the main purposes of Ajax is to update the Document Object Model (DOM)
dynamically. This allows you to change the content of a page without requiring a
full reload.

6. Examples of Ajax Use:

Form Submission: Submitting a form without refreshing the entire page.


Live Search: Updating search results as the user types in a search box.
Real-time Updates: Updating parts of a page with new data without refreshing
the entire page.
Interactive Maps: Loading map data dynamically as the user interacts with the
map.

7. Frameworks and Libraries:

Many JavaScript frameworks and libraries, such as jQuery, provide simplified


methods for working with Ajax, making it easier for developers to implement and
manage asynchronous operations.

8. Cross-Origin Resource Sharing (CORS):

Ajax requests are subject to the same-origin policy, which restricts requests
to be from the same domain. To make requests to a different domain, you might need
to deal with CORS, a security feature implemented by browsers.

In summary, Ajax is a powerful technique in web development that enables the


creation of dynamic and responsive user interfaces by allowing asynchronous
communication between the web page and the server. It has become a fundamental part
of modern web development, and its principles are used in many contemporary
frameworks and libraries.

------------------------------------------

FILEZILLA:

FileZilla is a popular and open-source FTP (File Transfer Protocol) client that
allows you to transfer files between your local computer and a remote server. It's
commonly used by web developers and administrators to upload, download, and manage
files on web servers. Here's a brief explanation of how FileZilla works and some of
its key features:
1. Download and Installation:

You can download FileZilla from its official website (https://filezilla-


project.org/) and install it on your computer.
FileZilla is available for Windows, macOS, and Linux.

2. Interface:

FileZilla has a user-friendly interface with a split-screen view. The left side
represents your local computer, and the right side represents the remote server.

3. Connecting to a Server:

To connect to a server, you need to enter the server's address, your username,
and password in the "Quickconnect" bar at the top of the FileZilla window.
Alternatively, you can use the "Site Manager" to save and manage multiple
server configurations.

4. Transferring Files:

Once connected, you can drag and drop files between the local and remote
directories to transfer them.
FileZilla supports various transfer protocols, including FTP, SFTP (SSH File
Transfer Protocol), and FTPS (FTP Secure).

5. File and Directory Operations:


You can perform various file and directory operations such as renaming,
deleting, creating directories, and changing file permissions.

6. Queue and Transfer Status:

FileZilla has a transfer queue that shows the progress of file transfers. You
can pause, resume, and prioritize transfers.

7. Site Manager:

The Site Manager allows you to save and organize the connection details for
different servers. It's useful for managing multiple sites.

8. Bookmarks:

You can bookmark specific directories on both the local and remote sides for
quick access.

9. File Editing:

FileZilla includes a basic text editor for editing files directly on the
server.

10. Logging:

FileZilla logs all activities, making it easy to troubleshoot and review past
connections.

Security Note:

When dealing with sensitive information like usernames and passwords, it's
recommended to use secure protocols like SFTP or FTPS to encrypt your data during
transmission.

FileZilla is a powerful and versatile tool for managing files on remote servers.
It's widely used in web development and server administration due to its ease of
use and robust features.
-----------------------------------------

PHP:
<?php?>
localhost/folder/file

* To display data on screen in PHP use: echo or print. echo is more faster.
Dollar($) is a constant in PHP.

* PHP CONSTANT:
to declare a constant you will have to use the define keyword.

*php Operator:
Arithmetic
increment
comparison
logical
Assignment
conditional or ternary

*Assignment operators:
$a=$b => $a=$b $a is equal to $b
$a + =$b =>$a=$a+$b $a is Sum of $a and $b.
$a - =$b =>$a=$a-$b $a is Difference of $a and $b.
$a *=$b =>$a=$a*$b $a is Product of $a and $b.
$a /=$b =>$a=$a/$b $a is quotient of $a and $b.
$a %=$b =>$a=$a%$b $a is Modulus of $a and $b

* comparison :

$a == $b => Equal
$a === $b => Identical
$a != $b => Not equal
$a !== $b => Not identical
$a < $b => Less than
$a > $b => Greater than
$a <= $b => Less than or equal to
$a >= $b => Greater than or equal to

Logical operator:

$a and $b => AND =>TRUE if both $a and $b are TRUE.


$a or $b => OR =>TRUE if either $a or $b is TRUE.
$a xor $b => XOR => TRUE if either $a or $b is TRUE, but not both.
! $a => NOT TRUE => TRUE if $a is not TRUE.
$a && $b => AND => And TRUE if both $a and $b are TRUE.
$a || $b => Or => TRUE if either $a or $b is TRUE.

* In php we use dot(.) to concantinate


* True is 1
* False is empty

* PHP Variables:
Local and Glocal variables.
* In PHP your validation comes before the HTML code unlike the former in
Javascript.

* strlen : is used to get the length of your input

* To merge 2 files together in PHP:


the following is used
<?php
include("fun.php");
?>

The <?php?>, include, and the file name

** Array in PHP:

An array is a special variable that stores one or more values at


once.
For example if you want to store 100 numbers then instead of
defining 100 variables its easy to define an array of 100 length.
There are three different kinds of arrays and each array value is
accessed using a key which is called array index.
Numeric array
Associative array
Multidimensional array
To create an array we make use of the array() function.
**LOOPS IN PHP**

Types of loops in php


PHP supports following four loop types.
For loop - loops through a block of code a specified number of times.
while loop - loops through a block of code if and as long as a specified
condition is true.
Do loop...while - loops through a block of code once, and then repeats
the loop as long as a special condition is true.
Foreach loop - loops through a block of code for each element in an array.

** Functins in PHP:

date() function formats a local date and time, and returns the
formatted date string.
d - Represents the day of the month (01 to 31)
m - Represents a month (01 to 12)
Y - Represents a year (in four digits)
y - A two digit representation of a year a
l -(lowercase 'L') - Represents the day of the week
a-Lowercase am or pm

** User Defined Functions


 Function Definition
 Function Argument
 Returning Values
 Variable Functions

*** A function name must start with a letter or underscore character not
with a number, optionally followed by the more letters, numbers, or
underscore characters. Function names are case-insensitive.
An argument is a value that you pass to a function, and a parameter is
the variable within the function that receives the argument. However, in
common usage these terms are interchangeable i.e. an argument is a
parameter is an argument.

*** A function definition (or declaration) include:


 name
 parameters, if any
 body (statements that perform the functions task) Example
function functionName(parameters)
{
Body Code to be executed
}

** Object oriented programming(OOP)

*** DATABASE IN PHP


ON your xammp
type your localhost submit
go to your database on your display and enter your database name then create.
enter phpAdmin

second method:
click on SQL from your xammp localhost, enter the name and click on GO.
---> To check all Database in your software:
click on Sql and type SHOW DATABASES; enter GO to diplay all database in your
application.

To creat table:
A.i all increment

*** To creat Table using Mysql: paste the link on the dialogue diplayed on sql

CREATE TABLE bioinfo (id int(5) auto_increment primary


key, name VARCHAR(20), course VARCHAR(20),
-> dept VARCHAR(20), sex CHAR(1));

To show database: mysql> SHOW TABLES;


click on the student_db first before going to Sql

*** How to select from your database:


using the select: SELECT COLUMNNAME FROM TABLENAME; or click the select on your
mysql and follow up.

** using: ascending ASC and descending DESC:


SELECT `id`, `name`, `course`, `dept`, `sex` FROM `bioinfo` WHERE name = 'John' OR
course = 'database' ORDER BY id ASC

** using Update:
UPDATE `bioinfo` SET `name`='Ben',`course`='Javascript',`dept`='Tech',`sex`='M'
WHERE id = '1' this will update the the first row because the where id where
specify, if you remove the where id, it will update all.

** Delete data from your sql database:


DELETE FROM `bioinfo` WHERE id = '1' this will delete one row from your sql
database.

** How to delete Table from your menu:


DROP TABLE user_table

**** Short cut: control(CTRL H) to find and replace word in VS code

control F form

*** To open database in php using Xampp: switch on your xampp, click localhost from
your broswer.

*** In PHP:

1. $_POST: Used to access data sent to the server using the HTTP POST method.
2. $_GET: Used to access data sent to the server using the HTTP GET method.
3. isset(): Used to check if a variable is set and is not null.
4. strlen(): Used to get the length of a string.
5. array, which is used to create an array.

Usage examples:
- Use $_POST and $_GET to retrieve form data submitted through POST and GET
requests, respectively.
- Use isset() to check if a variable is set before using it to avoid undefined
variable warnings.
- Use strlen() to get the length of a string, helpful for validation or processing
string data.
- Use array() or [] to create an associative array

***My_project:
sssssi represent strings and integer

**** SESSION In PHP*******

<?php
session_start();
$_SESSION['username']="BigBen";
$_SESSION['password']="coding";
$_SESSION['email']="[email protected]";
echo "session data is saved";
?>

<?php
session_start();
if(isset($_SESSION['username'])){
echo "Welcome".$_SESSION['username'];
echo "And your password is".$_SESSION['password'];
echo "And your email is".$_SESSION['email'];
}else{
echo "please login again to continue";
}
?>

// Logout.php

<?php
session_start();
session_unset();
session_destroy();
echo "Variables destroyed";
?>
___________________________________________

*** DIGITAL MARKETING ***

1. Keyword Research:
Ensure "Secondary School in Nigeria" is a primary target keyword.
Identify and incorporate relevant long-tail keywords related to secondary
education in Nigeria.

2. Title Tag:
Craft a compelling title containing the target keyword.
Keep it under 60 characters to ensure it displays well in search results.

3. Meta Description:
Write a concise meta description that includes the target keyword
and encourages clicks.
Limit the meta description to around 150-160 characters.
4. URL Structure:
Include the target keyword in the URL.
Keep the URL short, relevant, and easily readable.

5. Header Tags:
Use H1 tags for the main page title, incorporating the target
keyword.
Implement H2 and H3 tags for subheadings, making content hierarchy
clear.

6. Content Optimization:
Create high-quality, informative content about secondary education
in Nigeria.
Aim for a word count that thoroughly covers the topic (around 1000
words or more).
Naturally incorporate the target keyword throughout the content.
Use variations of the keyword to avoid keyword stuffing.

7. Images Optimization:
Optimize images by compressing them for faster loading times.
Include descriptive alt text for images containing the target
keyword.

8. Internal Linking:
Link to relevant internal pages within your website, using
descriptive anchor text.
Ensure the links are contextually relevant to the content.

9. External Linking:
Include outbound links to authoritative sources related to secondary
education in Nigeria.
Ensure that the external links provide value to the reader.

10. Mobile Optimization:


Ensure that the page is mobile-friendly and displays well on
various devices.
Use responsive design to improve user experience.

11. Page Speed:


Optimize page speed for a better user experience and search engine
ranking.
Compress images, leverage browser caching, and minimize HTTP
requests.

12. Social Media Integration:


Add social sharing buttons to encourage sharing.
Share the page on relevant social media platforms.

13. Schema Markup:


Implement schema markup for education-related information to provide
more context to search engines.

14. User Experience (UX):


Prioritize a clean and user-friendly design.
Ensure easy navigation and a logical layout of content.

15. Monitor and Update:


Regularly monitor the page's performance using tools like Google
Analytics.
Update content as needed to keep it relevant and accurate.

-------------------------------------------------------

Question 2: Do a Keyword Research for an article “Can We Trust CryptoCurrency?”

Cryptocurrency trust
Trust in digital currency
Trustworthiness of cryptocurrencies
Crypto reliability
Security in cryptocurrency
Risks of cryptocurrency
Trust in blockchain technology
Trust in decentralized finance (DeFi)
Cryptocurrency scams
Trust in Bitcoin
Ethereum trust
Cryptocurrency regulations
Transparency in crypto
Trust and privacy in cryptocurrency
Trust in stablecoins
Cryptocurrency market trust
Trust factors in altcoins
Trustworthy crypto exchanges
Risks and benefits of trusting cryptocurrency
Cryptocurrency adoption and trust

-----------------------------------------------------

Question 3: What are the most important things to do for your website to rank in
Google?

High-Quality Content:
Create valuable, relevant, and high-quality content that addresses
the needs of your target audience.
Use proper grammar, spelling, and formatting to enhance
readability.

Keyword Research:
Conduct thorough keyword research to identify relevant terms your
audience is searching for.
Integrate these keywords naturally into your content, including
titles, headings, and throughout the body.

On-Page SEO:
Optimize meta tags (title tags, meta descriptions) with relevant
keywords.
Use descriptive and keyword-rich URLs.
Employ header tags (H1, H2, H3) to structure content.
Optimize images with descriptive alt text.

Mobile-Friendly Design:
Ensure your website is mobile-responsive as Google prioritizes
mobile-friendly sites.
Test your website's mobile-friendliness using Google's Mobile-
Friendly Test.
Page Loading Speed:
Improve page loading speed as it is a ranking factor. Compress
images, leverage browser caching, and minimize HTTP requests.

Backlinks:
Build high-quality and relevant backlinks from reputable websites.
Focus on natural link-building through content creation, outreach,
and partnerships.

User Experience (UX):


Provide a positive user experience with easy navigation and a clean
design.
Reduce bounce rates by offering valuable content and a clear call-
to-action.

Secure Website (HTTPS):


Use HTTPS to secure your website. Google considers HTTPS as a
ranking factor and it enhances user trust.

Social Signals:
Maintain an active presence on social media platforms. While social
signals may not have a direct impact on rankings, they can influence traffic
and brand visibility.

Regular Content Updates:


Keep your content fresh and relevant. Regularly update and add new
content to show Google that your site is active.

Local SEO (for Local Businesses):


Optimize your website for local search if you have a local
business. This includes creating a Google My Business profile and obtaining
positive reviews.

Structured Data Markup:


Implement structured data (schema markup) to provide additional
context to search engines about your content.

// USED TO LOCK YOUR USER DATABASE


session_start();
function sess(){
if(!isset($_SESSION['id'])){
echo '<script type="text/javascript">window.open("login.php","_self")</script>';
}else{
return false;
}
}
sess();

Experienced Web developer passionate about creating, engaging and dynamic online
experience . Proficient in HTLM, CSS, BOOTSTRAP, JAVASTRIPT and PHP with a keen eye
for design and user experience. Dedicated to delivering high quality responsive
websites that drive results. Let's collaborate to bring your digital vision to
life.
-------------------------------------------
Experienced Web developer passionate about creating, engaging and dynamic online
experience . Proficient in HTLM, CSS, BOOTSTRAP, JAVASTRIPT and PHP with a keen eye
for design and user experience. Dedicated to delivering high quality responsive
websites that drive results. Let's collaborate to bring your digital vision to
life.
-----------------------------------------------------------

Elevate Your Online Presence with Expert Web Development Solutions! 🚀

In today's digital age, a powerful online presence is the cornerstone of success


for businesses of all sizes. Whether you're a budding startup, a flourishing
enterprise, or an ambitious entrepreneur, having a professional website is non-
negotiable. At [Your Web Development Company], we specialize in crafting
captivating, high-performance websites that not only stand out but also drive
tangible results.

Why Choose Us?

Tailored Solutions: We understand that every business is unique, which is why


we don't believe in one-size-fits-all solutions. Our team works closely with you to
understand your goals, target audience, and brand identity, ensuring that your
website is tailor-made to reflect your vision and values.

Cutting-Edge Technology: Our developers are masters of their craft, proficient


in the latest web development technologies and trends. From responsive design and
intuitive navigation to seamless integration of e-commerce functionalities and
third-party APIs, we leverage cutting-edge tools to deliver unparalleled user
experiences.

Mobile Optimization: With the majority of internet traffic coming from mobile
devices, having a mobile-friendly website is no longer optional—it's essential. Our
websites are meticulously optimized for mobile responsiveness, ensuring that your
content looks and functions flawlessly across all devices and screen sizes.

Speed and Performance: In today's fast-paced world, users have little patience
for slow-loading websites. That's why we prioritize speed and performance in all
our web development projects. Through optimization techniques such as caching,
minification, and image compression, we guarantee lightning-fast loading times that
keep visitors engaged and satisfied.

Search Engine Optimization (SEO): A stunning website is worthless if it doesn't


attract visitors. Our SEO experts implement proven strategies to boost your
website's visibility on search engine results pages, driving organic traffic and
maximizing your online exposure.

Scalability and Flexibility: As your business grows, so should your website.


Our scalable and flexible solutions ensure that your website can easily adapt to
changing needs and accommodate future expansions without any hassle.

Robust Security: Protecting your website and your customers' data is paramount.
We implement robust security measures, including SSL encryption, regular security
audits, and proactive monitoring, to safeguard your website against potential
threats and vulnerabilities.

Ready to Transform Your Online Presence?


Don't settle for a mediocre website that fails to leave a lasting impression.
Partner with [Your Web Development Company] and unlock the full potential of your
online presence. Whether you need a sleek corporate website, a dynamic e-commerce
platform, or a custom web application, we've got you covered. Contact us today to
discuss your project requirements and take the first step toward digital success!
---------------------------------------------------------

Organizational Constitution of Old Secondary Boys Association

Vision Statement:
"To foster lifelong connections among alumni and support the continued success of
our alma mater."

Mission Statement:
"We aim to promote fellowship among alumni, contribute to the development of our
school, and support current students in achieving their academic and personal
aspirations."

Core Values:

Unity: We unite alumni in a shared commitment to our school's legacy and


future.
Excellence: We uphold high standards of achievement and character in all
endeavors.
Service: We give back to our community through volunteerism and philanthropy.
Integrity: We conduct ourselves with honesty, fairness, and respect.
Continuous Learning: We embrace lifelong learning and personal growth.

Objectives and Goals:

Organize annual reunions and networking events to strengthen alumni bonds.


Establish a scholarship fund to support deserving students in their educational
pursuits.
Collaborate with the school administration to enhance facilities and
educational programs.

Governance Structure:

Executive Committee: Composed of elected alumni leaders responsible for


overseeing association activities and initiatives.
Committees: Formed as needed to focus on specific areas such as events
planning, fundraising, and communications.

Policies and Procedures:

Membership: Open to all former students of the secondary school upon payment of
annual dues.
Financial Management: Maintain transparency and accountability in financial
transactions and reporting.
Event Organization: Follow established protocols for planning, promoting, and
executing events.

Code of Conduct:
Respect the diversity of opinions and backgrounds among alumni.
Act with integrity and uphold the reputation of our alma mater.
Support the association's mission and objectives through active participation
and constructive contributions.

Strategic Initiatives:

Launch a mentorship program connecting alumni with current students to provide


guidance and support.
Establish an alumni career network to facilitate professional development and
job placement opportunities.

Risk Management:

Identify potential risks to the association's reputation and financial


stability and implement measures to mitigate them.
Ensure compliance with legal and regulatory requirements governing nonprofit
organizations.

Stakeholder Engagement:

Engage with current students, faculty, and the broader community to foster
positive relationships and support mutual goals.
Seek input and feedback from members to continuously improve association
activities and initiatives.

Continuous Improvement:

Conduct periodic evaluations of association programs and services to assess


effectiveness and relevance.
Adapt strategies based on feedback and changing alumni needs and interests.

-----------------------------------------------------------

http://127.0.0.1:5500/Seaweb.html
http://127.0.0.1:5500/Calculator.html
http://127.0.0.1:5500/Project.html
http://127.0.0.1:5500/BSproject.html
http://127.0.0.1:5500/Bootstraplearn.html
http://127.0.0.1:5500/index.html

You might also like