SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
WEEKLY PRESENTATION
DURING TRAINING PROGRAM
- Devang Garach
devanggarach.rao@gmail.com
WEEK-3
Information Technology
AGENDA
What is HTML?
Difference between HTML4 & HTML5
HTML5 Structure
What is CSS and Why it is used for?
CSS Selector & Syntax
Box Model
CSS Units
JavaScript (types of functions)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
What is HTML?
HTML Stands for Hyper-Text Markup Language
Hypertext Markup Language (HTML) is the standard markup language for
documents designed to be displayed in a web browser. It can be assisted by
technologies such as Cascading Style Sheets (CSS) and scripting languages such
as JavaScript.
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Difference between HTML4 & HTML5
Information Technology
HTML4 HTML5
HTML4 released in 1997 (source wikipedia.com) HTML5 released in 2014 (source wikipedia.com)
Elements like nav, header, footer not their New semantic element for web structure
like nav, header, footer etc.
It didn’t support audio and video without
the use of flash player support.
It supports audio and video controls with
the use of <audio> and <video> tags.
Vector graphics is possible in HTML with
the help of various technologies such as
VML, Silver-light, Flash, etc.
Vector graphics is additionally an integral
a part of HTML5 like SVG and canvas.
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Difference between HTML4 & HTML5 (Continue...)
Information Technology
HTML4 HTML5
It does not allow drag and drop effects. It allows drag and drop effects.
Doctype declaration is too long and
complicated.
Doctype declaration is quite simple and
easy.
Older version of HTML are less
mobile-friendly.
HTML5 language is more mobile-friendly.
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Difference between HTML4 & HTML5 (Continue...)
Information Technology
HTML4 HTML5
Removed tags in HTML5 which are n
HTML4
<acronym>,<applet>,<basefont>,<big>,
<center>,<font>,<frame>,<frameset>,
<noframe>,<strike>, ...
New Tags
<article>,<aside>,<audio>,<bdl>,
<canvas>,<datalist>,<details>,
<figcaption>,<footer>,<header>,<main>,
<progress>,<section>,<summary>,
<time>, <video>, ...
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
HTML5 Structure
<!DOCTYPE HTML>
<html lang=”en”>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>
<body>
<header>
<nav>
<ul>
<li>Your menu</li>
</ul>
</nav>
</header>
<section>
<article>
<header>
<h2>Article title</h2>
<p>Posted on <time datetime="2009-09-04T16:31:24+02:00">September 4th 2009</time> by <a href="#">Writer</a>
</header>
<p>Content</p>
</article>
</section>
<aside>
<h2>About section</h2>
<p>Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</aside>
<footer> <p>Copyright 2009 Your name</p> </footer>
</body>
</html>
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
What is CSS and Why it is used for?
CSS Stands for Cascading Style Sheets
It used for describing the presentation of a document written in a markup language
such as HTML.
CSS is a cornerstone technology of the World Wide Web, alongside HTML and
JavaScript.
CSS describes how HTML elements are to be displayed on screen, paper, or in
other media
CSS saves a lot of work. It can control the layout of multiple web pages all at once
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
CSS Selector & Syntax
CSS selectors are used to "find" (or select) the HTML elements you want to
style.
We can divide CSS selectors into five categories:
- Simple selectors (select elements based on name, id, class)
- Combinator selectors (select elements based on a specific relationship
between them)
- Pseudo-class selectors (select elements based on a certain state)
- Pseudo-elements selectors (select and style a part of an element)
- Attribute selectors (select elements based on an attribute or attribute
value)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
CSS Selector & Syntax (Continue..)
CSS Syntax:
Selector{
Property : Value;
…
...
}
Information Technology
(Source: w3schools.com)
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
CSS Selector & Syntax (Continue..)
CSS Combinators:
There are four different combinators in CSS:
- descendant selector (space)
- child selector (>)
- adjacent sibling selector (+)
- general sibling selector (~)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Box Model
The CSS box model is essentially a box that wraps around every HTML
element. It consists of: margins, borders, padding, and the actual content.
The image below illustrates the box model:
Information Technology
(Source: w3schools.com)
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
CSS Units
CSS has several different units for expressing a length.
Many CSS properties take "length" values, such as width, margin, padding,
font-size, etc.
Length is a number followed by a length unit, such as 10px, 2em, etc.
There are two types of length units, Absolute Length & Relative Length
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
CSS Units (Continue...)
Absolute Length
The absolute length units are fixed and a length expressed in any of these will
appear as exactly that size.
Absolute length units are not recommended for use on screen, because screen
sizes vary so much. However, they can be used if the output medium is known,
such as for print layout.
Information Technology
cm (centimeters)
mm (millimeters)
px (pixels) 1px = 1/96th of 1in
in (inches) 1in = 96px = 2.54cm
pt (points) 1pt = 1/72 of 1in
pc (picas) 1pc = 12 pt
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
CSS Units (Continue...)
Relative Length
Relative length units specify a length relative to another length property.
Relative length units scales better between different rendering mediums.
Information Technology
em
rem
vm
vh
%
Relative to the font-size of the element (2em means 2 times the size of the current font)
Relative to font-size of the root element
Relative to 1% of the width of the viewport*
Relative to 1% of the height of the viewport*
Relative to the parent element
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
JavaScript
JavaScript is a lightweight interpreted programming language. The web
browser receives the JavaScript code in its original text form and runs the
script from that.
Many types of function declaration in JavaScript:
Regular Function | Anonymous Function | IIFE | Callback Function | Arrow
Function
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
JavaScript (Continue...)
Regular Functions:
function sum(a, b){
return a + b;
}
sum(5, 6);
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Anonymous Functions:
const myFunctionVar =
function(){
return typeof variable;
};
myFunctionVar;
IIFE
Immediately-Invoked
Function Expression
(function(){
statements;
})();
JavaScript (Continue...)
Arrow Functions:
const absValue = (number) =>
{
if (number < 0){
return -number;
}
return number;
}
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Callback Functions:
function myDisplayer(some){
console.log(some);
}
function myCalc(n1, n2,myCallback){
let sum = n1 + n2;
myCallback(sum);
}
myCalc(5, 5, myDisplayer);
Information Technology
Thank You.
- Devang Garach
devanggarach.rao@gmail.com

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
 
Report html5
Report html5Report html5
Report html5
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Front end web development
Front end web developmentFront end web development
Front end web development
 
Html basics
Html basicsHtml basics
Html basics
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web Development
 
Javascript
JavascriptJavascript
Javascript
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
 
Json
JsonJson
Json
 
Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project Presentation
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5
 
Internship presentation
Internship presentationInternship presentation
Internship presentation
 

Ähnlich wie Intro to HTML, CSS & JS - Internship Presentation Week-3

GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
Heather Rock
 

Ähnlich wie Intro to HTML, CSS & JS - Internship Presentation Week-3 (20)

Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developer
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
Introduction to html & css
Introduction to html & cssIntroduction to html & css
Introduction to html & css
 
html5_css3
html5_css3html5_css3
html5_css3
 
Using Tailwind Shadow: An Easy Guide to Custom Shadows - Blogs
Using Tailwind Shadow: An Easy Guide to Custom Shadows - BlogsUsing Tailwind Shadow: An Easy Guide to Custom Shadows - Blogs
Using Tailwind Shadow: An Easy Guide to Custom Shadows - Blogs
 
Use Tailwind Select for Easy and Reliable Dropdowns - Blogs
Use Tailwind Select for Easy and Reliable Dropdowns - BlogsUse Tailwind Select for Easy and Reliable Dropdowns - Blogs
Use Tailwind Select for Easy and Reliable Dropdowns - Blogs
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Html5
Html5Html5
Html5
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
 
HTML5
HTML5 HTML5
HTML5
 
A practical guide to building websites with HTML5 & CSS3
A practical guide to building websites with HTML5 & CSS3A practical guide to building websites with HTML5 & CSS3
A practical guide to building websites with HTML5 & CSS3
 
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStartExtreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
 
Cms an overview
Cms an overviewCms an overview
Cms an overview
 
Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
 
Css
CssCss
Css
 

Mehr von Devang Garach

Mehr von Devang Garach (9)

AWS Concepts - Internship Presentation - week 10
AWS Concepts - Internship Presentation - week 10AWS Concepts - Internship Presentation - week 10
AWS Concepts - Internship Presentation - week 10
 
A glimpse inside of SEO - Internship Presentation - week 9
A glimpse inside of SEO - Internship Presentation - week 9A glimpse inside of SEO - Internship Presentation - week 9
A glimpse inside of SEO - Internship Presentation - week 9
 
Machine Learning and its types - Internship Presentation - week 8
Machine Learning and its types - Internship Presentation - week 8Machine Learning and its types - Internship Presentation - week 8
Machine Learning and its types - Internship Presentation - week 8
 
Fundamental of Node.JS - Internship Presentation - Week7
Fundamental of Node.JS - Internship Presentation - Week7Fundamental of Node.JS - Internship Presentation - Week7
Fundamental of Node.JS - Internship Presentation - Week7
 
Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6
 
Overview of React.JS - Internship Presentation - Week 5
Overview of React.JS - Internship Presentation - Week 5Overview of React.JS - Internship Presentation - Week 5
Overview of React.JS - Internship Presentation - Week 5
 
Brief Introduction on JavaScript - Internship Presentation - Week4
Brief Introduction on JavaScript - Internship Presentation - Week4Brief Introduction on JavaScript - Internship Presentation - Week4
Brief Introduction on JavaScript - Internship Presentation - Week4
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
M.C.A. Internship Project Presentation - Devang Garach [191823011]
M.C.A. Internship Project Presentation - Devang Garach [191823011]M.C.A. Internship Project Presentation - Devang Garach [191823011]
M.C.A. Internship Project Presentation - Devang Garach [191823011]
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Intro to HTML, CSS & JS - Internship Presentation Week-3

  • 1. WEEKLY PRESENTATION DURING TRAINING PROGRAM - Devang Garach devanggarach.rao@gmail.com WEEK-3 Information Technology
  • 2. AGENDA What is HTML? Difference between HTML4 & HTML5 HTML5 Structure What is CSS and Why it is used for? CSS Selector & Syntax Box Model CSS Units JavaScript (types of functions) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 3. What is HTML? HTML Stands for Hyper-Text Markup Language Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 4. Difference between HTML4 & HTML5 Information Technology HTML4 HTML5 HTML4 released in 1997 (source wikipedia.com) HTML5 released in 2014 (source wikipedia.com) Elements like nav, header, footer not their New semantic element for web structure like nav, header, footer etc. It didn’t support audio and video without the use of flash player support. It supports audio and video controls with the use of <audio> and <video> tags. Vector graphics is possible in HTML with the help of various technologies such as VML, Silver-light, Flash, etc. Vector graphics is additionally an integral a part of HTML5 like SVG and canvas. DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 5. Difference between HTML4 & HTML5 (Continue...) Information Technology HTML4 HTML5 It does not allow drag and drop effects. It allows drag and drop effects. Doctype declaration is too long and complicated. Doctype declaration is quite simple and easy. Older version of HTML are less mobile-friendly. HTML5 language is more mobile-friendly. DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 6. Difference between HTML4 & HTML5 (Continue...) Information Technology HTML4 HTML5 Removed tags in HTML5 which are n HTML4 <acronym>,<applet>,<basefont>,<big>, <center>,<font>,<frame>,<frameset>, <noframe>,<strike>, ... New Tags <article>,<aside>,<audio>,<bdl>, <canvas>,<datalist>,<details>, <figcaption>,<footer>,<header>,<main>, <progress>,<section>,<summary>, <time>, <video>, ... DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 7. HTML5 Structure <!DOCTYPE HTML> <html lang=”en”> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Your Website</title> </head> <body> <header> <nav> <ul> <li>Your menu</li> </ul> </nav> </header> <section> <article> <header> <h2>Article title</h2> <p>Posted on <time datetime="2009-09-04T16:31:24+02:00">September 4th 2009</time> by <a href="#">Writer</a> </header> <p>Content</p> </article> </section> <aside> <h2>About section</h2> <p>Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> </aside> <footer> <p>Copyright 2009 Your name</p> </footer> </body> </html> Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 8. What is CSS and Why it is used for? CSS Stands for Cascading Style Sheets It used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript. CSS describes how HTML elements are to be displayed on screen, paper, or in other media CSS saves a lot of work. It can control the layout of multiple web pages all at once Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 9. CSS Selector & Syntax CSS selectors are used to "find" (or select) the HTML elements you want to style. We can divide CSS selectors into five categories: - Simple selectors (select elements based on name, id, class) - Combinator selectors (select elements based on a specific relationship between them) - Pseudo-class selectors (select elements based on a certain state) - Pseudo-elements selectors (select and style a part of an element) - Attribute selectors (select elements based on an attribute or attribute value) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 10. CSS Selector & Syntax (Continue..) CSS Syntax: Selector{ Property : Value; … ... } Information Technology (Source: w3schools.com) DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 11. CSS Selector & Syntax (Continue..) CSS Combinators: There are four different combinators in CSS: - descendant selector (space) - child selector (>) - adjacent sibling selector (+) - general sibling selector (~) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 12. Box Model The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content. The image below illustrates the box model: Information Technology (Source: w3schools.com) DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 13. CSS Units CSS has several different units for expressing a length. Many CSS properties take "length" values, such as width, margin, padding, font-size, etc. Length is a number followed by a length unit, such as 10px, 2em, etc. There are two types of length units, Absolute Length & Relative Length Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 14. CSS Units (Continue...) Absolute Length The absolute length units are fixed and a length expressed in any of these will appear as exactly that size. Absolute length units are not recommended for use on screen, because screen sizes vary so much. However, they can be used if the output medium is known, such as for print layout. Information Technology cm (centimeters) mm (millimeters) px (pixels) 1px = 1/96th of 1in in (inches) 1in = 96px = 2.54cm pt (points) 1pt = 1/72 of 1in pc (picas) 1pc = 12 pt DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 15. CSS Units (Continue...) Relative Length Relative length units specify a length relative to another length property. Relative length units scales better between different rendering mediums. Information Technology em rem vm vh % Relative to the font-size of the element (2em means 2 times the size of the current font) Relative to font-size of the root element Relative to 1% of the width of the viewport* Relative to 1% of the height of the viewport* Relative to the parent element DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 16. JavaScript JavaScript is a lightweight interpreted programming language. The web browser receives the JavaScript code in its original text form and runs the script from that. Many types of function declaration in JavaScript: Regular Function | Anonymous Function | IIFE | Callback Function | Arrow Function Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 17. JavaScript (Continue...) Regular Functions: function sum(a, b){ return a + b; } sum(5, 6); Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Anonymous Functions: const myFunctionVar = function(){ return typeof variable; }; myFunctionVar; IIFE Immediately-Invoked Function Expression (function(){ statements; })();
  • 18. JavaScript (Continue...) Arrow Functions: const absValue = (number) => { if (number < 0){ return -number; } return number; } Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Callback Functions: function myDisplayer(some){ console.log(some); } function myCalc(n1, n2,myCallback){ let sum = n1 + n2; myCallback(sum); } myCalc(5, 5, myDisplayer);
  • 19. Information Technology Thank You. - Devang Garach devanggarach.rao@gmail.com