SlideShare a Scribd company logo
HTML, CSS & JavaScript (ES6)
Learning React Series - I
Organizers
Jainam Mehta
Lead
Pratikraj Rajput
Tech Advisor
GitHub Code Link
https://github.com/charusat-
gdsc/event1-html-css-js
HTML
Link to our website:
https://dsccharusat.tech/
Some basic tags of HTML
● DOCTYPE - The declaration is not an HTML tag. It is an "information" to the browser about
what document type to expect.
● HEADER - The <header> element represents a container for introductory content or a set of
navigational links.
● FOOTER - The <footer> tag defines a footer for a document or section.
● META - The <meta> tag defines metadata about an HTML document. Metadata is data
(information) about data. Metadata is used by browsers (how to display content or reload
page), search engines (keywords), and other web services
● TITLE- The contents of a page title is very important for search engine optimization (SEO)! The
page title is used by search engine algorithms to decide the order when listing pages in search
results
Headers
The <header> element represents a container for introductory content or a set of navigational links.
A <header> element typically contains:
● one or more heading elements (<h1> - <h6>)
Paragraph Tag
The <p> tag defines a paragraph.
Division Tag
The <div> tag defines a division or a section in an HTML document.
It is also used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript and
can be easily styled by using the class or id attribute.
Image Tag
The <img> tag is used to embed an image in an HTML page.
Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding
space for the referenced image.
alt - Alternate Text - used when Image cannot be fetched.
Block and Inline Elements
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as
far as it can).
An inline element does not start on a new line and it only takes up as much width as necessary.
css
Inline, External & Internal CSS StyleSheets
With an external style sheet, you can change the look of an entire website by changing just one file!
An internal style sheet may be used if one single HTML page has a unique style. The internal style is
defined inside the <style> element, inside the head section.
An inline style may be used to apply a unique style for a single element. To use inline styles, add the
style attribute to the relevant element. The style attribute can contain any CSS property.
class and id
● ‘class’ attribute is used to define a class of HTML components. For eg: a class of form components.
These are especially useful when you need to reuse some styling or want to manipulate HTML
elements at mass.
● Can be accessed in JavaScript and CSS using .ClassName
● ‘id’ attribute is used to define a unique HTML component and must be unique across the entire
document.
● Can be accessed in JavaScript and CSS using #id
The HTML code that we will use
for all CSS Properties
CSS Box Model
Basic CSS Properties
Flexbox
CSS
Why to use Flexbox?
● Arrange items in better way
● Easy to use
● Responsive
Flexbox Basic Model
Link to Flexbox Code
https://github.com/charusat-
gdsc/event1-html-css-js/blob/Basic-
CSS/Flexbox/Flexbox.html
Javascript
Using Javascript in HTML
with <script></script> tag
console.log()
Variables in Javascript
Function in Javascript
● Name of the functions
● function()
● Block of code
● Calling
● Parameters (optional)
● Return (optional)
HTML DOM and Manipulation using JS
When a web page is loaded, the browser creates a Document Object Model of the page.
The HTML DOM is a standard object model and programming interface
for HTML. It defines:
● The HTML elements as objects
● The properties of all HTML elements
● The methods to access all HTML elements
● The events for all HTML elements
In other words: The HTML DOM is a standard for
how to get, change, add, or delete HTML elements.
Event Handling
● Two most prominent methods to add event listeners to the HTML
elements.
Adding Element Dynamically
Can create a new element by using the document.createElement() function
and appending that element with the node that you like. createElement()
basically creates a new Node that can be appended anywhere you like in your
HTML document.
ES6 Introduction and Outline
ES6 or ECMAScript 6 is a scripting language specification which is standardized by ECMAScript
International.
ES6 allows you to make the code more modern and readable. By using ES6 features, we write less
and do more, so the term 'Write less, do more' suits ES6. ES6 introduces you many great features
such as scope variable, arrow functions, template strings, class destructions, modules, etc.
● Arrow Functions
● Variables
● Destructuring
● Classes and Objects
JavaScript Classes
Arrays in Javascript
● Want to hear something cool about
JavaScript arrays ?
JavaScript arrays allows us to store multiple
values of different data-types under a single
array into a variable.
Filter in Javascript
The filter() method creates a new
array with all elements that pass the
test implemented by the provided
function.
Array Map Function
Map functions are used for element manipulation inside your array.
They map the previous value of the array with the value which you return
inside your callback function.
Arrow Functions
Javascript (ES6)
Why to use Arrow Function?
● Simplifies the code
● Easy to use
● Creating anonymous function
Arrow Function Syntax
It’s time for some animations…
● You don’t need javascript to do animations!
● The following properties are used by animations:
○ @keyframes
○ animation-name
○ animation-duration
○ animation-delay
○ animation-iteration-count
○ animation-direction
https://github.com/charusat-gdsc/event1-html-css-
js/blob/master/CSS%20Animation/Animation.html
Now time for JS SoundBoard…
● Learn how to insert audio to your HTML page using JS
● Using <audio> tag
https://github.com/charusat-gdsc/event1-html-css-
js/tree/master/JavaScript%20Soundboard
Thank You!

More Related Content

What's hot

Its time to React.js
Its time to React.jsIts time to React.js
Its time to React.js
Ritesh Mehrotra
 
React workshop
React workshopReact workshop
React workshop
Imran Sayed
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
Arno Lordkronos
 
Introduction to React for Frontend Developers
Introduction to React for Frontend DevelopersIntroduction to React for Frontend Developers
Introduction to React for Frontend Developers
Sergio Nakamura
 
React Vs AnagularJS
React Vs AnagularJSReact Vs AnagularJS
React Vs AnagularJS
deepakpatil84
 
React & Redux
React & ReduxReact & Redux
React & Redux
Craig Jolicoeur
 
React Native Workshop - React Alicante
React Native Workshop - React AlicanteReact Native Workshop - React Alicante
React Native Workshop - React Alicante
Ignacio Martín
 
Getting Started with React v16
Getting Started with React v16Getting Started with React v16
Getting Started with React v16
Benny Neugebauer
 
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
Katy Slemon
 
Using ReactJS in AngularJS
Using ReactJS in AngularJSUsing ReactJS in AngularJS
Using ReactJS in AngularJS
Boris Dinkevich
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
Knoldus Inc.
 
How to Build ToDo App with Vue 3 + TypeScript
How to Build ToDo App with Vue 3 + TypeScriptHow to Build ToDo App with Vue 3 + TypeScript
How to Build ToDo App with Vue 3 + TypeScript
Katy Slemon
 
A gently introduction to AngularJS
A gently introduction to AngularJSA gently introduction to AngularJS
A gently introduction to AngularJS
Gregor Woiwode
 
React Native - Workshop
React Native - WorkshopReact Native - Workshop
React Native - Workshop
Fellipe Chagas
 
Test Driven Development with JavaFX
Test Driven Development with JavaFXTest Driven Development with JavaFX
Test Driven Development with JavaFX
Hendrik Ebbers
 
AngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue SolutionsAngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue Solutions
RapidValue
 
Workshop React.js
Workshop React.jsWorkshop React.js
Workshop React.js
Commit University
 
Beginning AngularJS
Beginning AngularJSBeginning AngularJS
Beginning AngularJSTroy Miles
 
20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
Intro to React
Intro to ReactIntro to React
Intro to React
Justin Reock
 

What's hot (20)

Its time to React.js
Its time to React.jsIts time to React.js
Its time to React.js
 
React workshop
React workshopReact workshop
React workshop
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
Introduction to React for Frontend Developers
Introduction to React for Frontend DevelopersIntroduction to React for Frontend Developers
Introduction to React for Frontend Developers
 
React Vs AnagularJS
React Vs AnagularJSReact Vs AnagularJS
React Vs AnagularJS
 
React & Redux
React & ReduxReact & Redux
React & Redux
 
React Native Workshop - React Alicante
React Native Workshop - React AlicanteReact Native Workshop - React Alicante
React Native Workshop - React Alicante
 
Getting Started with React v16
Getting Started with React v16Getting Started with React v16
Getting Started with React v16
 
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
 
Using ReactJS in AngularJS
Using ReactJS in AngularJSUsing ReactJS in AngularJS
Using ReactJS in AngularJS
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
How to Build ToDo App with Vue 3 + TypeScript
How to Build ToDo App with Vue 3 + TypeScriptHow to Build ToDo App with Vue 3 + TypeScript
How to Build ToDo App with Vue 3 + TypeScript
 
A gently introduction to AngularJS
A gently introduction to AngularJSA gently introduction to AngularJS
A gently introduction to AngularJS
 
React Native - Workshop
React Native - WorkshopReact Native - Workshop
React Native - Workshop
 
Test Driven Development with JavaFX
Test Driven Development with JavaFXTest Driven Development with JavaFX
Test Driven Development with JavaFX
 
AngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue SolutionsAngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue Solutions
 
Workshop React.js
Workshop React.jsWorkshop React.js
Workshop React.js
 
Beginning AngularJS
Beginning AngularJSBeginning AngularJS
Beginning AngularJS
 
20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native
 
Intro to React
Intro to ReactIntro to React
Intro to React
 

Similar to Dsc Charusat Learning React Part 1

web development presentation computer science
web development presentation computer scienceweb development presentation computer science
web development presentation computer science
girijasharma7777
 
Webdev bootcamp
Webdev bootcampWebdev bootcamp
Webdev bootcamp
DSCMESCOE
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
Alisha Kamat
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
GDSCVJTI
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
Alisha Kamat
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Jesus Cortes
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Arjuman Shaikh
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Jitendra Gangwar
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Edress Oryakhail
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Divyesh Bharadava
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Ali Haydar(Raj)
 
Html-Prabakaran
Html-PrabakaranHtml-Prabakaran
Html-Prabakaran
DrPrabakaranPerumal
 
Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2
GDSCUniversitasMatan
 
1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
AAFREEN SHAIKH
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
Usman Mehmood
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
Ahmad Al-ammar
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
Shawn Calvert
 
Html
HtmlHtml
.NET Core, ASP.NET Core Course, Session 12
.NET Core, ASP.NET Core Course, Session 12.NET Core, ASP.NET Core Course, Session 12
.NET Core, ASP.NET Core Course, Session 12
aminmesbahi
 

Similar to Dsc Charusat Learning React Part 1 (20)

web development presentation computer science
web development presentation computer scienceweb development presentation computer science
web development presentation computer science
 
Webdev bootcamp
Webdev bootcampWebdev bootcamp
Webdev bootcamp
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Html5 - Tutorial
Html5 - TutorialHtml5 - Tutorial
Html5 - Tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html-Prabakaran
Html-PrabakaranHtml-Prabakaran
Html-Prabakaran
 
Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2
 
1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
 
Html
HtmlHtml
Html
 
.NET Core, ASP.NET Core Course, Session 12
.NET Core, ASP.NET Core Course, Session 12.NET Core, ASP.NET Core Course, Session 12
.NET Core, ASP.NET Core Course, Session 12
 

Recently uploaded

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 

Recently uploaded (20)

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 

Dsc Charusat Learning React Part 1

  • 1. HTML, CSS & JavaScript (ES6) Learning React Series - I
  • 4. HTML Link to our website: https://dsccharusat.tech/
  • 5. Some basic tags of HTML ● DOCTYPE - The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect. ● HEADER - The <header> element represents a container for introductory content or a set of navigational links. ● FOOTER - The <footer> tag defines a footer for a document or section. ● META - The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data. Metadata is used by browsers (how to display content or reload page), search engines (keywords), and other web services ● TITLE- The contents of a page title is very important for search engine optimization (SEO)! The page title is used by search engine algorithms to decide the order when listing pages in search results
  • 6. Headers The <header> element represents a container for introductory content or a set of navigational links. A <header> element typically contains: ● one or more heading elements (<h1> - <h6>)
  • 7. Paragraph Tag The <p> tag defines a paragraph.
  • 8. Division Tag The <div> tag defines a division or a section in an HTML document. It is also used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript and can be easily styled by using the class or id attribute.
  • 9. Image Tag The <img> tag is used to embed an image in an HTML page. Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image. alt - Alternate Text - used when Image cannot be fetched.
  • 10. Block and Inline Elements A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). An inline element does not start on a new line and it only takes up as much width as necessary.
  • 11. css
  • 12. Inline, External & Internal CSS StyleSheets With an external style sheet, you can change the look of an entire website by changing just one file! An internal style sheet may be used if one single HTML page has a unique style. The internal style is defined inside the <style> element, inside the head section. An inline style may be used to apply a unique style for a single element. To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.
  • 13. class and id ● ‘class’ attribute is used to define a class of HTML components. For eg: a class of form components. These are especially useful when you need to reuse some styling or want to manipulate HTML elements at mass. ● Can be accessed in JavaScript and CSS using .ClassName ● ‘id’ attribute is used to define a unique HTML component and must be unique across the entire document. ● Can be accessed in JavaScript and CSS using #id
  • 14. The HTML code that we will use for all CSS Properties
  • 18. Why to use Flexbox? ● Arrange items in better way ● Easy to use ● Responsive
  • 20. Link to Flexbox Code https://github.com/charusat- gdsc/event1-html-css-js/blob/Basic- CSS/Flexbox/Flexbox.html
  • 22. Using Javascript in HTML with <script></script> tag
  • 25. Function in Javascript ● Name of the functions ● function() ● Block of code ● Calling ● Parameters (optional) ● Return (optional)
  • 26. HTML DOM and Manipulation using JS When a web page is loaded, the browser creates a Document Object Model of the page. The HTML DOM is a standard object model and programming interface for HTML. It defines: ● The HTML elements as objects ● The properties of all HTML elements ● The methods to access all HTML elements ● The events for all HTML elements In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements.
  • 27. Event Handling ● Two most prominent methods to add event listeners to the HTML elements.
  • 28. Adding Element Dynamically Can create a new element by using the document.createElement() function and appending that element with the node that you like. createElement() basically creates a new Node that can be appended anywhere you like in your HTML document.
  • 29. ES6 Introduction and Outline ES6 or ECMAScript 6 is a scripting language specification which is standardized by ECMAScript International. ES6 allows you to make the code more modern and readable. By using ES6 features, we write less and do more, so the term 'Write less, do more' suits ES6. ES6 introduces you many great features such as scope variable, arrow functions, template strings, class destructions, modules, etc. ● Arrow Functions ● Variables ● Destructuring ● Classes and Objects
  • 31. Arrays in Javascript ● Want to hear something cool about JavaScript arrays ? JavaScript arrays allows us to store multiple values of different data-types under a single array into a variable.
  • 32.
  • 33. Filter in Javascript The filter() method creates a new array with all elements that pass the test implemented by the provided function.
  • 34.
  • 35. Array Map Function Map functions are used for element manipulation inside your array. They map the previous value of the array with the value which you return inside your callback function.
  • 37. Why to use Arrow Function? ● Simplifies the code ● Easy to use ● Creating anonymous function
  • 39. It’s time for some animations… ● You don’t need javascript to do animations! ● The following properties are used by animations: ○ @keyframes ○ animation-name ○ animation-duration ○ animation-delay ○ animation-iteration-count ○ animation-direction https://github.com/charusat-gdsc/event1-html-css- js/blob/master/CSS%20Animation/Animation.html
  • 40. Now time for JS SoundBoard… ● Learn how to insert audio to your HTML page using JS ● Using <audio> tag https://github.com/charusat-gdsc/event1-html-css- js/tree/master/JavaScript%20Soundboard