SlideShare a Scribd company logo
2
Most read
3
Most read
9
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

PDF
HTML CSS Basics
PPTX
Learn html Basics
PPTX
Html ppt
PPTX
Html and css
PPT
HTML & CSS.ppt
PPTX
Cascading Style Sheet (CSS)
PPT
Cascading Style Sheets (CSS) help
PPT
Html presentation
HTML CSS Basics
Learn html Basics
Html ppt
Html and css
HTML & CSS.ppt
Cascading Style Sheet (CSS)
Cascading Style Sheets (CSS) help
Html presentation

What's hot (20)

PDF
Html / CSS Presentation
PPT
Presentation on HTML
PPTX
Anchor tag HTML Presentation
PPT
Html Slide Part-1
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Html n CSS
PPTX
Html coding
PPTX
Html form tag
PDF
Intro to HTML and CSS basics
PPTX
Basic Html Knowledge for students
PPT
Introduction to CSS
PPTX
PDF
Bootstrap
PPTX
Basic HTML
ODP
Introduction of Html/css/js
PDF
Introduction to HTML5
PPTX
html-table
PPTX
The Complete HTML
PPT
Introduction to html
PPT
Advanced Cascading Style Sheets
Html / CSS Presentation
Presentation on HTML
Anchor tag HTML Presentation
Html Slide Part-1
Introduction to Cascading Style Sheets (CSS)
Html n CSS
Html coding
Html form tag
Intro to HTML and CSS basics
Basic Html Knowledge for students
Introduction to CSS
Bootstrap
Basic HTML
Introduction of Html/css/js
Introduction to HTML5
html-table
The Complete HTML
Introduction to html
Advanced Cascading Style Sheets
Ad

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

PDF
1. Advanced Web Designing (12th IT) (1).pdf
PPTX
Ifi7174 lesson2
PPTX
Introduction to html
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
PPTX
Cascading Style Sheets (CSS) LEVELS.pptx
PPTX
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
PPTX
Introduction to Html5, css, Javascript and Jquery
PPTX
Cascading Styling Sheets(CSS) simple design language intended to transform th...
PPTX
Lab1_HTML.pptx
PPTX
website design mark-up with HTML 5 .pptx
DOC
Learn html from www
PDF
Presentation on htmlcssjs-130221085257-phpapp02.pdf
PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
PPTX
Workshop 2 Slides.pptx
PPTX
Web Development - Lecture 4
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
PDF
Html & Html5 from scratch
PDF
HTML2.pdf
PDF
Web Design & Development - Session 2
PPTX
Lab#1 - Front End Development
1. Advanced Web Designing (12th IT) (1).pdf
Ifi7174 lesson2
Introduction to html
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Cascading Style Sheets (CSS) LEVELS.pptx
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Introduction to Html5, css, Javascript and Jquery
Cascading Styling Sheets(CSS) simple design language intended to transform th...
Lab1_HTML.pptx
website design mark-up with HTML 5 .pptx
Learn html from www
Presentation on htmlcssjs-130221085257-phpapp02.pdf
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Workshop 2 Slides.pptx
Web Development - Lecture 4
HTMLforbeginerslearntocodeforbeginersinfh
Html & Html5 from scratch
HTML2.pdf
Web Design & Development - Session 2
Lab#1 - Front End Development
Ad

Recently uploaded (20)

PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
composite construction of structures.pdf
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Sustainable Sites - Green Building Construction
PDF
PPT on Performance Review to get promotions
Foundation to blockchain - A guide to Blockchain Tech
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Model Code of Practice - Construction Work - 21102022 .pdf
CH1 Production IntroductoryConcepts.pptx
composite construction of structures.pdf
Structs to JSON How Go Powers REST APIs.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mechanical Engineering MATERIALS Selection
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
additive manufacturing of ss316l using mig welding
bas. eng. economics group 4 presentation 1.pptx
Internet of Things (IOT) - A guide to understanding
Sustainable Sites - Green Building Construction
PPT on Performance Review to get promotions

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.