SlideShare a Scribd company logo
1 of 118
Web Developer Salary
India USA UK
$64,715
(USD)
â‚ą6,07,426
(INR)
ÂŁ52,155
(GBP)
General Workshop
Structure
Part I
Putting it all together
(Demo Project)
Part II Part III
Conceptual overview
(HTML, CSS, JS) Challenge for you!
We will start shortly
Curious about how websites work?
Ye HTML,CSS and JavaScript hota kya hai and inka kaam kya
hai??
Let’s start with the Web Development Workshop!!
Browser:
â—Ź To access web we need browser
â—Ź They allow us to look up IP address and receive data
â—Ź This data is rendered to beautiful websites.
â—Ź Browser receives HTML, CSS and JS files from server.
HTML
Boilerplate:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>HTML Boilerplate</title>
<link rel="stylesheet" href="style.css">
</head>
<body></body>
</html>
Div Vs Span:
<div> <span>
1.The <div> tag is a block level
element.
1.The <span> tag is an inline
element.
2. It is best to attach it to a
section of a web page.
2. It is best to attach a CSS to a
small section of a line in a web
page.
3. It accepts align attribute. 3. It does not accept align
attribute.
4. This tag should be used to wrap
a section, for highlighting that
section.
4. This tag should be used to wrap
any specific word that you want to
highlight in your webpage.
IMAGE:
<img src="VJTI.jpg" alt="VJTI" width="500" height="600">
LINKS:
3 Types of Links in HTML Tags:
LISTS:
â—Ź <form> is just another kind of HTML tag
â—Ź Usually the purpose is to ask the user for information.
The information is then sent back to the server.
â—Ź Form elements include: buttons, checkboxes, text
fields, radio buttons, drop-down menus, etc
â—Ź A form usually contains a Submit button to send the
information in the form elements to the server
FORMS:
It has two attributes commonly, method and action
Action
• It is the url where the form data will be sent after the user clicks on
submit button.
Method (GET/POST)
• Method can vary depending on the type of data you want to send.
• In get method form data is sent as URL variables.
• In post method form data is sent as HTTP post transaction.
ATTRIBUTES OF FORMS:
â—Ź The <table> HTML element represents tabular
data — that is, information presented in a two-
dimensional table comprised of rows and
columns of cells containing data.
Table Element
TABLES
1.Block-level Elements
- Always starts on new line
Eg: <p> tag
1.Inline Elements
- Does not start on a new line.
Eg: <span> tag inside a <p>
tag
DISPLAY: INLINE AND BLOCK
â—Ź The HTML id attribute is used to specify a unique id for an HTML element.
â—Ź You cannot have more than one element with the same id in an HTML
document.
Note :-
â—Ź The id name is case sensitive!
â—Ź The id name must contain at least one character, cannot start with a number, and
must not contain whitespaces (spaces, tabs, etc.).
<h1 id="myHeader">My Header</h1>
ID Attribute
Class Attribute
• The HTML class attribute is used to specify a class for an HTML element.
Multiple HTML elements can share the same class.
• The class attribute is often used to point to a class name in a style sheet.
Tip: The class attribute can be used on any HTML element. Even if the two
elements do not have the same tag name, they can have the same class
name, and get the same styling.
Note: The class name is case sensitive!
<h1 class="intro">Header 1</h1>
• Lorem ipsum dolor sit amet, consectetur adipiscing elit.
• Vestibulum gravida placerat dictum. Sed sagittis accumsan dolor ut
malesuada.
• Duis sit amet placerat quam. Donec eget eros egestas nunc venenatis
suscipit at at felis.
Subtitle
HTML Entities
â—Ź Reserved characters in HTML must be replaced with character entities. Some
characters are reserved in HTML.
â—Ź If you use the less than (<) or greater than (>) signs in your text, the browser
might mix them with tags.
â—Ź Character entities are used to display reserved characters in HTML.
A character entity looks like -
&entity_name;
OR
&#entity_number;
• Lorem ipsum dolor sit amet, consectetur adipiscing elit.
• Vestibulum gravida placerat dictum. Sed sagittis accumsan dolor ut
malesuada.
• Duis sit amet placerat quam. Donec eget eros egestas nunc venenatis
suscipit at at felis.
Subtitle
Headline
â—Ź Semantic elements = elements with a meaning.
â—Ź A semantic element clearly describes its meaning to both the browser and the
developer.
â—Ź Examples of non-semantic elements: <div> and <span> - Tells nothing about
its content.
â—Ź Examples of semantic elements: <form>, <table>, and <article> - Clearly
defines its content.
â—Ź Many web sites contain HTML code like: <div id="nav"> <div class="header">
<div id="footer"> to indicate navigation, header, and footer.
Semantic Elements
â—Ź <article>
â—Ź <aside>
â—Ź <details>
â—Ź <figure>
â—Ź <footer>
â—Ź <header>
â—Ź <nav>
â—Ź <summary>
â—Ź <main>
â—Ź <section>
Some more Semantic
Elements
Final Slide HTML
CSS
Introduction
â—Ź Cascading Style Sheets
â—Ź Defines styles for web pages including design and
layout
â—Ź Responsible for variations in display for different
screens and devices
Inline CSS
â—Ź CSS property is in the body section attached with
element.
â—Ź It is specified within HTML tag using style attribute.
Types
Internal or Embedded CSS
â—Ź Used when single HTML document should be styled
uniquely.
â—Ź CSS rule set should be within HTML file in the head
section.
External CSS
â—Ź CSS property written in separate file with .css
extension.
â—Ź Should be linked to HTML using link tag.
â—Ź File contains only style property with the help of tag
attributes.(example: class,id,heading,etc.)
â—Ź Selector points to HTML element you want to style
â—Ź Declaration block contains one or more declarations separated by semicolons
â—Ź Each declaration includes CSS property name and value, separated by colon
â—Ź Declaration blocks surrounded by curly braces
SYNTAX
â—Ź p is selector in CSS(points to HTML element : <p>)
â—Ź color is property and red is a property value
â—Ź text-align is property and center is property value
Selectors
• Used to “find”(or select) the HTML elements you want to style.
Element selector ID Selector
Class selector
Universal selector
Grouping selector
Colors
â—Ź Can be defined using three main types:
â—Ź Name of colors (Eg. Orange,Tomato,Gray)
â—Ź RGB values (rgb(255,99,71))
â—Ź HEX values (#ff6347)
â—Ź Allows to specify following things of element:
â—Ź Style: dotted,dashed,solid,none,etc
â—Ź Width: 5px,thick,medium,etc
â—Ź Color: can be specified using rgb,hex or color names
â—Ź Radius: adds rounded border to element
Borders
Fonts
â—Ź Adds value to your text
● Has huge impact on how reader’s experience a website
â—Ź font-family: specifies font of a text
â—Ź font-style: normal,italic,oblique
â—Ź font-size: sets size of font
Margin & Padding
â—Ź Margins creates space around elements,outside of any defined borders
â—Ź Padding creates space around elements,inside of any defined borders
â—Ź length: specifies in px,cm
â—Ź percentage: specifies in % of width containing element
Float & Clear
Properties :
â—Ź Left- The elements floats to the left of its container.
â—Ź Right- The elements floats to the right of its container.
â—Ź None- The element does not float (it will be displayed just where it occurs in the text). This is default.
â—Ź Inherit- The element inherits the float value of its parent.
Float specifies how an element should float.
Clear specifies what elements can float beside the cleared element and on
which side.
#
#fruit {
float: right;
width: 48%;
}
#computer {
float: left;
width: 48%;
}
#stationary {
/* float: left; */
clear: both;
clear: left;
width: 100%;
}
Styling links & buttons
.btn{
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
background-color: crimson;
padding:6px;
border: none;
cursor:pointer;
font-size: 13px;
border-radius: 4px;
}
<a href="https://yahoo.com" class="btn">Read more</a>
<button class="btn">Contact us</button> simplified
Modified
Displays:
Syntax of Display Inline :
display: inline;
Syntax of Display Block :
display: block;
Syntax of Display inline-block :
display: inline-block;
Position property
Specifies the type of positioning method used for an element.
There are five different position values:
â—Ź static
â—Ź relative
â—Ź fixed
â—Ź absolute
â—Ź sticky
Navigation menu
Syntax
<ul cl<ul class="menu Navigation-Menu-Classes">
....
</ul>
An organised list of links to other webpages,
usually internal pages
JAVASCRIPT
WHAT IS JAVASCRIPT??
â—Ź JavaScript is a client-side cross-platform, object-oriented
scripting language.
â—Ź JS is the soul of every webpage. It is used to
programmatically perform actions within the page.
● It’s a great language to use to help build dynamic and
interactive web pages.
â—Ź JavaScript runs directly in the web browser, which means we
don’t need any additional resources to execute our
JavaScript code.
â—Ź It can also run on a server via Node.js
â—Ź So, for now what we only need is any text editor such as
VSCode to write JS code, execution would be handled by
browser itself
How to integrate JS to HTML??
There are three ways to execute javascript code in a website:
â—Ź Embed the code in the HTML using the <script> tag.
<script> /* some code */ </script>
â—Ź Import a Javascript file using the <script> tag:
<script src="file.js" />
â—Ź Inject the code on an event inside a tag:
<button onclick="javascript: /*code*/">press me</button>
DATA TYPES
Numbers
Null is a special value that represents an
empty or unknown value. For example, let
number = null;
The code above suggests that the number
variable is empty at the moment and may
have a value later.
Undefined means the value does not exist
in the compiler. It is the global object.
Null and Undefined
For declaring variables, we use the let keyword.
let someName = value;
VARIABLES
Variables are like labels for values.We use variables to store
data temporarily.
Rules for declaring variables
â—Ź Names can contain letters, digits,
underscores, and dollar signs.
â—Ź Names must begin with a letter
â—Ź Names can also begin with $ and _
â—Ź Names are case sensitive (y and Y are
different variables)
â—Ź Reserved words (like JavaScript
keywords) cannot be used as names
Dynamic Typing
JavaScript is dynamically typed language. We don’t need to
define the type of variable, JS interprets it.
There are following types of operators in JavaScript.
1.Arithmetic Operators
2.Comparison (Relational) Operators
3.Bitwise Operators
4.Logical Operators
5.Assignment Operators
6.Special Operators
Operators
JavaScript Operators are symbols that are used to
perform operations on operands.
Arithmetic Operators
Arithmetic operators are used to perform arithmetic operations on
the operands. The following operators are known as JavaScript
arithmetic operators.
Comparison Operators
The JavaScript comparison operator compares the two operands.
BitWise Operators
The bitwise operators perform bitwise operations on operands.
Logical Operators
Assignment Operators
Special Operators
JavaScript Strings
â—Ź In JavaScript, there are three ways to write a string: they can be written
inside single quotes (' '), double quotes (" "), or backticks (` `).
The type of quote used must match on both sides, however it is possible that
all three styles can be used throughout the same script.
'This string uses single quotes.';
"This string uses double quotes.";
â—Ź The third and newest way to create a string is called a template literal.
Template literals use the backtick (also known as a grave accent) and work the
same way as regular strings with a few additional bonuses,
`This string uses backticks.`;
A string is a sequence of one or more characters that may consist of letters, numbers, or
symbols. Strings in JavaScript are primitive data types and immutable.
One special feature of the template literal feature is the ability to include
expressions and variables within a string. Instead of having to use
concatenation, we can use the ${} syntax to insert a variable.
const poem = "The Wide Ocean";
const author = "Pablo Neruda";
const favePoem = `My favorite poem is ${poem}
by ${author}.`;
output:
My favorite poem is The Wide Ocean by Pablo Neruda
String Methods
Declaration of an Array
There are basically two ways to declare an array.
Example:
var House = [ ]; // method 1
var House = new Array(); // method 2
JavaScript arrays are resizable and can contain a
mix of different data types.
ARRAYS
In JavaScript, array is a single variable that is used to store
different elements. It is often used when we want to store list
of elements and access them by a single variable.
Initialisation of Array
Example 1:
// Initializing while declaring
var house = ["1BHK", "2BHK", "3BHK", "4BHK"];
Example 2:
// Creates an array of 4
undefined elements
var house = new Array(4);
// Now assign values
house[0] = "1BHK"
house[1] = “2BHK
house[2] = "3BHK"
house[3] = "4BHK"
We can store Numbers, Strings and Boolean
in a single array.
// Storing number, boolean, strings in an
Array
var house = ["1BHK", 25000, "2BHK", 50000,
"Rent", true];
Example
3:
//Accessing array elements
var house1=house[0]
OBJECTS
A javaScript object is an
entity having state and
behavior (properties and
method). For example: car,
pen, bike, chair, glass,
keyboard, monitor etc.
There are 3 ways to create objects:
1.By object literal
2.By creating instance of Object directly (using new
keyword)
3.By using an object constructor (using new keyword)
4.Using es6 classes:
To explore more,click here
Creating Objects in JavaScript
Suppose you need to create a program to create a
circle and color it. You can create two functions
to solve this problem:
a function to draw the circle
a function to color the circle
Dividing a complex problem into smaller chunks
makes your program easy to understand and reusable.
JavaScript also has a huge number of inbuilt
functions. For example, Math.sqrt() is a function
to calculate the square root of a number.
Functions
Example
// declaring a function named greet()
function greet() {
console.log("Hello there");
}
Calling a function
// function call
greet();
The syntax to declare a function is:
function nameOfFunction () {
// function body
}
LOOPS
The JavaScript loops are
used to iterate the piece
of code using for, while,
do while or for-in loops.
It makes the code
compact. It is mostly
used in array.
There are four types of loops in JavaScript.
1.for loop
2.while loop
3.do-while loop
4.for-in loop
FOR LOOP :
For….In loop
CODE
RESULT
While Loop
CODE
RESULT
Do While Loop
CODE
RESULT
EVENTS
On Click Event
DEMO WEB PAGE USING HTML, CSS AND JS
HTML Emmet
CSS Styling for entire webpage
HEADER
CSS FOR HEADER
HTML FOR TEXT
CSS FOR TEXT
HTML and JS for Images
CSS FOR IMAGES
CSS for Social Media Images
Ready for a
challenge?
sontakkesiddhant1@gmail.com
Email it to:
Deadline: 28th September (11:59 PM)
Any Questions?

More Related Content

Similar to Introduction to Web Development.pptx

Introduction to HTML-CSS-Javascript.pdf
Introduction to HTML-CSS-Javascript.pdfIntroduction to HTML-CSS-Javascript.pdf
Introduction to HTML-CSS-Javascript.pdfDakshPratapSingh1
 
Dsc Charusat Learning React Part 1
Dsc Charusat Learning React Part 1 Dsc Charusat Learning React Part 1
Dsc Charusat Learning React Part 1 JainamMehta19
 
Web Development.pptx
Web Development.pptxWeb Development.pptx
Web Development.pptxRaghav271104
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfDineshKumar522328
 
BVK_PTT_HTML-Unit - III (1).pptx
BVK_PTT_HTML-Unit - III (1).pptxBVK_PTT_HTML-Unit - III (1).pptx
BVK_PTT_HTML-Unit - III (1).pptxpanoosha2
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Hatem Mahmoud
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxwewit44414
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/jsKnoldus Inc.
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
css and Input attributes
css and Input attributescss and Input attributes
css and Input attributesSiji P
 
Web development basics (Part-1)
Web development basics (Part-1)Web development basics (Part-1)
Web development basics (Part-1)Rajat Pratap Singh
 
Web development intership Presentation.pptx
Web development intership Presentation.pptxWeb development intership Presentation.pptx
Web development intership Presentation.pptxbodepallivamsi1122
 
AttributesL3.pptx
AttributesL3.pptxAttributesL3.pptx
AttributesL3.pptxKrishRaj48
 
Web Development basics with WordPress
Web Development basics with WordPressWeb Development basics with WordPress
Web Development basics with WordPressRashna Maharjan
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 

Similar to Introduction to Web Development.pptx (20)

Introduction to HTML-CSS-Javascript.pdf
Introduction to HTML-CSS-Javascript.pdfIntroduction to HTML-CSS-Javascript.pdf
Introduction to HTML-CSS-Javascript.pdf
 
Dsc Charusat Learning React Part 1
Dsc Charusat Learning React Part 1 Dsc Charusat Learning React Part 1
Dsc Charusat Learning React Part 1
 
Web Development.pptx
Web Development.pptxWeb Development.pptx
Web Development.pptx
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
BVK_PTT_HTML-Unit - III (1).pptx
BVK_PTT_HTML-Unit - III (1).pptxBVK_PTT_HTML-Unit - III (1).pptx
BVK_PTT_HTML-Unit - III (1).pptx
 
mst_unit1.pptx
mst_unit1.pptxmst_unit1.pptx
mst_unit1.pptx
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptx
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
css and Input attributes
css and Input attributescss and Input attributes
css and Input attributes
 
Html
HtmlHtml
Html
 
Web development basics (Part-1)
Web development basics (Part-1)Web development basics (Part-1)
Web development basics (Part-1)
 
Web development intership Presentation.pptx
Web development intership Presentation.pptxWeb development intership Presentation.pptx
Web development intership Presentation.pptx
 
AttributesL3.pptx
AttributesL3.pptxAttributesL3.pptx
AttributesL3.pptx
 
Html-Prabakaran
Html-PrabakaranHtml-Prabakaran
Html-Prabakaran
 
Web Development basics with WordPress
Web Development basics with WordPressWeb Development basics with WordPress
Web Development basics with WordPress
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Html
HtmlHtml
Html
 
Html5 ppt
Html5 pptHtml5 ppt
Html5 ppt
 

Recently uploaded

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

Introduction to Web Development.pptx

  • 1.
  • 2. Web Developer Salary India USA UK $64,715 (USD) â‚ą6,07,426 (INR) ÂŁ52,155 (GBP)
  • 3. General Workshop Structure Part I Putting it all together (Demo Project) Part II Part III Conceptual overview (HTML, CSS, JS) Challenge for you!
  • 4.
  • 5. We will start shortly
  • 6. Curious about how websites work? Ye HTML,CSS and JavaScript hota kya hai and inka kaam kya hai?? Let’s start with the Web Development Workshop!!
  • 7. Browser: â—Ź To access web we need browser â—Ź They allow us to look up IP address and receive data â—Ź This data is rendered to beautiful websites. â—Ź Browser receives HTML, CSS and JS files from server.
  • 9.
  • 10.
  • 11. Boilerplate: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial- scale=1.0"> <title>HTML Boilerplate</title> <link rel="stylesheet" href="style.css"> </head> <body></body> </html>
  • 12.
  • 13.
  • 14. Div Vs Span: <div> <span> 1.The <div> tag is a block level element. 1.The <span> tag is an inline element. 2. It is best to attach it to a section of a web page. 2. It is best to attach a CSS to a small section of a line in a web page. 3. It accepts align attribute. 3. It does not accept align attribute. 4. This tag should be used to wrap a section, for highlighting that section. 4. This tag should be used to wrap any specific word that you want to highlight in your webpage.
  • 15. IMAGE: <img src="VJTI.jpg" alt="VJTI" width="500" height="600">
  • 16. LINKS: 3 Types of Links in HTML Tags:
  • 18.
  • 19. â—Ź <form> is just another kind of HTML tag â—Ź Usually the purpose is to ask the user for information. The information is then sent back to the server. â—Ź Form elements include: buttons, checkboxes, text fields, radio buttons, drop-down menus, etc â—Ź A form usually contains a Submit button to send the information in the form elements to the server FORMS:
  • 20. It has two attributes commonly, method and action Action • It is the url where the form data will be sent after the user clicks on submit button. Method (GET/POST) • Method can vary depending on the type of data you want to send. • In get method form data is sent as URL variables. • In post method form data is sent as HTTP post transaction. ATTRIBUTES OF FORMS:
  • 21.
  • 22.
  • 23. â—Ź The <table> HTML element represents tabular data — that is, information presented in a two- dimensional table comprised of rows and columns of cells containing data. Table Element
  • 24.
  • 26. 1.Block-level Elements - Always starts on new line Eg: <p> tag 1.Inline Elements - Does not start on a new line. Eg: <span> tag inside a <p> tag DISPLAY: INLINE AND BLOCK
  • 27. â—Ź The HTML id attribute is used to specify a unique id for an HTML element. â—Ź You cannot have more than one element with the same id in an HTML document. Note :- â—Ź The id name is case sensitive! â—Ź The id name must contain at least one character, cannot start with a number, and must not contain whitespaces (spaces, tabs, etc.). <h1 id="myHeader">My Header</h1> ID Attribute
  • 28. Class Attribute • The HTML class attribute is used to specify a class for an HTML element. Multiple HTML elements can share the same class. • The class attribute is often used to point to a class name in a style sheet. Tip: The class attribute can be used on any HTML element. Even if the two elements do not have the same tag name, they can have the same class name, and get the same styling. Note: The class name is case sensitive! <h1 class="intro">Header 1</h1>
  • 29. • Lorem ipsum dolor sit amet, consectetur adipiscing elit. • Vestibulum gravida placerat dictum. Sed sagittis accumsan dolor ut malesuada. • Duis sit amet placerat quam. Donec eget eros egestas nunc venenatis suscipit at at felis. Subtitle
  • 30.
  • 31. HTML Entities â—Ź Reserved characters in HTML must be replaced with character entities. Some characters are reserved in HTML. â—Ź If you use the less than (<) or greater than (>) signs in your text, the browser might mix them with tags. â—Ź Character entities are used to display reserved characters in HTML. A character entity looks like - &entity_name; OR &#entity_number;
  • 32.
  • 33.
  • 34. • Lorem ipsum dolor sit amet, consectetur adipiscing elit. • Vestibulum gravida placerat dictum. Sed sagittis accumsan dolor ut malesuada. • Duis sit amet placerat quam. Donec eget eros egestas nunc venenatis suscipit at at felis. Subtitle Headline
  • 35. â—Ź Semantic elements = elements with a meaning. â—Ź A semantic element clearly describes its meaning to both the browser and the developer. â—Ź Examples of non-semantic elements: <div> and <span> - Tells nothing about its content. â—Ź Examples of semantic elements: <form>, <table>, and <article> - Clearly defines its content. â—Ź Many web sites contain HTML code like: <div id="nav"> <div class="header"> <div id="footer"> to indicate navigation, header, and footer. Semantic Elements
  • 36. â—Ź <article> â—Ź <aside> â—Ź <details> â—Ź <figure> â—Ź <footer> â—Ź <header> â—Ź <nav> â—Ź <summary> â—Ź <main> â—Ź <section> Some more Semantic Elements
  • 37.
  • 39. CSS
  • 40. Introduction â—Ź Cascading Style Sheets â—Ź Defines styles for web pages including design and layout â—Ź Responsible for variations in display for different screens and devices
  • 41. Inline CSS â—Ź CSS property is in the body section attached with element. â—Ź It is specified within HTML tag using style attribute. Types
  • 42.
  • 43. Internal or Embedded CSS â—Ź Used when single HTML document should be styled uniquely. â—Ź CSS rule set should be within HTML file in the head section.
  • 44.
  • 45. External CSS â—Ź CSS property written in separate file with .css extension. â—Ź Should be linked to HTML using link tag. â—Ź File contains only style property with the help of tag attributes.(example: class,id,heading,etc.)
  • 46.
  • 47. â—Ź Selector points to HTML element you want to style â—Ź Declaration block contains one or more declarations separated by semicolons â—Ź Each declaration includes CSS property name and value, separated by colon â—Ź Declaration blocks surrounded by curly braces SYNTAX
  • 48. â—Ź p is selector in CSS(points to HTML element : <p>) â—Ź color is property and red is a property value â—Ź text-align is property and center is property value
  • 49. Selectors • Used to “find”(or select) the HTML elements you want to style. Element selector ID Selector
  • 51. Colors â—Ź Can be defined using three main types: â—Ź Name of colors (Eg. Orange,Tomato,Gray) â—Ź RGB values (rgb(255,99,71)) â—Ź HEX values (#ff6347)
  • 52.
  • 53. â—Ź Allows to specify following things of element: â—Ź Style: dotted,dashed,solid,none,etc â—Ź Width: 5px,thick,medium,etc â—Ź Color: can be specified using rgb,hex or color names â—Ź Radius: adds rounded border to element Borders
  • 54.
  • 55. Fonts â—Ź Adds value to your text â—Ź Has huge impact on how reader’s experience a website â—Ź font-family: specifies font of a text â—Ź font-style: normal,italic,oblique â—Ź font-size: sets size of font
  • 56.
  • 57.
  • 58. Margin & Padding â—Ź Margins creates space around elements,outside of any defined borders â—Ź Padding creates space around elements,inside of any defined borders â—Ź length: specifies in px,cm â—Ź percentage: specifies in % of width containing element
  • 59. Float & Clear Properties : â—Ź Left- The elements floats to the left of its container. â—Ź Right- The elements floats to the right of its container. â—Ź None- The element does not float (it will be displayed just where it occurs in the text). This is default. â—Ź Inherit- The element inherits the float value of its parent. Float specifies how an element should float. Clear specifies what elements can float beside the cleared element and on which side.
  • 60. # #fruit { float: right; width: 48%; } #computer { float: left; width: 48%; } #stationary { /* float: left; */ clear: both; clear: left; width: 100%; }
  • 61. Styling links & buttons .btn{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: bold; background-color: crimson; padding:6px; border: none; cursor:pointer; font-size: 13px; border-radius: 4px; } <a href="https://yahoo.com" class="btn">Read more</a> <button class="btn">Contact us</button> simplified Modified
  • 62. Displays: Syntax of Display Inline : display: inline; Syntax of Display Block : display: block; Syntax of Display inline-block : display: inline-block;
  • 63. Position property Specifies the type of positioning method used for an element. There are five different position values: â—Ź static â—Ź relative â—Ź fixed â—Ź absolute â—Ź sticky
  • 64. Navigation menu Syntax <ul cl<ul class="menu Navigation-Menu-Classes"> .... </ul> An organised list of links to other webpages, usually internal pages
  • 66. WHAT IS JAVASCRIPT?? â—Ź JavaScript is a client-side cross-platform, object-oriented scripting language. â—Ź JS is the soul of every webpage. It is used to programmatically perform actions within the page. â—Ź It’s a great language to use to help build dynamic and interactive web pages. â—Ź JavaScript runs directly in the web browser, which means we don’t need any additional resources to execute our JavaScript code. â—Ź It can also run on a server via Node.js â—Ź So, for now what we only need is any text editor such as VSCode to write JS code, execution would be handled by browser itself
  • 67. How to integrate JS to HTML?? There are three ways to execute javascript code in a website: â—Ź Embed the code in the HTML using the <script> tag. <script> /* some code */ </script> â—Ź Import a Javascript file using the <script> tag: <script src="file.js" /> â—Ź Inject the code on an event inside a tag: <button onclick="javascript: /*code*/">press me</button>
  • 68.
  • 69.
  • 72. Null is a special value that represents an empty or unknown value. For example, let number = null; The code above suggests that the number variable is empty at the moment and may have a value later. Undefined means the value does not exist in the compiler. It is the global object. Null and Undefined
  • 73.
  • 74. For declaring variables, we use the let keyword. let someName = value; VARIABLES Variables are like labels for values.We use variables to store data temporarily.
  • 75. Rules for declaring variables â—Ź Names can contain letters, digits, underscores, and dollar signs. â—Ź Names must begin with a letter â—Ź Names can also begin with $ and _ â—Ź Names are case sensitive (y and Y are different variables) â—Ź Reserved words (like JavaScript keywords) cannot be used as names
  • 76.
  • 77. Dynamic Typing JavaScript is dynamically typed language. We don’t need to define the type of variable, JS interprets it.
  • 78. There are following types of operators in JavaScript. 1.Arithmetic Operators 2.Comparison (Relational) Operators 3.Bitwise Operators 4.Logical Operators 5.Assignment Operators 6.Special Operators Operators JavaScript Operators are symbols that are used to perform operations on operands.
  • 79. Arithmetic Operators Arithmetic operators are used to perform arithmetic operations on the operands. The following operators are known as JavaScript arithmetic operators.
  • 80. Comparison Operators The JavaScript comparison operator compares the two operands.
  • 81.
  • 82. BitWise Operators The bitwise operators perform bitwise operations on operands.
  • 86. JavaScript Strings â—Ź In JavaScript, there are three ways to write a string: they can be written inside single quotes (' '), double quotes (" "), or backticks (` `). The type of quote used must match on both sides, however it is possible that all three styles can be used throughout the same script. 'This string uses single quotes.'; "This string uses double quotes."; â—Ź The third and newest way to create a string is called a template literal. Template literals use the backtick (also known as a grave accent) and work the same way as regular strings with a few additional bonuses, `This string uses backticks.`; A string is a sequence of one or more characters that may consist of letters, numbers, or symbols. Strings in JavaScript are primitive data types and immutable.
  • 87. One special feature of the template literal feature is the ability to include expressions and variables within a string. Instead of having to use concatenation, we can use the ${} syntax to insert a variable. const poem = "The Wide Ocean"; const author = "Pablo Neruda"; const favePoem = `My favorite poem is ${poem} by ${author}.`; output: My favorite poem is The Wide Ocean by Pablo Neruda
  • 89. Declaration of an Array There are basically two ways to declare an array. Example: var House = [ ]; // method 1 var House = new Array(); // method 2 JavaScript arrays are resizable and can contain a mix of different data types. ARRAYS In JavaScript, array is a single variable that is used to store different elements. It is often used when we want to store list of elements and access them by a single variable.
  • 90. Initialisation of Array Example 1: // Initializing while declaring var house = ["1BHK", "2BHK", "3BHK", "4BHK"]; Example 2: // Creates an array of 4 undefined elements var house = new Array(4); // Now assign values house[0] = "1BHK" house[1] = “2BHK house[2] = "3BHK" house[3] = "4BHK" We can store Numbers, Strings and Boolean in a single array. // Storing number, boolean, strings in an Array var house = ["1BHK", 25000, "2BHK", 50000, "Rent", true]; Example 3: //Accessing array elements var house1=house[0]
  • 91. OBJECTS A javaScript object is an entity having state and behavior (properties and method). For example: car, pen, bike, chair, glass, keyboard, monitor etc.
  • 92. There are 3 ways to create objects: 1.By object literal 2.By creating instance of Object directly (using new keyword) 3.By using an object constructor (using new keyword) 4.Using es6 classes: To explore more,click here Creating Objects in JavaScript
  • 93. Suppose you need to create a program to create a circle and color it. You can create two functions to solve this problem: a function to draw the circle a function to color the circle Dividing a complex problem into smaller chunks makes your program easy to understand and reusable. JavaScript also has a huge number of inbuilt functions. For example, Math.sqrt() is a function to calculate the square root of a number. Functions
  • 94. Example // declaring a function named greet() function greet() { console.log("Hello there"); } Calling a function // function call greet(); The syntax to declare a function is: function nameOfFunction () { // function body }
  • 95. LOOPS The JavaScript loops are used to iterate the piece of code using for, while, do while or for-in loops. It makes the code compact. It is mostly used in array.
  • 96. There are four types of loops in JavaScript. 1.for loop 2.while loop 3.do-while loop 4.for-in loop FOR LOOP :
  • 100. EVENTS
  • 102. DEMO WEB PAGE USING HTML, CSS AND JS
  • 103.
  • 104.
  • 105.
  • 106.
  • 108. CSS Styling for entire webpage
  • 109. HEADER
  • 113. HTML and JS for Images
  • 115. CSS for Social Media Images