SlideShare a Scribd company logo
What is HTML
 HTML stands for Hyper Text Markup Language
 HTML is used for describing web pages.
 HTML is a markup language.
 A markup language consist of markup tags.
 The tags defines document content.
 HTML documents include HTML tags and plain text.
HTML Tags
 HTML markup tags are usually called HTML tags.
 HTML tags are keywords surrounded by angle brackets like
<HTML>.
 Html tags normally come in pairs like <b>and </b>.
 The first tag in pair is the start tag and second tag is the
end tag.
 The end tag is written like the start tag , with a forward
slash before the tag name.
 Start and end tags are also called opening tags and closing
tags.
<tagname>Content</tagname>
Basic HTML page structure
 HTML
 HEAD: Non web displayable info and code like meta tags,
script, title etc.
 BODY: Includes <div>
div: Header – We can include branding and navigation
elements like logo, slogan, menu, etc.
div: Main content – We can include all kind of
elements like images, paragraphs, videos, links, etc.
div: Footer – We can include informational elements
like: copyright, sub menu, links, site info, etc.
Example
<html>
<head>
<title>HTML Form Validation Demo</title>
</head>
<body>
<form action=“” id=“”>
<h2>HTML Form</h2>
<div id=“form_data”>
<div class=“fieldgroup”>
<label>Email</label>
<input type=“text” name=“email”>
</div>
<div class=“fieldgroup”>
<label>Password</label>
<input type=“password” name=“password”>
</div>
<div class=“fieldgroup”>
<input type=“submit” value=“submit” class=“submit”>
</div>
</div>
</form>
</body>
</html>
What is CSS
 CSS stands for Cascading Style Sheet.
 Styles define how to display HTML elements.
 External style sheets can save a lot of work.
 External style sheets are stored in CSS file.
 A CSS file allows to separate web sites HTML content
from its style.
How to use CSS?
There are three types of stylesheets
 External style sheet
 Internal style sheet
 Inline style sheet
 External style sheet: An external style sheet is ideal when the style is applied to many
pages.
<head>
<link rel=“stylesheet” type=“text/css” href=“mystyle.css”>
<head>
 Internal style sheet: An internal style sheet should be used when a single document has a
unique style.
<head>
<style>
p {margin-left:200px}
body{background-image:url(“images/back40.gif”);}
</style>
</head>
 Inline styles: To use Inline styles use the style attribute in
the relevent tag. The style attribute can contain any CSS
property.
< p style=“color.#fafafa;margin-left:20px”>This is a
paragraph.</p>
 Multiple styles will cascade into one:
Cascading order:
 Inline style (inside an HTMLelement)
 Inline style sheet (in the head section)
 External style sheet
 Browser default
CSS Syntax
 A CSS rule has two main parts: a selector, and one or more declarations
 H1 {color:blue; font-size: 12px;}
In this example H1 is a selector
Color:blue and font-size:12px is a declaration.
Color is a property and blue is a value.
Font-size is a property and 12px is a value.
 Combining selectors:
h1, h2, h3, h4, h5, h6{
color: #009900;
font family: Georgia, sans-serif;
}
 The id selector
The id selector is used to specify a style for a single, unique
element.
The id selector uses the id attribute of the HTML element,
and is defined with a “#”.
Syntax: #selector-id {property:value;}
 The class selector
The class selector is used to specify a style for a group of
elements.
The class selector uses the HTML class attribute, and is
defined with a “.”
Syntax: selector-class {property: value;}
 Below are the various ways you can use CSS to style
links.
a:link {color: #009900}
a:visited{color: #999999}
a:hover {color: #333333}
a:focus {color: #333333}
a:active {color: #009900}
The CSS Box Model
 All HTML elements can be considered as boxes. In CSS
the term “box model” is used when talking about
design and layout.
 The CSS box model is essentially a box that wraps
aroun HTML elements and consists of: margin, border,
padding and the actual content.
 The box model allows to place a border around
elements and space elements in relation to other
elements.
What is jQuery
 jQuery is a lightweight, “write less, do more”, Javascript library.
 The purpose of jQuery is to make it much easier to use javascript on your
website.
 jQuery takes a lot of common tasks that requires many lines of javascript
code to accomplish, and wraps it into methods that you can call with a
single line of code.
 jQery also simplifies a lot of the complicated things from javascript like
Ajax call and DOM manipulation.
Features:
 HTML/DOM manipulation
 CSS manipulation
 HTML event methods
 Effects and animations
 Ajax
jQuery Syntax
Basic syntax
$(selector).action()
 A $ sign to define jQuery
 A(selector) to find HTML elements
 AjQuery action to be performed on the elements.
Example:
$(“p”).hide() – hides all <p> elements
How to use jQuery:
<head>
<script
src=“//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></
script>
</head>
The element, id and class selector
The jQuery element selector selects elements based on their tag
names.
 $(“<tag-name>”) //element selector
 $(“#<id-name>”) //id selector
 $(“.<class-name>”) //class selector
Example
$(document).ready(function(){
$(“button”).click (function(){
$(“p”).hide();
$(“#test”).hide(); //#id selector
$(“.test”).hide(); //.class selector
});
});
jQuery Event
All the different visitors actions that a web page can respond
to are called events.
An event represents the precise moment when something
happens.
 Mouse events:
Click
Dblclick
Mouseenter
Mouseleave
 Keyboard events:
Keypress
Keydown
Keyup
• Form events:
Submit
Change
Focus
Blur
• Document events:
Load
Resize
Scroll
Unload
Example:
$(“p”).click(function(){
//action goes here
});
jQuery Effects
 Jquery hide(), show() and toggle() method
$(selector).hide(speed,callback);
$(selector).show(speed,callback);
$(selector).toggle(speed,callback);
 Jquery fadeIn(), fadeOut(), fadeToggle() and fadeTo()
method.
$(selector).fadeIn(speed,callback);
$(selector).fadeOut(speed,callback);
$(selector). fadeToggle (speed,callback);
$(selector). fadeTo(speed,callback);

More Related Content

What's hot

Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...
Aditya Dwivedi
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Folasade Adedeji
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
Dipen Parmar
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
Mai Moustafa
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
html-css
html-csshtml-css
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
Syed Sami
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
Ashwin Shiv
 
Css Basics
Css BasicsCss Basics
Css Basics
Jay Patel
 
Css
CssCss
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascript
Marc Huang
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 13 Layers of the Web - Part 1
3 Layers of the Web - Part 1
Jeremy White
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
JainilSampat
 
Html introduction
Html introductionHtml introduction
Html introduction
Nuhu Abdul Razak
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Meghan Frisco
 
Css
CssCss

What's hot (20)

Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...Introduction to web design discussing which languages is used for website des...
Introduction to web design discussing which languages is used for website des...
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
html-css
html-csshtml-css
html-css
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Css
CssCss
Css
 
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascript
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 13 Layers of the Web - Part 1
3 Layers of the Web - Part 1
 
Css notes
Css notesCss notes
Css notes
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
 
Html introduction
Html introductionHtml introduction
Html introduction
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Css
CssCss
Css
 

Similar to Html, css and jquery introduction

PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
Tushar Rajput
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
Aditya Varma
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
jatin batra
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
Altaf Pinjari
 
HTML CSS by Anubhav Singh
HTML CSS by Anubhav SinghHTML CSS by Anubhav Singh
HTML CSS by Anubhav Singh
Anubhav659
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Css tutorial
Css tutorialCss tutorial
Css tutorialvedaste
 
Html
HtmlHtml
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
Ahmad Al-ammar
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
vardanyan99
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
Shawn Calvert
 
html
htmlhtml
html
tumetr1
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
NAGARAJU MAMILLAPALLY
 
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
 

Similar to Html, css and jquery introduction (20)

PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
HTML CSS by Anubhav Singh
HTML CSS by Anubhav SinghHTML CSS by Anubhav Singh
HTML CSS by Anubhav Singh
 
Css introduction
Css introductionCss introduction
Css introduction
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
Html
HtmlHtml
Html
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
 
html
htmlhtml
html
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
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
 

More from cncwebworld

Php framework
Php frameworkPhp framework
Php framework
cncwebworld
 
Introduction to android app development
Introduction to android app developmentIntroduction to android app development
Introduction to android app development
cncwebworld
 
Php Framework
Php FrameworkPhp Framework
Php Framework
cncwebworld
 
Angular JS tutorial
Angular JS tutorialAngular JS tutorial
Angular JS tutorial
cncwebworld
 
ANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNEANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNE
cncwebworld
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
cncwebworld
 
Best programming language to learn in 2018
Best programming language to learn in 2018 Best programming language to learn in 2018
Best programming language to learn in 2018
cncwebworld
 
Best tech jobs in present scenario
Best tech jobs in present scenarioBest tech jobs in present scenario
Best tech jobs in present scenario
cncwebworld
 

More from cncwebworld (8)

Php framework
Php frameworkPhp framework
Php framework
 
Introduction to android app development
Introduction to android app developmentIntroduction to android app development
Introduction to android app development
 
Php Framework
Php FrameworkPhp Framework
Php Framework
 
Angular JS tutorial
Angular JS tutorialAngular JS tutorial
Angular JS tutorial
 
ANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNEANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNE
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
 
Best programming language to learn in 2018
Best programming language to learn in 2018 Best programming language to learn in 2018
Best programming language to learn in 2018
 
Best tech jobs in present scenario
Best tech jobs in present scenarioBest tech jobs in present scenario
Best tech jobs in present scenario
 

Recently uploaded

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
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
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
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
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
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 

Recently uploaded (20)

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...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
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
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 

Html, css and jquery introduction

  • 1.
  • 2. What is HTML  HTML stands for Hyper Text Markup Language  HTML is used for describing web pages.  HTML is a markup language.  A markup language consist of markup tags.  The tags defines document content.  HTML documents include HTML tags and plain text.
  • 3. HTML Tags  HTML markup tags are usually called HTML tags.  HTML tags are keywords surrounded by angle brackets like <HTML>.  Html tags normally come in pairs like <b>and </b>.  The first tag in pair is the start tag and second tag is the end tag.  The end tag is written like the start tag , with a forward slash before the tag name.  Start and end tags are also called opening tags and closing tags. <tagname>Content</tagname>
  • 4. Basic HTML page structure  HTML  HEAD: Non web displayable info and code like meta tags, script, title etc.  BODY: Includes <div> div: Header – We can include branding and navigation elements like logo, slogan, menu, etc. div: Main content – We can include all kind of elements like images, paragraphs, videos, links, etc. div: Footer – We can include informational elements like: copyright, sub menu, links, site info, etc.
  • 5. Example <html> <head> <title>HTML Form Validation Demo</title> </head> <body> <form action=“” id=“”> <h2>HTML Form</h2> <div id=“form_data”> <div class=“fieldgroup”> <label>Email</label> <input type=“text” name=“email”> </div> <div class=“fieldgroup”> <label>Password</label> <input type=“password” name=“password”> </div> <div class=“fieldgroup”> <input type=“submit” value=“submit” class=“submit”> </div> </div> </form> </body> </html>
  • 6. What is CSS  CSS stands for Cascading Style Sheet.  Styles define how to display HTML elements.  External style sheets can save a lot of work.  External style sheets are stored in CSS file.  A CSS file allows to separate web sites HTML content from its style.
  • 7. How to use CSS? There are three types of stylesheets  External style sheet  Internal style sheet  Inline style sheet  External style sheet: An external style sheet is ideal when the style is applied to many pages. <head> <link rel=“stylesheet” type=“text/css” href=“mystyle.css”> <head>  Internal style sheet: An internal style sheet should be used when a single document has a unique style. <head> <style> p {margin-left:200px} body{background-image:url(“images/back40.gif”);} </style> </head>
  • 8.  Inline styles: To use Inline styles use the style attribute in the relevent tag. The style attribute can contain any CSS property. < p style=“color.#fafafa;margin-left:20px”>This is a paragraph.</p>  Multiple styles will cascade into one: Cascading order:  Inline style (inside an HTMLelement)  Inline style sheet (in the head section)  External style sheet  Browser default
  • 9. CSS Syntax  A CSS rule has two main parts: a selector, and one or more declarations  H1 {color:blue; font-size: 12px;} In this example H1 is a selector Color:blue and font-size:12px is a declaration. Color is a property and blue is a value. Font-size is a property and 12px is a value.  Combining selectors: h1, h2, h3, h4, h5, h6{ color: #009900; font family: Georgia, sans-serif; }
  • 10.  The id selector The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is defined with a “#”. Syntax: #selector-id {property:value;}  The class selector The class selector is used to specify a style for a group of elements. The class selector uses the HTML class attribute, and is defined with a “.” Syntax: selector-class {property: value;}
  • 11.  Below are the various ways you can use CSS to style links. a:link {color: #009900} a:visited{color: #999999} a:hover {color: #333333} a:focus {color: #333333} a:active {color: #009900}
  • 12. The CSS Box Model  All HTML elements can be considered as boxes. In CSS the term “box model” is used when talking about design and layout.  The CSS box model is essentially a box that wraps aroun HTML elements and consists of: margin, border, padding and the actual content.  The box model allows to place a border around elements and space elements in relation to other elements.
  • 13. What is jQuery  jQuery is a lightweight, “write less, do more”, Javascript library.  The purpose of jQuery is to make it much easier to use javascript on your website.  jQuery takes a lot of common tasks that requires many lines of javascript code to accomplish, and wraps it into methods that you can call with a single line of code.  jQery also simplifies a lot of the complicated things from javascript like Ajax call and DOM manipulation. Features:  HTML/DOM manipulation  CSS manipulation  HTML event methods  Effects and animations  Ajax
  • 14. jQuery Syntax Basic syntax $(selector).action()  A $ sign to define jQuery  A(selector) to find HTML elements  AjQuery action to be performed on the elements. Example: $(“p”).hide() – hides all <p> elements How to use jQuery: <head> <script src=“//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></ script> </head>
  • 15. The element, id and class selector The jQuery element selector selects elements based on their tag names.  $(“<tag-name>”) //element selector  $(“#<id-name>”) //id selector  $(“.<class-name>”) //class selector Example $(document).ready(function(){ $(“button”).click (function(){ $(“p”).hide(); $(“#test”).hide(); //#id selector $(“.test”).hide(); //.class selector }); });
  • 16. jQuery Event All the different visitors actions that a web page can respond to are called events. An event represents the precise moment when something happens.  Mouse events: Click Dblclick Mouseenter Mouseleave  Keyboard events: Keypress Keydown Keyup
  • 17. • Form events: Submit Change Focus Blur • Document events: Load Resize Scroll Unload Example: $(“p”).click(function(){ //action goes here });
  • 18. jQuery Effects  Jquery hide(), show() and toggle() method $(selector).hide(speed,callback); $(selector).show(speed,callback); $(selector).toggle(speed,callback);  Jquery fadeIn(), fadeOut(), fadeToggle() and fadeTo() method. $(selector).fadeIn(speed,callback); $(selector).fadeOut(speed,callback); $(selector). fadeToggle (speed,callback); $(selector). fadeTo(speed,callback);