SlideShare a Scribd company logo
BESIC CONCEPT
OF CSS
PRESENTED BY
ROHAN
BHATTACHARYA
MCA 3RD YEAR
ROLL-14801013037
INTRODUCTION OF CSS
 CSS stands for Cascading Style
Sheets.
 CSS is a very simple method for
adding style (e.g. :fonts, colors,
spacing) to Web documents. Style
sheets describe how documents are
presented on screens.
 CSS saves a lot of work. It can control
the layout of multiple web pages all at
once.
A BRIEF HISTORY OF CSS
 HTML was NEVER intended to
contain tags for formatting a web
page.
 That is why W3C (i.e.: World Wide
Web Consortium) introduced CSS
level-1in the year 1996
(December).
 But now a days the current
version of CSS is CSS 2,CSS3
HOW TO USE CSS
 There are three Ways to Insert CSS:
I. Inline style
II. Internal style sheet
III. External style sheet
 CSS Syntax:
A CSS rule-set consists of a selector and a
declaration block
HOW TO USE INLINE STYLE
HTML CODE FOR THE PAGE..
<html>
<body>
< h1 st yle= " color: blue
;
margin -
lef t : 30px; ">This is a
heading.< /h1>
<p>This is a paragraph.</p>
</body>
</html>
OUTPUT OF THE PAGE..
HOW TO USE INTERNAL
STYLE
HTML CODE FOR THE PAGE..
<html>
<head><style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style></head><body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
OUTPUT OF THE PAGE..
HOW TO USE EXTERNAL
STYLE
HTML CODE FOR THE PAGE..
<html><head>
<link rel="stylesheet"
type="text/css"
href="style.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body></html>
CSS CODE FOR THE PAGE..
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
OUTPUT OF THE PAGE..
SELECTOR STRINGS
 Single element type:
 Multiple element types:
 All element types:
 Specific elements by id:
SELECTOR STRINGS
 Specific elements by class:
o Referencing a style class in HTML:
 Elements of a certain type and class:
SELECTOR STRINGS
 Source anchor elements:
 Element types that are descendents:
AN INTRODUCTION
TO JQUERY
PRESENTED BY
ARIJIT
SADHUKHAN
MCA 3RD YEAR
ROLL-
14801013010
What is JQuery?
JQuery is a fast and concise
JavaScript Library that simplifies
HTML document traversing, event
handling, animating, and Ajax
interactions for rapid web
development. It was devoloped by
John Resig in 2006 with a nice motto
− Write less, do more.
Important Features of JQuery
 DOM manipulation − The jQuery made it easy to
select DOM elements, traverse them and modifying
their content.
 Event handling − The jQuery offers an elegant way to
capture a wide variety of events, such as a user clicking
on a link, without the need to clutter the HTML code
itself with event handlers.
 AJAX Support − The jQuery helps a lot to develop a
responsive and feature-rich site using AJAX technology.
 Animations − The jQuery comes with plenty of built-in
animation effects which we can use in our websites.
 Lightweight − The jQuery is very lightweight library -
about 19KB in size ( Minified and gzipped ).
To call a jQuery library
functions
We need to make sure that we start
adding events as soon as the DOM is
ready. If we want an event to work on our
page, it should be called inside the
$(document).ready() function. Everything
inside it will load as soon as the DOM is
loaded and before the page contents are
loaded.
To do this, we register a ready event for
the document as follows −
$(document).ready(function() ;
Selecting groups of DOM objects
name description
getElementById returns array of descendents with
the given tag, such as "div"
getElementsByTagName returns array of descendents with
the given tag, such as "div"
getElementsByName returns array of descendents with
the given name attribute (mostly
useful for accessing form controls)
querySelector * returns the first element that would
be matched by the given CSS
selector string
querySelectorAll * returns an array of all elements
that would be matched by the
given CSS selector string
jQuery / DOM comparison
DOM method jQuery equivalent
getElementById("id") $("#id")
getElementsByTagName("tag") $("tag")
getElementsByName("somename"
)
$("[name='somename']")
querySelector("selector") $("selector")
querySelectorAll("selector") $("selector")
jQuery terminology
 the jQuery function
refers to the global jQuery object or the $
function depending on the context
 a jQuery object
the object returned by the jQuery function
that often represents a group of elements
The jQuery object
 The $ function always (even for ID selectors)
returns an array-like object called a jQuery object.
 The jQuery object wraps the originally selected
DOM objects.
 We can access the actual DOM object by
accessing the elements of the jQuery object.
// false
document.getElementById("id") == $("#myid");
document.querySelectorAll("p") == $("p");
// true
document.getElementById("id") == $("#myid")[0];
document.getElementById("id") == $("#myid").get(0);
document.querySelectorAll("p")[0] == $("p")[0];
THANK
YOU

More Related Content

What's hot

Microsoft Web Matrix
Microsoft Web MatrixMicrosoft Web Matrix
Microsoft Web Matrix
Saurabh Moody
 
Html dom & j query
Html dom & j queryHtml dom & j query
Html dom & j query
hafeez1216
 
jQuery - Web Engineering
jQuery - Web Engineering jQuery - Web Engineering
jQuery - Web Engineering
adeel990
 
Javascript and DOM
Javascript and DOMJavascript and DOM
Javascript and DOM
Brian Moschel
 
How To Create Azure Database & Publish Website
How To Create Azure Database & Publish WebsiteHow To Create Azure Database & Publish Website
How To Create Azure Database & Publish Website
Cheah Eng Soon
 
Flexbox - верстка без float'ов by Dmitry Radyno
Flexbox - верстка без float'ов by Dmitry RadynoFlexbox - верстка без float'ов by Dmitry Radyno
Flexbox - верстка без float'ов by Dmitry Radyno
Дмитрий Радыно
 
Introduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapIntroduction to jquery mobile with Phonegap
Introduction to jquery mobile with Phonegap
Rakesh Jha
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
Suresh Kumar
 
Completing Your Design with WordPress
Completing Your Design with WordPressCompleting Your Design with WordPress
Completing Your Design with WordPressChelsea Otakan
 
Interacting with the DOM (JavaScript)
Interacting with the DOM (JavaScript)Interacting with the DOM (JavaScript)
Interacting with the DOM (JavaScript)
Florence Davis
 
Component-Oriented Web Development with Dart
Component-Oriented Web Development with DartComponent-Oriented Web Development with Dart
Component-Oriented Web Development with Dart
C4Media
 
Javascript libraries
Javascript librariesJavascript libraries
Javascript libraries
Dumindu Pahalawatta
 
Javascipt
JavasciptJavascipt
Javascipt
Shreyans Gandhi
 
Web programming
Web programmingWeb programming
Web programming
renukarenuka9
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQuery
James Wragg
 
Javascript inside Browser (DOM)
Javascript inside Browser (DOM)Javascript inside Browser (DOM)
Javascript inside Browser (DOM)
Vlad Mysla
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Return on Intelligence
 
J query presentation
J query presentationJ query presentation
J query presentationakanksha17
 

What's hot (19)

Microsoft Web Matrix
Microsoft Web MatrixMicrosoft Web Matrix
Microsoft Web Matrix
 
Html dom & j query
Html dom & j queryHtml dom & j query
Html dom & j query
 
jQuery - Web Engineering
jQuery - Web Engineering jQuery - Web Engineering
jQuery - Web Engineering
 
Javascript and DOM
Javascript and DOMJavascript and DOM
Javascript and DOM
 
How To Create Azure Database & Publish Website
How To Create Azure Database & Publish WebsiteHow To Create Azure Database & Publish Website
How To Create Azure Database & Publish Website
 
Flexbox - верстка без float'ов by Dmitry Radyno
Flexbox - верстка без float'ов by Dmitry RadynoFlexbox - верстка без float'ов by Dmitry Radyno
Flexbox - верстка без float'ов by Dmitry Radyno
 
Introduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapIntroduction to jquery mobile with Phonegap
Introduction to jquery mobile with Phonegap
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
 
Completing Your Design with WordPress
Completing Your Design with WordPressCompleting Your Design with WordPress
Completing Your Design with WordPress
 
Interacting with the DOM (JavaScript)
Interacting with the DOM (JavaScript)Interacting with the DOM (JavaScript)
Interacting with the DOM (JavaScript)
 
Component-Oriented Web Development with Dart
Component-Oriented Web Development with DartComponent-Oriented Web Development with Dart
Component-Oriented Web Development with Dart
 
Javascript libraries
Javascript librariesJavascript libraries
Javascript libraries
 
Javascipt
JavasciptJavascipt
Javascipt
 
Web programming
Web programmingWeb programming
Web programming
 
An introduction to jQuery
An introduction to jQueryAn introduction to jQuery
An introduction to jQuery
 
Javascript inside Browser (DOM)
Javascript inside Browser (DOM)Javascript inside Browser (DOM)
Javascript inside Browser (DOM)
 
HTML5
HTML5HTML5
HTML5
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
J query presentation
J query presentationJ query presentation
J query presentation
 

Viewers also liked

JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the FutureJQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
Matthew Taylor
 
webstudy jquery
webstudy jquerywebstudy jquery
webstudy jquery
Seungho Han
 
3.3 prove lines are parallel
3.3 prove lines are parallel3.3 prove lines are parallel
3.3 prove lines are paralleldetwilerr
 
Genre history
Genre historyGenre history
Genre history
BenjaminSSmith
 
14 05 07 galileo masters mpae presentation
14 05 07 galileo masters mpae presentation14 05 07 galileo masters mpae presentation
14 05 07 galileo masters mpae presentationEugenio Fontán
 
Bold and Comfortable Front Sports Zip Bra
Bold and Comfortable Front Sports Zip BraBold and Comfortable Front Sports Zip Bra
Bold and Comfortable Front Sports Zip Bra
VIE ACTIVE
 
When to no sql and when to know sql javaone
When to no sql and when to know sql   javaoneWhen to no sql and when to know sql   javaone
When to no sql and when to know sql javaone
Simon Elliston Ball
 
Excellent Fabrics Used For Compression Tights
Excellent Fabrics Used For Compression TightsExcellent Fabrics Used For Compression Tights
Excellent Fabrics Used For Compression Tights
VIE ACTIVE
 
Contents page edits
Contents page editsContents page edits
Contents page editscw00531169
 
Addressing Needs of BYOD for Enterprises with Unified Access
Addressing Needs of BYOD for Enterprises with Unified AccessAddressing Needs of BYOD for Enterprises with Unified Access
Addressing Needs of BYOD for Enterprises with Unified Access
Alcatel-Lucent Enterprise
 
The Game of Zones: The Future of the Converged Campus
The Game of Zones: The Future of the Converged CampusThe Game of Zones: The Future of the Converged Campus
The Game of Zones: The Future of the Converged Campus
Alcatel-Lucent Enterprise
 
Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...
Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...
Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...
Catalyx
 
14 01 22 madrid aerospace cluster presentation v 2
14 01 22 madrid aerospace cluster presentation v 214 01 22 madrid aerospace cluster presentation v 2
14 01 22 madrid aerospace cluster presentation v 2Eugenio Fontán
 
Women in India by Kamran Khan - Ph.d 2nd semester
Women in India by Kamran Khan - Ph.d 2nd semesterWomen in India by Kamran Khan - Ph.d 2nd semester
Women in India by Kamran Khan - Ph.d 2nd semester
Shaur News
 
Two-factor authentication w Joomla! - JoomlaDay Polska 2015
Two-factor authentication w Joomla! - JoomlaDay Polska 2015Two-factor authentication w Joomla! - JoomlaDay Polska 2015
Two-factor authentication w Joomla! - JoomlaDay Polska 2015
Bartłomiej Krztuk
 
4.6 use congruent triangles
4.6 use congruent triangles4.6 use congruent triangles
4.6 use congruent trianglesdetwilerr
 
Actividad 7 momento 2 construcción de ciudadanía y organizaciones sociales ...
Actividad 7 momento 2   construcción de ciudadanía y organizaciones sociales ...Actividad 7 momento 2   construcción de ciudadanía y organizaciones sociales ...
Actividad 7 momento 2 construcción de ciudadanía y organizaciones sociales ...
Andrés Felipe Hernández Chocontá
 
Chapter8 contentlit part 2
Chapter8 contentlit part 2Chapter8 contentlit part 2
Chapter8 contentlit part 2Brittany Clawson
 

Viewers also liked (20)

JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the FutureJQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
 
webstudy jquery
webstudy jquerywebstudy jquery
webstudy jquery
 
3.3 prove lines are parallel
3.3 prove lines are parallel3.3 prove lines are parallel
3.3 prove lines are parallel
 
Genre history
Genre historyGenre history
Genre history
 
14 05 07 galileo masters mpae presentation
14 05 07 galileo masters mpae presentation14 05 07 galileo masters mpae presentation
14 05 07 galileo masters mpae presentation
 
Bold and Comfortable Front Sports Zip Bra
Bold and Comfortable Front Sports Zip BraBold and Comfortable Front Sports Zip Bra
Bold and Comfortable Front Sports Zip Bra
 
When to no sql and when to know sql javaone
When to no sql and when to know sql   javaoneWhen to no sql and when to know sql   javaone
When to no sql and when to know sql javaone
 
Excellent Fabrics Used For Compression Tights
Excellent Fabrics Used For Compression TightsExcellent Fabrics Used For Compression Tights
Excellent Fabrics Used For Compression Tights
 
Contents page edits
Contents page editsContents page edits
Contents page edits
 
Addressing Needs of BYOD for Enterprises with Unified Access
Addressing Needs of BYOD for Enterprises with Unified AccessAddressing Needs of BYOD for Enterprises with Unified Access
Addressing Needs of BYOD for Enterprises with Unified Access
 
The Game of Zones: The Future of the Converged Campus
The Game of Zones: The Future of the Converged CampusThe Game of Zones: The Future of the Converged Campus
The Game of Zones: The Future of the Converged Campus
 
Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...
Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...
Union Suisse Spring :: Unleashing the power of Public Private Partnerships (P...
 
14 01 22 madrid aerospace cluster presentation v 2
14 01 22 madrid aerospace cluster presentation v 214 01 22 madrid aerospace cluster presentation v 2
14 01 22 madrid aerospace cluster presentation v 2
 
Women in India by Kamran Khan - Ph.d 2nd semester
Women in India by Kamran Khan - Ph.d 2nd semesterWomen in India by Kamran Khan - Ph.d 2nd semester
Women in India by Kamran Khan - Ph.d 2nd semester
 
Two-factor authentication w Joomla! - JoomlaDay Polska 2015
Two-factor authentication w Joomla! - JoomlaDay Polska 2015Two-factor authentication w Joomla! - JoomlaDay Polska 2015
Two-factor authentication w Joomla! - JoomlaDay Polska 2015
 
O Sister, Remember
O Sister, Remember O Sister, Remember
O Sister, Remember
 
4.6 use congruent triangles
4.6 use congruent triangles4.6 use congruent triangles
4.6 use congruent triangles
 
About me
About meAbout me
About me
 
Actividad 7 momento 2 construcción de ciudadanía y organizaciones sociales ...
Actividad 7 momento 2   construcción de ciudadanía y organizaciones sociales ...Actividad 7 momento 2   construcción de ciudadanía y organizaciones sociales ...
Actividad 7 momento 2 construcción de ciudadanía y organizaciones sociales ...
 
Chapter8 contentlit part 2
Chapter8 contentlit part 2Chapter8 contentlit part 2
Chapter8 contentlit part 2
 

Similar to Introductory css and j query

web development presentation computer science
web development presentation computer scienceweb development presentation computer science
web development presentation computer science
girijasharma7777
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
Michael Anthony
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Html css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers workHtml css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers work
Albino Tonnina
 
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
 
Intro to MVC 3 for Government Developers
Intro to MVC 3 for Government DevelopersIntro to MVC 3 for Government Developers
Intro to MVC 3 for Government DevelopersFrank La Vigne
 
J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
Mayur Mudgal
 
J Query Public
J Query PublicJ Query Public
J Query Public
pradeepsilamkoti
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
Muhammad Nasr
 
Web Development Introduction to jQuery
Web Development Introduction to jQueryWeb Development Introduction to jQuery
Web Development Introduction to jQuery
Laurence Svekis ✔
 
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
nariyaravi
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI Developers
Darren Gideon
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
jackchenvlo
 
jQuery
jQueryjQuery
jQuery
Vishwa Mohan
 
Document object model
Document object modelDocument object model
Document object model
Amit kumar
 
wd project.pptx
wd project.pptxwd project.pptx
wd project.pptx
dsffsdf1
 

Similar to Introductory css and j query (20)

web development presentation computer science
web development presentation computer scienceweb development presentation computer science
web development presentation computer science
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
Html5
Html5Html5
Html5
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Html css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers workHtml css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers work
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
 
Intro to MVC 3 for Government Developers
Intro to MVC 3 for Government DevelopersIntro to MVC 3 for Government Developers
Intro to MVC 3 for Government Developers
 
J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
J Query Public
J Query PublicJ Query Public
J Query Public
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
Web Development Introduction to jQuery
Web Development Introduction to jQueryWeb Development Introduction to jQuery
Web Development Introduction to jQuery
 
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
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI Developers
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
 
jQuery
jQueryjQuery
jQuery
 
Document object model
Document object modelDocument object model
Document object model
 
wd project.pptx
wd project.pptxwd project.pptx
wd project.pptx
 

Recently uploaded

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 

Introductory css and j query

  • 1. BESIC CONCEPT OF CSS PRESENTED BY ROHAN BHATTACHARYA MCA 3RD YEAR ROLL-14801013037
  • 2. INTRODUCTION OF CSS  CSS stands for Cascading Style Sheets.  CSS is a very simple method for adding style (e.g. :fonts, colors, spacing) to Web documents. Style sheets describe how documents are presented on screens.  CSS saves a lot of work. It can control the layout of multiple web pages all at once.
  • 3. A BRIEF HISTORY OF CSS  HTML was NEVER intended to contain tags for formatting a web page.  That is why W3C (i.e.: World Wide Web Consortium) introduced CSS level-1in the year 1996 (December).  But now a days the current version of CSS is CSS 2,CSS3
  • 4. HOW TO USE CSS  There are three Ways to Insert CSS: I. Inline style II. Internal style sheet III. External style sheet  CSS Syntax: A CSS rule-set consists of a selector and a declaration block
  • 5. HOW TO USE INLINE STYLE HTML CODE FOR THE PAGE.. <html> <body> < h1 st yle= " color: blue ; margin - lef t : 30px; ">This is a heading.< /h1> <p>This is a paragraph.</p> </body> </html> OUTPUT OF THE PAGE..
  • 6. HOW TO USE INTERNAL STYLE HTML CODE FOR THE PAGE.. <html> <head><style> body { background-color: linen; } h1 { color: maroon; margin-left: 40px; } </style></head><body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> OUTPUT OF THE PAGE..
  • 7. HOW TO USE EXTERNAL STYLE HTML CODE FOR THE PAGE.. <html><head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body></html> CSS CODE FOR THE PAGE.. body { background-color: lightblue; } h1 { color: navy; margin-left: 20px; } OUTPUT OF THE PAGE..
  • 8. SELECTOR STRINGS  Single element type:  Multiple element types:  All element types:  Specific elements by id:
  • 9. SELECTOR STRINGS  Specific elements by class: o Referencing a style class in HTML:  Elements of a certain type and class:
  • 10. SELECTOR STRINGS  Source anchor elements:  Element types that are descendents:
  • 11. AN INTRODUCTION TO JQUERY PRESENTED BY ARIJIT SADHUKHAN MCA 3RD YEAR ROLL- 14801013010
  • 12. What is JQuery? JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. It was devoloped by John Resig in 2006 with a nice motto − Write less, do more.
  • 13. Important Features of JQuery  DOM manipulation − The jQuery made it easy to select DOM elements, traverse them and modifying their content.  Event handling − The jQuery offers an elegant way to capture a wide variety of events, such as a user clicking on a link, without the need to clutter the HTML code itself with event handlers.  AJAX Support − The jQuery helps a lot to develop a responsive and feature-rich site using AJAX technology.  Animations − The jQuery comes with plenty of built-in animation effects which we can use in our websites.  Lightweight − The jQuery is very lightweight library - about 19KB in size ( Minified and gzipped ).
  • 14. To call a jQuery library functions We need to make sure that we start adding events as soon as the DOM is ready. If we want an event to work on our page, it should be called inside the $(document).ready() function. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded. To do this, we register a ready event for the document as follows − $(document).ready(function() ;
  • 15. Selecting groups of DOM objects name description getElementById returns array of descendents with the given tag, such as "div" getElementsByTagName returns array of descendents with the given tag, such as "div" getElementsByName returns array of descendents with the given name attribute (mostly useful for accessing form controls) querySelector * returns the first element that would be matched by the given CSS selector string querySelectorAll * returns an array of all elements that would be matched by the given CSS selector string
  • 16. jQuery / DOM comparison DOM method jQuery equivalent getElementById("id") $("#id") getElementsByTagName("tag") $("tag") getElementsByName("somename" ) $("[name='somename']") querySelector("selector") $("selector") querySelectorAll("selector") $("selector")
  • 17. jQuery terminology  the jQuery function refers to the global jQuery object or the $ function depending on the context  a jQuery object the object returned by the jQuery function that often represents a group of elements
  • 18. The jQuery object  The $ function always (even for ID selectors) returns an array-like object called a jQuery object.  The jQuery object wraps the originally selected DOM objects.  We can access the actual DOM object by accessing the elements of the jQuery object. // false document.getElementById("id") == $("#myid"); document.querySelectorAll("p") == $("p"); // true document.getElementById("id") == $("#myid")[0]; document.getElementById("id") == $("#myid").get(0); document.querySelectorAll("p")[0] == $("p")[0];