SlideShare a Scribd company logo
2
Introduction
HTML
text
markup
language
hyper
referential
link
data
predefined
communicate
• Client Side Scripting Language not programming language. Its markup language set of
markup tag.
• Its used to design static webpages.
• Markup tags used to describe use to page.
• Every webpage designed is HTML has an extension .html .
• Notepad and Notepad++
• Its executed in any web browser
Most read
3
Example:
<!doctype html>
<html> //open tag//
<body>
<h1> My first heading </h1>
<p> My first paragraph </p>
</body>
</html> //close tag //
Visible page content
Describe the web page
Output:
My first heading
My first paragraph
Most read
9
Selector Example Example description
#id #firstname Selects the element
with id="firstname"
.class .intro Selects all elements
with class="intro"
element.class p.intro Selects only <p>
elements with
class="intro"
* * Selects all elements
element p Selects all <p> elements
element,element,.. div, p Selects all <div>
elements and all <p>
elements
All CSS simple sectors:
Most read
Basic Details of HTML
Introduction
HTML
text
markup
language
hyper
referential
link
data
predefined
communicate
• Client Side Scripting Language not programming language. Its markup language set of
markup tag.
• Its used to design static webpages.
• Markup tags used to describe use to page.
• Every webpage designed is HTML has an extension .html .
• Notepad and Notepad++
• Its executed in any web browser
Example:
<!doctype html>
<html> //open tag//
<body>
<h1> My first heading </h1>
<p> My first paragraph </p>
</body>
</html> //close tag //
Visible page content
Describe the web page
Output:
My first heading
My first paragraph
HTML Element
• Block level Element
i) behaves like blocks, block level like
<p>,<h1>,<div>,<ul>,<ol>,<pre>,<address>,<form> .
ii) This elements always starts in new line and occupy full width of parent
element.
• Inline Element
i) Starts in the same line.
ii) Their width is equal to their content
<b>,<l>,<s>,<u>,<strong>,<del>,<sup>,<sub>,<anchor>,<span> .
iii) <img> tag supports width and height.
Basic Details of CSS
Introduction
• CSS stands for Cascading Style Sheets.
• Its the language we use to style an HTML document.
• Its describes how HTML elements are to be displayed on screen , paper or
other media.
• Its saves a lot of work. It can control the layout of multiple web pages all at
once.
• External stylesheet are stored is CSS files.
Why use CSS?
CSS used to define styles for your web page including the design , layout and
verification in display for different devices and screen size.
Example:
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-size: 20px;
}
CSS can be added to HTML documents in 3 ways:
1.Inline - by using the style attribute inside HTML elements.
2.Internal - by using a <style> element in the <head> section.
3.External - by using a <link> element to link to an external CSS file.
CSS Selectors:
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)
Selector Example Example description
#id #firstname Selects the element
with id="firstname"
.class .intro Selects all elements
with class="intro"
element.class p.intro Selects only <p>
elements with
class="intro"
* * Selects all elements
element p Selects all <p> elements
element,element,.. div, p Selects all <div>
elements and all <p>
elements
All CSS simple sectors:
Difference between HTML and CSS
HTML CSS
HTML is used to define a structure of
a web page.
CSS is used to style the web pages by
using different styling features.
It consists of tags inside which text is
enclosed.
It consists of selectors and
declaration blocks.
HTML doesn’t have further types. CSS can be internal or external
depending upon the requirement.
We cannot use HTML inside a CSS
sheet.
We can use CSS inside a HTML
document.
HTML is not used for presentation
and visualization.
CSS is used for presentation and
visualization.
HTML has comparatively less backup
and support.
CSS has comparatively higher backup
and support.

More Related Content

What's hot (20)

CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
Amit Kumar Singh
 
Html,javascript & css
Html,javascript & cssHtml,javascript & css
Html,javascript & css
Predhin Sapru
 
Css Ppt
Css PptCss Ppt
Css Ppt
Hema Prasanth
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
Arulmurugan Rajaraman
 
Html coding
Html codingHtml coding
Html coding
Briana VanBuskirk
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Amit Tyagi
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Gil Fink
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
NextGenr
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
shabab shihan
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).ppt
MuhammadRehan856177
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
WordPress Memphis
 
Dom
DomDom
Dom
Rakshita Upadhyay
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Html 5
Html 5Html 5
Html 5
manujayarajkm
 
Javascript
JavascriptJavascript
Javascript
Sun Technlogies
 
Css
CssCss
Css
Hemant Saini
 

Similar to Basic Details of HTML and CSS.pdf (20)

1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
AAFREEN SHAIKH
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
Sónia
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
Himanshu Pathak
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
Cascading Style Sheets (CSS) LEVELS.pptx
Cascading Style Sheets (CSS) LEVELS.pptxCascading Style Sheets (CSS) LEVELS.pptx
Cascading Style Sheets (CSS) LEVELS.pptx
DishaGudigar
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Introduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and JqueryIntroduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and Jquery
valuebound
 
Cascading Styling Sheets(CSS) simple design language intended to transform th...
Cascading Styling Sheets(CSS) simple design language intended to transform th...Cascading Styling Sheets(CSS) simple design language intended to transform th...
Cascading Styling Sheets(CSS) simple design language intended to transform th...
JebaRaj26
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
IslamGhonimi1
 
website design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptxwebsite design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptx
geremilibrary
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
alvinblue1212
 
Presentation on htmlcssjs-130221085257-phpapp02.pdf
Presentation on  htmlcssjs-130221085257-phpapp02.pdfPresentation on  htmlcssjs-130221085257-phpapp02.pdf
Presentation on htmlcssjs-130221085257-phpapp02.pdf
MeetRajani2
 
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdfChapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
Web Development - Lecture 4
Web Development - Lecture 4Web Development - Lecture 4
Web Development - Lecture 4
Syed Shahzaib Sohail
 
HTMLforbeginerslearntocodeforbeginersinfh
HTMLforbeginerslearntocodeforbeginersinfhHTMLforbeginerslearntocodeforbeginersinfh
HTMLforbeginerslearntocodeforbeginersinfh
enisp1
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
Ahmad Al-ammar
 
HTML2.pdf
HTML2.pdfHTML2.pdf
HTML2.pdf
202GCET19
 
Web Design & Development - Session 2
Web Design & Development - Session 2Web Design & Development - Session 2
Web Design & Development - Session 2
Shahrzad Peyman
 
Lab#1 - Front End Development
Lab#1 - Front End DevelopmentLab#1 - Front End Development
Lab#1 - Front End Development
Walid Ashraf
 
1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
AAFREEN SHAIKH
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
Sónia
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
Cascading Style Sheets (CSS) LEVELS.pptx
Cascading Style Sheets (CSS) LEVELS.pptxCascading Style Sheets (CSS) LEVELS.pptx
Cascading Style Sheets (CSS) LEVELS.pptx
DishaGudigar
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Introduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and JqueryIntroduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and Jquery
valuebound
 
Cascading Styling Sheets(CSS) simple design language intended to transform th...
Cascading Styling Sheets(CSS) simple design language intended to transform th...Cascading Styling Sheets(CSS) simple design language intended to transform th...
Cascading Styling Sheets(CSS) simple design language intended to transform th...
JebaRaj26
 
website design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptxwebsite design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptx
geremilibrary
 
Presentation on htmlcssjs-130221085257-phpapp02.pdf
Presentation on  htmlcssjs-130221085257-phpapp02.pdfPresentation on  htmlcssjs-130221085257-phpapp02.pdf
Presentation on htmlcssjs-130221085257-phpapp02.pdf
MeetRajani2
 
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdfChapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
HTMLforbeginerslearntocodeforbeginersinfh
HTMLforbeginerslearntocodeforbeginersinfhHTMLforbeginerslearntocodeforbeginersinfh
HTMLforbeginerslearntocodeforbeginersinfh
enisp1
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
Ahmad Al-ammar
 
Web Design & Development - Session 2
Web Design & Development - Session 2Web Design & Development - Session 2
Web Design & Development - Session 2
Shahrzad Peyman
 
Lab#1 - Front End Development
Lab#1 - Front End DevelopmentLab#1 - Front End Development
Lab#1 - Front End Development
Walid Ashraf
 

Recently uploaded (20)

ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdfISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
Mathias Magdowski
 
Design of a Hand Rehabilitation Device for Post-Stroke Patients..pptx
Design of a Hand Rehabilitation Device for Post-Stroke Patients..pptxDesign of a Hand Rehabilitation Device for Post-Stroke Patients..pptx
Design of a Hand Rehabilitation Device for Post-Stroke Patients..pptx
younisalsadah
 
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
하이플럭스 / HIFLUX Co., Ltd.
 
ISO 4548-9 Oil Filter Anti Drain Catalogue.pdf
ISO 4548-9 Oil Filter Anti Drain Catalogue.pdfISO 4548-9 Oil Filter Anti Drain Catalogue.pdf
ISO 4548-9 Oil Filter Anti Drain Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Highway Engineering - Pavement materials
Highway Engineering - Pavement materialsHighway Engineering - Pavement materials
Highway Engineering - Pavement materials
AmrutaBhosale9
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos10
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
Application Security and Secure Software Development Lifecycle
Application  Security and Secure Software Development LifecycleApplication  Security and Secure Software Development Lifecycle
Application Security and Secure Software Development Lifecycle
DrKavithaP1
 
1. Mix Design M20 CT.pdf for M20 Grade mix design
1. Mix Design M20 CT.pdf for M20 Grade mix design1. Mix Design M20 CT.pdf for M20 Grade mix design
1. Mix Design M20 CT.pdf for M20 Grade mix design
smghumare
 
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdfSoftware_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
VanshMunjal7
 
UNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power SystemUNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power System
Sridhar191373
 
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCHUNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
Sridhar191373
 
Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...
Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...
Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...
ManiMaran230751
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai
Julio Chai
 
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdfISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITSDE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
Sridhar191373
 
ISO 5011 Air Filter Catalogues .pdf
ISO 5011 Air Filter Catalogues      .pdfISO 5011 Air Filter Catalogues      .pdf
ISO 5011 Air Filter Catalogues .pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.
MdManikurRahman
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
Mathias Magdowski
 
Design of a Hand Rehabilitation Device for Post-Stroke Patients..pptx
Design of a Hand Rehabilitation Device for Post-Stroke Patients..pptxDesign of a Hand Rehabilitation Device for Post-Stroke Patients..pptx
Design of a Hand Rehabilitation Device for Post-Stroke Patients..pptx
younisalsadah
 
Highway Engineering - Pavement materials
Highway Engineering - Pavement materialsHighway Engineering - Pavement materials
Highway Engineering - Pavement materials
AmrutaBhosale9
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos10
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
Application Security and Secure Software Development Lifecycle
Application  Security and Secure Software Development LifecycleApplication  Security and Secure Software Development Lifecycle
Application Security and Secure Software Development Lifecycle
DrKavithaP1
 
1. Mix Design M20 CT.pdf for M20 Grade mix design
1. Mix Design M20 CT.pdf for M20 Grade mix design1. Mix Design M20 CT.pdf for M20 Grade mix design
1. Mix Design M20 CT.pdf for M20 Grade mix design
smghumare
 
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdfSoftware_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
VanshMunjal7
 
UNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power SystemUNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power System
Sridhar191373
 
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCHUNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCH
Sridhar191373
 
Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...
Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...
Forensic Science – Digital Forensics – Digital Evidence – The Digital Forensi...
ManiMaran230751
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai
Julio Chai
 
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITSDE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
Sridhar191373
 
Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.
MdManikurRahman
 

Basic Details of HTML and CSS.pdf

  • 2. Introduction HTML text markup language hyper referential link data predefined communicate • Client Side Scripting Language not programming language. Its markup language set of markup tag. • Its used to design static webpages. • Markup tags used to describe use to page. • Every webpage designed is HTML has an extension .html . • Notepad and Notepad++ • Its executed in any web browser
  • 3. Example: <!doctype html> <html> //open tag// <body> <h1> My first heading </h1> <p> My first paragraph </p> </body> </html> //close tag // Visible page content Describe the web page Output: My first heading My first paragraph
  • 4. HTML Element • Block level Element i) behaves like blocks, block level like <p>,<h1>,<div>,<ul>,<ol>,<pre>,<address>,<form> . ii) This elements always starts in new line and occupy full width of parent element. • Inline Element i) Starts in the same line. ii) Their width is equal to their content <b>,<l>,<s>,<u>,<strong>,<del>,<sup>,<sub>,<anchor>,<span> . iii) <img> tag supports width and height.
  • 6. Introduction • CSS stands for Cascading Style Sheets. • Its the language we use to style an HTML document. • Its describes how HTML elements are to be displayed on screen , paper or other media. • Its saves a lot of work. It can control the layout of multiple web pages all at once. • External stylesheet are stored is CSS files.
  • 7. Why use CSS? CSS used to define styles for your web page including the design , layout and verification in display for different devices and screen size. Example: body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-size: 20px; }
  • 8. CSS can be added to HTML documents in 3 ways: 1.Inline - by using the style attribute inside HTML elements. 2.Internal - by using a <style> element in the <head> section. 3.External - by using a <link> element to link to an external CSS file. CSS Selectors: 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)
  • 9. Selector Example Example description #id #firstname Selects the element with id="firstname" .class .intro Selects all elements with class="intro" element.class p.intro Selects only <p> elements with class="intro" * * Selects all elements element p Selects all <p> elements element,element,.. div, p Selects all <div> elements and all <p> elements All CSS simple sectors:
  • 10. Difference between HTML and CSS HTML CSS HTML is used to define a structure of a web page. CSS is used to style the web pages by using different styling features. It consists of tags inside which text is enclosed. It consists of selectors and declaration blocks. HTML doesn’t have further types. CSS can be internal or external depending upon the requirement. We cannot use HTML inside a CSS sheet. We can use CSS inside a HTML document. HTML is not used for presentation and visualization. CSS is used for presentation and visualization. HTML has comparatively less backup and support. CSS has comparatively higher backup and support.