Professional Documents
Culture Documents
ON
SUBJECT NOTES
Submitted to MAHARAJA RANJIT SINGH PUNJAB TECHNICAL UNIVERSITY
in partial fulfillment of the requirement of the award of the degree of
B.TECH
in
Submitted By
1
PROJECT REPORT
ON
SUBJECT NOTES
B.TECH
In
2
PREFACE
Project is an integral part of B. Tech and each and every student has to undergo the
report for in a institute.
This record is concerned about our practical training during the 7 th semester of our
B.Tech. I have taken my Practical project .During this training, We got to learn
many new things about web development and the current requirements of
companies. This project proved to be a milestone in our knowledge of present
industry. Every say and every moment was an experience in itself, an experience
which theoretical study can’t provide.
3
ACKNOWLEDGEMENT
It is my pleasure to be indebted to various people, who directly or indirectly contributed in the
development of this work and who influenced my thinking, behavior and acts during the course
of study.
I express my sincere gratitude to Er.Jyoti Rani worthy HOD and Er. Naresh Garg, Report for
providing me an opportunity to undergo project lab.
I am thankful to Er. Naresh Garg for his support, cooperation, and motivation provided to me
during the training for constant inspiration, presence and blessings.
I also extend my sincere appreciation to all my friends who provided their valuable suggestions
and precious time in accomplishing my project report.
Lastly, I would like to thank the almighty and my parents for their moral support and my friends
with whom I shared my day-to-day experience and received lots of suggestions that my quality
of work.
PARAS MISHRA
JASKIRAT SINGH
4
DECLARATION
I, PARAS MISHRA AND JASKIRAT SINGH, Roll No. 190280058, 190280150 respectively,
B.Tech (Semester- VII) of the Giani Zail Singh Campus College of Engineering &
Technology, Bathinda hereby declare that the Project Report entitled “SUBJECT NOTES” is
an original work and data provided in the study is authentic to the best of my knowledge. This
report has not been submitted to any other Institute for the award of any other degree.
PARAS MISHRA
JASKIRAT SINGH
Place:
Date:
5
CONTENTS
6
CHAPTER 1:Introduction to Web development
There are different types of web developers who focus on different areas. These include:
Frontend developers: Frontend developers implement web page designs using HTML
and CSS. They make sure the website looks pretty on different devices, and that the forms
and buttons work.
Backend developers: Backend developers create the backbone of the web application. They
write code logic that handles a user’s input (for example, what should happen when you
click the signup button after filling in a form).
Full stack developers: Full stack developers do bits of both backend and frontend. Depending
on the problem at hand, they can switch cape and move stacks.
</body>
</html>
8
Attributes usually come in name/value pairs like:name=” value”
The <a>tag defines a hyperlink.the href attributes specifies the URL of the page
The <img> tag is used to embed an image in an HTML page. The src attribute specifies the path
to the image to be displayed:
Example:
<img src="food.jpg">
The <img> tag should also contain the width and height attributes, which specifies the width and height of the
image (in pixels):
Example:
The required alt attribute for the <img> 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
HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important
heading. <h6> defines the least important heading.
9
Example:
Output:
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
2.4.1:HTML Paragraph
The HTML <p> element defines a paragraph.
A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before
and after a paragraph.
Example:
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal
rule. The <hr> element is used to separate content (or define a change) in an HTML page:
Example:
<hr>
10
<h2>This is heading 2</h2>
<hr>
Use <br> if you want a line break (a new line) without starting a new paragraph:
Example:
Output: This is
2.7.1:HTML Styles
The HTML style attribute is used to add styles to an element, such as color, font, size, and more.
Example
:
I am Red
I am Blue
I am Big
Syntax: <tagname style="property:value;">
# HTML Fonts
The CSS font-family property defines the font to be used for an HTML element:
Example:
<h1 style="font-family:Algerian;">This is a heading</h1>
# HTML Colour
11
The CSS color property defines the text color for an HTML element:
Example:
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
Output
:
This is a heading
This is a heading
# HTML Size
The CSS font-size property defines the text size for an HTML element:
Example:
<h1 style="font-size:160%;">This is a heading</h1>
<p>This is a paragraph.</p>
HTML links are hyperlinks. You can click on a link and jump to another document.
When you move the mouse over a link, the mouse arrow will turn into a little hand.
Example:
Example:
HTML lists allow web developers to group a set of related items in lists.
Example:
Item 1.Item
Item 2.Item
Item 3.Item
Item 4.Item
The HTML class attribute is used to specify a class for an HTML element.
Example:
You cannot have more than one element with the same id in an HTML document.
Example:
HTML tables allow web developers to arrange data into rows and columns.
Example:
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</
table>
Output:
Last name:
Paras
14
2.15. : HTML Input Tags
An <input> element can be displayed in many ways, depending on the type attribute.
Example:
<input type=”text”>
<input type=”radio”>
<input type=”checkbox”>
Example:
body {
background-color: lightblue;
}
15
h1{
color: white;
text-align: center;
}
p{
font-family: verdana;
font-size: 20px;
}
CSS selectors are used to "find" (or select) the HTML elements you want to style.
The id selector uses the id attribute of an HTML element to select a specific element.
The id of an element is unique within a page, so the id selector is used to select one unique element!
To select an element with a specific id, write a hash (#) character, followed by the id of the element.
Example:
#para1 {
text-align: center;
color: red;
}
The class selector selects HTML elements with a specific class attribute.
To select elements with a specific class, write a period (.) character, followed by the class name.
Example:
.center {
text-align: center;
16
color: red;
}
The universal selector (*) selects all HTML elements on the page.
Example:
*{
margin: 0px;
padding: 0px;
}
Comments are used to explain the code, and may help when you edit the source code at a later date.
A CSS comment is placed inside the <style> element, and starts with /* and ends with */:
Example:
p{
color: red; /* Set text color to red */
}
The CSS background properties are used to add background effects for elements.
In these chapters, you will learn about the following CSS background properties:
background-color
background-image
background-repeat
background-attachment
background-position
background (shorthand property)
Example:
17
body {
background-color: lightblue;
}
The CSS border properties allow you to specify the style, width, and color of an element's border.
The border style property can have from one to four values (for the top border, right border, bottom border,
and the left border).
The CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each
side of an element (top, right, bottom, and left).
CSS has properties for specifying the margin for each side of an element:
margin-top
margin-right
margin-bottom
margin-left
18
auto - the browser calculates the margin
length - specifies a margin in px, pt, cm, etc.
%- specifies a margin in % of the width of the containing element
inherit - specifies that the margin should be inherited from the parent element
Padding is used to create space around an element's content, inside of any defined borders. The
CSS padding properties are used to generate space around an element's content, inside of any defined
borders.
With CSS, you have full control over the padding. There are properties for setting the padding for each
side of an element (top, right, bottom, and left).
CSS has properties for specifying the padding for each side of an element:
padding-top
padding-right
padding-bottom
padding-left
Example:
div {
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
The height and width properties are used to set the height and width of an element.
The height and width properties do not include padding, borders, or margins. It sets the height/width of
the area inside the padding, border, and margin of the element.
19
# CSS height and width Values
The height and width properties may have the following values:
auto - This is default. The browser calculates the height and width
length - Defines the height/width in px, cm etc.
% - Defines the height/width in percent of the containing block
initial - Sets the height/width to its default value
inherit - The height/width will be inherited from its parent
value example:
div {
height: 200px;
width: 50%;
background-color: powderblue;
}
with max-width
div {
max-width: 500px;
height: 100px;
background-color: powderblue;
}
20
Chapter 4: Bootstrap
4.0: Introduction to Bootstrap
It is an open-source and free CSS framework, which helps in directing a responsive device-friendly
mobile-first front-end web page development tool. Bootstrap includes the CSS (Cascading Style
Sheets), and an optional JavaScript supported design template (plug-ins) that deals with typography,
implementation of buttons, forms, and various other components user interface. This framework helps
in faster web development and supports developers in creating responsive web pages faster.
Also, Bootstrap needs jQuery for functioning. jQuery is an exceptionally admired and commonly used
JavaScript library which simplifies the cross-browser compatible functionality.
Example:
<form action="/html/tags/html_form_tag_action.cfm">
<div class="form-group">
</div>
21
<div class="form-group">
</div>
</form>
5.0.1 : INTRODUCTION
Syntax:
Fixed values
Variable values
22
5.1.0: Javascript Variables
4 Ways to Declare a JavaScript Variable:
Using var
Using let
Using const
Using nothing
Example of var:
var x = 5;
var y = 6;
var z = x + y;
Syntax: if (condition) {
// block of code to be executed if the condition is true
}
Example
:
if (hour < 18) {
greeting = "Good day";
}
if else:
Use the else statement to specify a block of code to be executed if the condition is false.
Syntax: if (condition) {
// block of code to be executed if the condition is true
} else {
// block of code to be executed if the condition is false
}
Example:
24
greeting = "Good evening";
}
for loop:
example:
While loop:
The while loop loops through a block of code as long as a specified condition is true.
Example:
25
5.4.0: Functions
Syntax:
Example:
1. By array literal
2. By creating instance of Array directly (using new keyword)
3. By using an Array constructor (using new keyword)
Syntax:
Example
: <script>
var emp=["Sonoo","Vimal","Ratan"];
for (i=0;i<emp.length;i++)
{
document.write(emp[i] + "<br/>");
}
</script>
26
Chapter 6: PHP
6.0 : Introduction
In PHP, a variable starts with the $ sign, followed by the name of the variable:
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)
Example:
27
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
echo and print are more or less the same. They are both used to output data to the screen.
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.
Example:
Echo statement:
<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?>
Print statement:
<?php
print "<h2>PHP is Fun!</h2>";
print "Hello world!<br>";
print "I'm about to learn PHP!";
?>
Variables can store data of different types, and different data types can do different things.
String
Integer
Float (floating point numbers - also called double)
28
Boolean
Array
Object
NULL
Resource
Example:
<?php
$x = 5985;
echo $y;
?>
PHP if Statement
Syntax: If (condition) {
code to be executed if condition is true;
}
Example:
<?php
$t = date("H");
29
PHP if else Statement
The if...else statement executes some code if a condition is true and another code if that condition is
false.
Syntax: if (condition) {
code to be executed if condition is true;
} else {
code to be executed if condition is false;
}
Example:
<?php
$t = date("H");
The if...elseif...else statement executes different codes for more than two conditions.
Syntax: if (condition) {
code to be executed if this condition is true;
} elseif (condition) {
code to be executed if first condition is false and this condition is true;
} else {
code to be executed if all conditions are false;
}
Example:
<?php
$t = date("H");
29
6.5.0 :PHP Loops
Loops are used to execute the same block of code again and again, as long as a certain condition is true
while - loops through a block of code as long as the specified condition is true
do...while - loops through a block of code once, and then repeats the loop as long as the
specified condition is true
for - loops through a block of code a specified number of times
foreach - loops through a block of code for each element in an array
The while loop - Loops through a block of code as long as the specified condition is true.
Example:
<?php
$x = 1;
while($x <= 5)
{ echo "The number is: $x <br>";
$x++;
}
?>
The for loop - Loops through a block of code a specified number of times.
{
code to be executed for each iteration;
}
Example:
<?php
for ($x = 0; $x <= 10; $x++)
30
{
echo "The number is: $x <br>";
}
?>
Example: <?php
$colors = array("red", "green", "blue", "yellow");
PHP has over 1000 built-in functions that can be called directly, from within a script, to perform a
specific task.
Besides the built-in PHP functions, it is possible to create your own functions.
Example:
<?php
function writeMsg() {
echo "Hello world!";
}
31
6.7.0 :PHP Arrays
Example:
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo count($cars);
?>
The data in a MySQL database are stored in tables. A table is a collection of related data, and it
consists of columns and rows.
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
32
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
// Create database
$sql = "CREATE DATABASE myDB";
if ($conn->query($sql) === TRUE)
{ echo "Database created
successfully";
} else {
echo "Error creating database: " . $conn->error;
}
7.1.1 Introduction
I am working on a SUBJECT NOTES project.
33
This project is very beneficial if anyone wants to go in website
development field .The Programming language that we used in this project is follows:
34
*HTML
*CSS
*BOOTSTRAP
• Title Name
• About US
• Contact
• Profile
• Courses
• Competitive
• Upload
• Logo in
I think the test did went smoothly and I had no problems,except for the fact that the some
operations that I could not do .
Therefore, I had to take the sorry quickly
Discussion:
This site is used for searching study material which can be used for competitive exams like Jee ,
Gate, etc . It can also be used for college student or school students for their exams as we have
every study material you need . WE also provide very easily understandable material and if you
think you have more easy and understandable material than us then u can send or upload your
notes or material in our site , we will examine your notes and if we see if they are correct without
any problem and easily understandable than us then we will upload your notes or material on our
website . We hope you all will fell better using this site and help us recommend to others .
36
Conclusion:
During making of this project I learned so many things. This project is completed on VS code
using Frontend Languages like ,HTML ,CSS, Javascript . One of the most beneficial work of this
site is that it helps student find study material for their college or school studies .
37