SlideShare a Scribd company logo
www.treeni.com
Html, Css
- Ketan Ghumatkar
HTML Basics
● Hypertext markup language
● Browser language
● Building blocks using tags
● Structure of website
HTML Basic Layout
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
HTML Advance Layout
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
HTML Advance Layout
● <header> - Defines a header for a
document or a section
● <nav> - Defines a container for
navigation links
● <section> - Defines a section in a
document
● <article> - Defines an independent self-
contained article
● <aside> - Defines content aside from
the content (like a sidebar)
● <footer> - Defines a footer for a
document or a section
● <details> - Defines additional details
● <summary> - Defines a heading for the
<details> element
HTML TAGs - Elements and Attributes
Examples -
<a href="https://www.w3schools.com">This is a link</a>
<img src="img_girl.jpg" width="500" height="600">
HTML - Important tags
Headings
<h1>- </h1>
<h2>- </h2>
<h3>- </h3>
<h4>- </h4>
<h5>- </h5>
<h6>- </h6>
Paragraphs
<p>-</p>
Content holders
<div>-</div>
<span>-</span>
Listings
<ul> <ol>
<li>A</li> <li>A</li>
<li>B</li> <li>B</li>
</ul> </ol>
Table
<table>
<th>
<td></td>
<td></td>
</th>
<tr>
<td></td>
</tr>
</table>
HTML - styling
Basic styling with tags
● <b> - Bold text
● <strong> - Important text
● <i> - Italic text
● <em> - Emphasized text
● <mark> - Marked text
● <small> - Small text
● <del> - Deleted text
● <ins> - Inserted text
● <sub> - Subscript text
● <sup> - Superscript text
Element types
- Block
- inline
CSS - Basic
● Cascading style sheet
● How element should look like
● Color, size, shape, position
● CSS can be added to HTML elements in 3 ways
● Inline - by using the style attribute in HTML elements
● Internal - by using a <style> element in the <head> section
● External - by using an external CSS file
CSS - Inline Styling
● Mostly used for single element to style
● Uses the style attribute of html element
● Example -
<h1 style="color:blue;">This is a Blue Heading</h1>
CSS - Internal Styling
● Used to define style for single html page
● Is defined in the <head> section within <style> tag
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
CSS - External Styling
● Used defined style for multiple html pages
● You can change look of entire website with single file
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
body {
background-color:
powderblue;
}
h1 {
color: blue;
}
p {
color: red;
}
CSS - Properties
font: 15px arial, sans-serif;
background: lightblue url("img_tree.gif") no-repeat fixed center;
padding: 10px; padding: 10px 2px; padding: 5px 10px 15px 20px;
border: 5px solid red;
width: 500px; width: 50%;
Try different properties in chrome debugger
Reference: https://www.w3schools.com/cssref/default.asp
CSS - concept
Padding and Margin
Float: left, right, none;
Position: static, relative, absolute, fixed
Assignment Overview
Write HTML and CSS to create below page
Folder structure
- Assignment
- index.html
- css
- style.css
HTML and CSS
Thank You
Ad

Recommended

Html and css
Html and css
Samiksha Pun
 
Html & CSS
Html & CSS
JainilSampat
 
Web development using HTML and CSS
Web development using HTML and CSS
SiddhantSingh980217
 
html & css
html & css
umesh patil
 
Html n CSS
Html n CSS
Sukrit Gupta
 
Introduction to HTML
Introduction to HTML
ShreyaShetty92
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
 
Css introduction
Css introduction
AbhishekMondal42
 
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 CSS
AursalanSayed
 
Introduction to CSS
Introduction to CSS
Folasade Adedeji
 
11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP
Rashna Maharjan
 
Introduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
 
Html css
Html css
kanakaiah kedam
 
Introduction to css
Introduction to css
eShikshak
 
Coding a Website with HTML
Coding a Website with HTML
wrhsbusiness
 
Casc Style Sheets Ii
Casc Style Sheets Ii
Digital Insights - Digital Marketing Agency
 
Introduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
CSS- Cascading Style Sheet
CSS- Cascading Style Sheet
Codewizacademy
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
Olivia Moran
 
Introduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
CSS
CSS
seedinteractive
 
Boostrap basics
Boostrap basics
JTechTown
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Introduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
Introduction to HTML
Introduction to HTML
Ann Alcid
 
How to create basic webpage
How to create basic webpage
James Erro
 
Hushang Gaikwad
Hushang Gaikwad
Hushnag Gaikwad
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
Kalyani Government Engineering College
 
Java script and html
Java script and html
Malik M. Ali Shahid
 

More Related Content

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...
Aditya Dwivedi
 
Introduction to CSS
Introduction to CSS
AursalanSayed
 
Introduction to CSS
Introduction to CSS
Folasade Adedeji
 
11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP
Rashna Maharjan
 
Introduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
 
Html css
Html css
kanakaiah kedam
 
Introduction to css
Introduction to css
eShikshak
 
Coding a Website with HTML
Coding a Website with HTML
wrhsbusiness
 
Casc Style Sheets Ii
Casc Style Sheets Ii
Digital Insights - Digital Marketing Agency
 
Introduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
CSS- Cascading Style Sheet
CSS- Cascading Style Sheet
Codewizacademy
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
Olivia Moran
 
Introduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
CSS
CSS
seedinteractive
 
Boostrap basics
Boostrap basics
JTechTown
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Introduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
Introduction to HTML
Introduction to HTML
Ann Alcid
 
How to create basic webpage
How to create basic webpage
James Erro
 
Hushang Gaikwad
Hushang Gaikwad
Hushnag Gaikwad
 
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
 
11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP
Rashna Maharjan
 
Introduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
 
Introduction to css
Introduction to css
eShikshak
 
Coding a Website with HTML
Coding a Website with HTML
wrhsbusiness
 
Introduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
CSS- Cascading Style Sheet
CSS- Cascading Style Sheet
Codewizacademy
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
Olivia Moran
 
Introduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
Boostrap basics
Boostrap basics
JTechTown
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Introduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
Introduction to HTML
Introduction to HTML
Ann Alcid
 
How to create basic webpage
How to create basic webpage
James Erro
 

Similar to HTML and CSS (20)

Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
Kalyani Government Engineering College
 
Java script and html
Java script and html
Malik M. Ali Shahid
 
Java script and html new
Java script and html new
Malik M. Ali Shahid
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
html css intro sanskar , saurabh.pptx
html css intro sanskar , saurabh.pptx
Sanskardubey24
 
CSS Training in Bangalore
CSS Training in Bangalore
rajkamal560066
 
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
shahmirmirza30
 
Basic HTML/CSS
Basic HTML/CSS
Chris Heiden
 
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
brianbyamukama302
 
cascading style sheets ppt.sildeshower phone view
cascading style sheets ppt.sildeshower phone view
kedaringle994
 
Css
Css
Kamal Acharya
 
6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt
VARNITBHASKAR1
 
Unit 2 WT-CSS.pptx web technology project
Unit 2 WT-CSS.pptx web technology project
abhiramhatwar
 
Introduction HTML and CSS
Introduction HTML and CSS
GovtITIWomen
 
Lab_Ex1.pptx
Lab_Ex1.pptx
sherrilsiddhardh
 
BITM3730Week4.pptx
BITM3730Week4.pptx
MattMarino13
 
Html Styles-CSS
Html Styles-CSS
ispkosova
 
Css1
Css1
Pulkit Tanwar
 
HTML (Hyper Text Markup language ).pptx
HTML (Hyper Text Markup language ).pptx
neelkamal72809
 
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
bmit1
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
html css intro sanskar , saurabh.pptx
html css intro sanskar , saurabh.pptx
Sanskardubey24
 
CSS Training in Bangalore
CSS Training in Bangalore
rajkamal560066
 
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
shahmirmirza30
 
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
brianbyamukama302
 
cascading style sheets ppt.sildeshower phone view
cascading style sheets ppt.sildeshower phone view
kedaringle994
 
6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt
VARNITBHASKAR1
 
Unit 2 WT-CSS.pptx web technology project
Unit 2 WT-CSS.pptx web technology project
abhiramhatwar
 
Introduction HTML and CSS
Introduction HTML and CSS
GovtITIWomen
 
BITM3730Week4.pptx
BITM3730Week4.pptx
MattMarino13
 
Html Styles-CSS
Html Styles-CSS
ispkosova
 
HTML (Hyper Text Markup language ).pptx
HTML (Hyper Text Markup language ).pptx
neelkamal72809
 
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
bmit1
 
Ad

Recently uploaded (20)

Zoho Creator Solution for EI by Elsner Technologies.docx
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
 
The Anti-Masterclass Live - Peak of Data & AI 2025
The Anti-Masterclass Live - Peak of Data & AI 2025
Safe Software
 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
 
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
 
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
How Automation in Claims Handling Streamlined Operations
How Automation in Claims Handling Streamlined Operations
Insurance Tech Services
 
Which Hiring Management Tools Offer the Best ROI?
Which Hiring Management Tools Offer the Best ROI?
HireME
 
Streamlining CI/CD with FME Flow: A Practical Guide
Streamlining CI/CD with FME Flow: A Practical Guide
Safe Software
 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
Zoho Creator Solution for EI by Elsner Technologies.docx
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
 
The Anti-Masterclass Live - Peak of Data & AI 2025
The Anti-Masterclass Live - Peak of Data & AI 2025
Safe Software
 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
 
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
 
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
How Automation in Claims Handling Streamlined Operations
How Automation in Claims Handling Streamlined Operations
Insurance Tech Services
 
Which Hiring Management Tools Offer the Best ROI?
Which Hiring Management Tools Offer the Best ROI?
HireME
 
Streamlining CI/CD with FME Flow: A Practical Guide
Streamlining CI/CD with FME Flow: A Practical Guide
Safe Software
 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
Ad

HTML and CSS

  • 2. HTML Basics ● Hypertext markup language ● Browser language ● Building blocks using tags ● Structure of website
  • 3. HTML Basic Layout <!DOCTYPE html> <html> <head> </head> <body> </body> </html>
  • 4. HTML Advance Layout <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html>
  • 5. HTML Advance Layout ● <header> - Defines a header for a document or a section ● <nav> - Defines a container for navigation links ● <section> - Defines a section in a document ● <article> - Defines an independent self- contained article ● <aside> - Defines content aside from the content (like a sidebar) ● <footer> - Defines a footer for a document or a section ● <details> - Defines additional details ● <summary> - Defines a heading for the <details> element
  • 6. HTML TAGs - Elements and Attributes Examples - <a href="https://www.w3schools.com">This is a link</a> <img src="img_girl.jpg" width="500" height="600">
  • 7. HTML - Important tags Headings <h1>- </h1> <h2>- </h2> <h3>- </h3> <h4>- </h4> <h5>- </h5> <h6>- </h6> Paragraphs <p>-</p> Content holders <div>-</div> <span>-</span> Listings <ul> <ol> <li>A</li> <li>A</li> <li>B</li> <li>B</li> </ul> </ol> Table <table> <th> <td></td> <td></td> </th> <tr> <td></td> </tr> </table>
  • 8. HTML - styling Basic styling with tags ● <b> - Bold text ● <strong> - Important text ● <i> - Italic text ● <em> - Emphasized text ● <mark> - Marked text ● <small> - Small text ● <del> - Deleted text ● <ins> - Inserted text ● <sub> - Subscript text ● <sup> - Superscript text Element types - Block - inline
  • 9. CSS - Basic ● Cascading style sheet ● How element should look like ● Color, size, shape, position ● CSS can be added to HTML elements in 3 ways ● Inline - by using the style attribute in HTML elements ● Internal - by using a <style> element in the <head> section ● External - by using an external CSS file
  • 10. CSS - Inline Styling ● Mostly used for single element to style ● Uses the style attribute of html element ● Example - <h1 style="color:blue;">This is a Blue Heading</h1>
  • 11. CSS - Internal Styling ● Used to define style for single html page ● Is defined in the <head> section within <style> tag <!DOCTYPE html> <html> <head> <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>
  • 12. CSS - External Styling ● Used defined style for multiple html pages ● You can change look of entire website with single file <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> body { background-color: powderblue; } h1 { color: blue; } p { color: red; }
  • 13. CSS - Properties font: 15px arial, sans-serif; background: lightblue url("img_tree.gif") no-repeat fixed center; padding: 10px; padding: 10px 2px; padding: 5px 10px 15px 20px; border: 5px solid red; width: 500px; width: 50%; Try different properties in chrome debugger Reference: https://www.w3schools.com/cssref/default.asp
  • 14. CSS - concept Padding and Margin Float: left, right, none; Position: static, relative, absolute, fixed
  • 15. Assignment Overview Write HTML and CSS to create below page Folder structure - Assignment - index.html - css - style.css