Digital Dreams
Digital Dreams
**** BOOTSTRAP*******
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.
** 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.
****
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>`.
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.
#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 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)
//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);
// Javascript Functions
// Using Return In JS
//var a = 30;
//var a = 30;
//if( a == b){
// document.write("I am correct");
//}else{
// document.write("I am wrong");
//}
//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();
// 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();
//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);
//var a = 0;
// while( a <= 10){
// if( a == 5){
// break;
// }
// document.write(a);
// a++;
// }
// }
// Javascrip Array
//Examples:
// var course = new Array("graphics design", "web development", "UI/UX")
// document.write(course);
/* 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.
// 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
createLi.setAttribute('class', 'list-item');
createLi.innerText = 'Iron Man';
createLi.style.fontweight = 'bold';
createLi.style.backgroundColor = 'blue';
createLi.style.fontsize = '50px';
*document.querySelectorAll
**** 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');
});
```
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, 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.
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:
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.
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.
------------------------------------------
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:
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).
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:
* PHP Variables:
Local and Glocal variables.
* In PHP your validation comes before the HTML code unlike the former in
Javascript.
** Array in PHP:
** 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
*** 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.
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
** 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.
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
<?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";
?>
___________________________________________
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.
-------------------------------------------------------
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.
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.
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.
-----------------------------------------------------------
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.
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.
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:
Governance Structure:
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:
Risk Management:
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:
-----------------------------------------------------------
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