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

More Related Content

PPTX
Html and css
PPTX
Html & CSS
PPTX
Web development using HTML and CSS
PPTX
html & css
PPTX
Html n CSS
PPTX
Introduction to HTML
PPTX
Web1O1 - Intro to HTML/CSS
PPTX
Css introduction
Html and css
Html & CSS
Web development using HTML and CSS
html & css
Html n CSS
Introduction to HTML
Web1O1 - Intro to HTML/CSS
Css introduction

What's hot (20)

PPTX
Introduction to web design discussing which languages is used for website des...
PPTX
Introduction to CSS
PPTX
Introduction to CSS
PPTX
11 Quiz related to HTML, CSS, JS and WP
PDF
Introduction to the Web and HTML
PDF
Html css
PDF
Introduction to css
PPTX
Coding a Website with HTML
PDF
Introduction to HTML and CSS
PPTX
CSS- Cascading Style Sheet
PDF
Lesson 1: Introduction to HTML
PPTX
Introduction to HTML and CSS
PPT
Boostrap basics
PDF
What is HTML - An Introduction to HTML (Hypertext Markup Language)
PPTX
Introduction to html course digital markerters
PPTX
Introduction to HTML
PPTX
How to create basic webpage
PPTX
Hushang Gaikwad
Introduction to web design discussing which languages is used for website des...
Introduction to CSS
Introduction to CSS
11 Quiz related to HTML, CSS, JS and WP
Introduction to the Web and HTML
Html css
Introduction to css
Coding a Website with HTML
Introduction to HTML and CSS
CSS- Cascading Style Sheet
Lesson 1: Introduction to HTML
Introduction to HTML and CSS
Boostrap basics
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Introduction to html course digital markerters
Introduction to HTML
How to create basic webpage
Hushang Gaikwad
Ad

Similar to HTML and CSS (20)

PPTX
Java script and html new
PPTX
Java script and html
PPTX
Web Dev Essential 1web dev using HTML DHTML.pptx
PPTX
Html coding
PPTX
Unit 2 Internet and web technology CSS report
PPTX
Html basics-auro skills
PPTX
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
PPTX
uptu web technology unit 2 html
PPTX
46h interaction 1.lesson Hello world
PPTX
Chapter 6 html
PPTX
Web Development Using CSS3
PDF
Web Development Using CSS3
PPTX
Html ppt
PPTX
Html1
PPTX
html document। .pptx
PPTX
Lab_Ex1.pptx
PPTX
HTML-Basic.pptx
PPTX
What is CSS.pptx power point presentation
Java script and html new
Java script and html
Web Dev Essential 1web dev using HTML DHTML.pptx
Html coding
Unit 2 Internet and web technology CSS report
Html basics-auro skills
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
uptu web technology unit 2 html
46h interaction 1.lesson Hello world
Chapter 6 html
Web Development Using CSS3
Web Development Using CSS3
Html ppt
Html1
html document। .pptx
Lab_Ex1.pptx
HTML-Basic.pptx
What is CSS.pptx power point presentation
Ad

Recently uploaded (20)

PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
L1 - Introduction to python Backend.pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
ai tools demonstartion for schools and inter college
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Transform Your Business with a Software ERP System
PDF
Digital Strategies for Manufacturing Companies
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
System and Network Administraation Chapter 3
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
AI in Product Development-omnex systems
How to Migrate SBCGlobal Email to Yahoo Easily
L1 - Introduction to python Backend.pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Understanding Forklifts - TECH EHS Solution
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Odoo Companies in India – Driving Business Transformation.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PTS Company Brochure 2025 (1).pdf.......
ai tools demonstartion for schools and inter college
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Transform Your Business with a Software ERP System
Digital Strategies for Manufacturing Companies
VVF-Customer-Presentation2025-Ver1.9.pptx
System and Network Administraation Chapter 3
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Upgrade and Innovation Strategies for SAP ERP Customers
ManageIQ - Sprint 268 Review - Slide Deck
AI in Product Development-omnex systems

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