Chapter 1: Introduction To HTML and Css
Chapter 1: Introduction To HTML and Css
Chapter 1: Introduction To HTML and Css
1|Page
176400307593
2|Page
176400307593
</audio>
<audio controls autoplay>
<source src="3.mp3">
</audio>
<audio controls autoplay loop>
<source src="3.mp3">
</audio>
<audio controls loop > <!-- background-->
<source src="3.mp3">
</audio>
<audio controls>
<source src="3.mp3">
<source src="/wp-content/uploads/flamingos.mp3"> You will see this text if native audio
playback is not supported.
<!-- You could use this fall-back feature to insert a JavaScript-based audio player. -->
</audio>
</body>
</html>
<!DOCTYPE html>
<head>
</head>
<body>
<video >
<source src="a.mp4">
</video>
<video controls >
<source src="a.mp4">
</video>
<video controls="autoplay">
<source src="a.mp4">
3|Page
176400307593
</video>
<video controls="autoplay loop">
<source src="a.mp4">
</video>
</body>
</html>
css
<!DOCTYPE html>
<head>
4|Page
176400307593
<link
href="https://fonts.googleapis.com/css?family=Mountains+of+Christmas&display=swap"
rel="stylesheet"
/>
<title></title>
</head>
<body>
<!--
<h1 id="font">hello</h1>
<p id="textcss">You must be the change you wish to see in the world</p>
<p id="textcss">
</p>
</body>
</html>
5|Page
176400307593
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="link.css" />
<!-- <link
href="https://fonts.googleapis.com/css?family=Mountains+of+Christmas&disp
lay=swap" rel="stylesheet"> -->
<title></title>
</head>
<body>
<a
href="https://www.google.com/ "
target="_blank"
>
here is your link!!!
</a>
</body>
</html>
CSS////////////////////////////////
a:link {
color: green;
}
a:visited {
color: black;
6|Page
176400307593
}
a:hover {
color: #193259;
}
a:active {
color: red;
}
POSITION
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="pos.css">
</head>
<body>
<div class="father">
<div class="child1">child1</div>
<div class="child2">child2</div>
7|Page
176400307593
<div class="child3">child3</div>
<div class="child4">child4</div>
</div>
</body>
</html>
*{
margin: 0;
padding: 0;
}
.father{
width: 700px;
height: 300px;
background-color: #bf6592;
position: absolute;
}
.child1{
width:100px;
height: 50px;
background-color: #5a56b8;
position: absolute;
left: 60px;
top: 70px;
}
.child2{
width:100px;
height: 50px;
8|Page
176400307593
background-color: #52b379;
position: absolute;
right: 10px;
}
.child3{
width:100px;
height: 50px;
background-color:#63295b;
position: absolute;
bottom: 0;
right: 0;
}
.child4{
width:100px;
height: 50px;
background-color:#c4c474;
position: absolute;
bottom: 0;
}
9|Page
176400307593
CSS 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="ani.css" />
<title>Document</title>
</head>
<body>
<div id="wrapper">
<div id="object">
It's ME!
</div>
<div id="left">
left
</div>
</div>
</body>
</html>
10 | P a g e
176400307593
11 | P a g e
176400307593
OUTPUT STATEMENT
variables
$a = 12.3;
$b=123;
$stR = "YATRIK";
var_dump($stR);
var_dump($a);
variables
integers
$a = 12;
Doubles
$a = 1322.34;
Boolean
$st = "YATRIK";
Strings
12 | P a g e
176400307593
$value = "hi";
$value1 = true;
settype($value,"integer");
settype($value1,"string");
echo gettype($value)."<br>";
echo gettype($value1);
?>
PHP OPERATORS
<?php
$x = 10;
$x = 20;
$x += 30;
$x = 50;
$x -= 20;
$x = 5;
13 | P a g e
176400307593
$x *= 25;
$x = 50;
$x /= 10;
$x = 100;
$x %= 15;
?>
<?php
$x = 25;
$y = 35;
$z = "25";
?>
14 | P a g e
176400307593
<?php
$x = 10;
$x = 10;
$x = 10;
$x = 10;
?>
<?php
var_dump($z);
?>
15 | P a g e
176400307593
FLOW CONTROLS
<?php
$t = date("H");
if ($t<20) {
echo "30";
else if ($t==20) {
else{
echo "string";
?>
<?php
$a =0;
while ($a<=10) {
$a++;
continue;
16 | P a g e
176400307593
do{
echo "string";
$a++;
}while($a==10);
for($i=1;$i<=10;$i++)
$hi = array("hello","world");
foreach($hi as $value)
?>
17 | P a g e
176400307593
ARRAY
$fruits = array('mango', 'orange','graps');
$NUMBER = array(50,40,30);
18 | P a g e
176400307593
<?php
$fruits = array('mango', 'orange','graps');
$fruit= 'hello world';
$fruit1 = " HELLO WORLD";
// var_dump($fruits);
$var = null;
// var_dump($var);
echo strlen($fruit),"<br>";
echo str_word_count($fruit),"<br>";
echo strrev($fruit),"<br>";
echo strpos($fruit, 'world'),"<br>";
echo str_replace('world', 'suraj', $fruit),"<br>";
echo ord($fruit)."<br>";
echo strtolower($fruit1)."<br>";
echo trim($fruit1)."<br>";
echo substr($fruit,3,1)."<br>";
echo strcmp($fruit,$fruit1)."<br>";
?>
19 | P a g e
176400307593
<?php
$a = 10;
$b = 20;
$c = 4.43;
echo ceil($c)."<br>";
echo floor($c)."<br>";
echo abs($c)."<br>";
echo min($c,$a)."<br>";
echo max($c,$a)."<br>";
echo pow(5,2)."<br>";
echo sqrt(25)."<br>";
echo "System date ::".date("Y M d");
?>
20 | P a g e
176400307593
21 | P a g e