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

What's hot (20)

PPTX
Html ppt
santosh lamba
 
PPTX
HTML Introduction
Hameda Hurmat
 
PPTX
Introduction to HTML
Ameer Khan
 
PPTX
Basic HTML
Sayan De
 
PPTX
Html
yugank_gupta
 
PDF
Introduction to HTML and CSS
Mario Hernandez
 
PPT
Introduction to html
vikasgaur31
 
PPTX
HTML
chinesebilli
 
PPT
Html basics
mcatahir947
 
PPTX
Html images syntax
JayjZens
 
PDF
Lesson 1: Introduction to HTML
Olivia Moran
 
ODP
Introduction to css & its attributes with syntax
priyadharshini murugan
 
PPTX
Page layout with css
Er. Nawaraj Bhandari
 
PDF
HTML5: features with examples
Alfredo Torre
 
PPTX
Html
Nisa Soomro
 
PDF
Intro to HTML and CSS basics
Eliran Eliassy
 
PPT
CSS Basics
WordPress Memphis
 
PPT
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Html ppt
santosh lamba
 
HTML Introduction
Hameda Hurmat
 
Introduction to HTML
Ameer Khan
 
Basic HTML
Sayan De
 
Introduction to HTML and CSS
Mario Hernandez
 
Introduction to html
vikasgaur31
 
Html basics
mcatahir947
 
Html images syntax
JayjZens
 
Lesson 1: Introduction to HTML
Olivia Moran
 
Introduction to css & its attributes with syntax
priyadharshini murugan
 
Page layout with css
Er. Nawaraj Bhandari
 
HTML5: features with examples
Alfredo Torre
 
Intro to HTML and CSS basics
Eliran Eliassy
 
CSS Basics
WordPress Memphis
 
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 

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

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

Recently uploaded (20)

PDF
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PPTX
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PDF
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PPTX
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PPTX
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
Ad

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.