SlideShare a Scribd company logo
INTRODUCTION
TO
HTML AND CSS
A BEGINNER FRIENDLY SESSION
Google Developer Students Club
Indian Institute Of Information Technology Kota
INTRODUCTION
HTML BOILER PLATE
BASIC TAGS
TABLES
DIVISION
FORM
TOPICS TO
BE
COVERED
INTRODUCTION
WAYS TO INSERT CSS
ANATOMY AND SYNTAX
SELECTORS
BOX MODEL
POSITIONING
BASIC PROPERTIES
INTRODUCTION
INTRODUCTION
TO
TO
HTML
HTML
ABOUT HTML
HTML means Hyper Text
Markup Language.
HTML is NOT a programming
language, it’s a markup
language, which means its
purpose is to give structure
to the content of the
website, not to define an
algorithm.
HTML BOILER PLATE
A boilerplate in HTML is a template you
will add at the start of your project. You
should add this boilerplate to all of your
HTML pages.
To install the extension : open in browser
Now type html and press enter at html:5.
To add a boiler plate in VS Code
HTML TAGS
HEADING TAG
HTML headings are defined with the <h1>
to <h6> tags.
<h1> defines the most important heading
and
<h6> defines the least important heading.
PARAGRAPH TAG
IMAGE TAG
The <p> tag defines a paragraph (text block).
src - Specifies the path to the image
alt - Specifies an alternate text for the image
The HTML <img> tag is used to embed an image in a web page.
The <img> tag has two required attributes:
DIV TAG
ANCHOR TAG
The <a> HTML element , with its href attribute, creates a hyperlink to web pages,
files, email addresses, locations in the same page, or anything else a URL can
address.
The <div> tag defines a division or a
section in an HTML document.
The <div> tag is used as a container for
HTML elements.
ORDERD LISTS
1 2 UNORDERED LISTS
An ordered list starts with the
<ol> tag.
1
LISTS
HTML lists allow web developers to group a set of related items in lists.
Each list item starts with the <li> tag.
An unordered list starts with the
<ul> tag
1
TABLE
HTML tables allow web developers to
arrange data into rows and columns.
<td>
<th>
<tr>
Each table row starts with a <tr> and
ends with a </tr> tag.
Each table cell is defined by a <td>
and a </td> tag which contains the
content of the table cell.
This is used when you want your cells to
be header cells adding a heading to them.
<label>
<input type="text">
<input type="email">
<input type="checkbox">
<input type="submit">
An HTML form is used to collect user input. The HTML <form> element is used.
An <input> element can be displayed in many ways, depending on the type attribute.
and more.
HTML FORM
INTRODUCTION
INTRODUCTION
TO
TO
CSS
CSS
ABOUT CSS
CSS stands for Cascading
Style Sheets. It is a style
sheet language that is used
to describe the look and
formatting of a document
written in a markup
language.
CSS is added to HTML pages
to format the document
according to information in
the style sheet.
There are three ways to
insert CSS in HTML
documents.
WAYS TO INSERT CSS
Inline
External
Internal
ANATOMY AND SYNTAX
The selector points to the HTML element you want to style.
The declaration block contains one or more declarations separated by
semicolons.
Each declaration includes a CSS property name and a value, separated by a colon.
Multiple CSS declarations are separated with semicolons, and declaration blocks
are surrounded by curly braces.
PROPERTIES
Font size
Font style
Colour
Background colour
Text alignment
Border
Margins
Padding
#town{
background-color:lightgray;
color: brown;
border: 2px solid darkred;
margin: 20px;
padding: 20px;
}
SELECTORS
There are several different types of selectors in CSS.
The element selector selects the HTML
element by name.
CSS Element Selector <style>
p{
text-align: center;
color: blue;
}
</style>
CSS Id Selector
The id selector selects the id attribute of an
HTML element to select a specific element.
An id is always unique within the page so it
is chosen to select a single, unique
element.
<style>
#para1 {
text-align: center;
color: blue;
}
</style>
The class selector selects HTML elements
with a specific class attribute. It is used with
a period character . followed by the class
name.
CSS Class Selector
CSS Group Selector
The grouping selector is used to select all the
elements with the same style definitions.
Grouping selector is used to minimize the code.
Commas are used to separate each selector in
grouping.
<style>
h1, h2, p {
text-align: center;
color: blue;
}
</style>
<style>
.para1{
text-align: center;
color: blue;
}
</style>
BOX MODEL:
The CSS box model is essentially a
box that wraps around every HTML
element. It consists of: margins,
borders, padding, and the actual
content.
POSITIONING IN CSS
Fixed
The position property specifies the type of positioning method used for an
element.
Absolute Relative Static
COMMENTS
Z-INDEX
The comment tag is used to insert comments in the source code. Comments are
not displayed in the browsers.
The z-index property
specifies the stack order
of an element.
We may use z-index:-1 if
we want the element to
be present at the
backward position.
<!--This is a comment. Comments are not displayed in the browser-->
img {
position:absolute;
z-index: -1;
}
HTML:
https://developer.mozilla.org/en-US/docs/Web/HTML
https://www.w3schools.com/html/default.asp
CSS:
https://www.w3schools.com/css/
https://developer.mozilla.org/en-US/docs/Web/CSS
RESOURCES
THANK YOU
THANK YOU

More Related Content

PPTX
Workshop 2 Slides.pptx
PDF
INTERNSHIP PROJECT PPT RAJ HZL.pdf
PDF
Web Dev Workshop at GDG on Campus:MGMCOE
PPTX
Html starting
PPTX
Webithon Workshop
PPT
Web Development using HTML & CSS
PDF
Html & Html5 from scratch
Workshop 2 Slides.pptx
INTERNSHIP PROJECT PPT RAJ HZL.pdf
Web Dev Workshop at GDG on Campus:MGMCOE
Html starting
Webithon Workshop
Web Development using HTML & CSS
Html & Html5 from scratch

Similar to HTML CSS.pdf (20)

PPTX
Lecture 9 CSS part 1.pptxType Classification
PPTX
HTML_HEADER PART TAGS .pptx
PPTX
How to learn HTML in 10 Days
PPTX
PPTX
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
PPTX
Lecture 3CSS part 1.pptx
PPTX
Introduction to web design discussing which languages is used for website des...
DOCX
html tags
PPTX
INTRODUCTION CODING - THE HTML AND CSS.pptx
PPTX
PDF
PPT-203105353-1.pdf
DOCX
PPTX
An Overview of HTML, CSS & Java Script
DOCX
Web(chap2)
PPTX
HTML.pptx
ODP
PPT
Hyper Text Mark-up Language
PPTX
Lecture 9 CSS part 1.pptxType Classification
HTML_HEADER PART TAGS .pptx
How to learn HTML in 10 Days
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
Lecture 3CSS part 1.pptx
Introduction to web design discussing which languages is used for website des...
html tags
INTRODUCTION CODING - THE HTML AND CSS.pptx
PPT-203105353-1.pdf
An Overview of HTML, CSS & Java Script
Web(chap2)
HTML.pptx
Hyper Text Mark-up Language
Ad

Recently uploaded (20)

PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
master seminar digital applications in india
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Types and Its function , kingdom of life
Practical Manual AGRO-233 Principles and Practices of Natural Farming
master seminar digital applications in india
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Final Presentation General Medicine 03-08-2024.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Microbial diseases, their pathogenesis and prophylaxis
Supply Chain Operations Speaking Notes -ICLT Program
Cell Structure & Organelles in detailed.
A systematic review of self-coping strategies used by university students to ...
Weekly quiz Compilation Jan -July 25.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
What if we spent less time fighting change, and more time building what’s rig...
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Computing-Curriculum for Schools in Ghana
Cell Types and Its function , kingdom of life
Ad

HTML CSS.pdf

  • 1. INTRODUCTION TO HTML AND CSS A BEGINNER FRIENDLY SESSION Google Developer Students Club Indian Institute Of Information Technology Kota
  • 2. INTRODUCTION HTML BOILER PLATE BASIC TAGS TABLES DIVISION FORM TOPICS TO BE COVERED INTRODUCTION WAYS TO INSERT CSS ANATOMY AND SYNTAX SELECTORS BOX MODEL POSITIONING BASIC PROPERTIES
  • 4. ABOUT HTML HTML means Hyper Text Markup Language. HTML is NOT a programming language, it’s a markup language, which means its purpose is to give structure to the content of the website, not to define an algorithm.
  • 5. HTML BOILER PLATE A boilerplate in HTML is a template you will add at the start of your project. You should add this boilerplate to all of your HTML pages. To install the extension : open in browser Now type html and press enter at html:5. To add a boiler plate in VS Code
  • 6. HTML TAGS HEADING TAG HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading and <h6> defines the least important heading.
  • 7. PARAGRAPH TAG IMAGE TAG The <p> tag defines a paragraph (text block). src - Specifies the path to the image alt - Specifies an alternate text for the image The HTML <img> tag is used to embed an image in a web page. The <img> tag has two required attributes:
  • 8. DIV TAG ANCHOR TAG The <a> HTML element , with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address. The <div> tag defines a division or a section in an HTML document. The <div> tag is used as a container for HTML elements.
  • 9. ORDERD LISTS 1 2 UNORDERED LISTS An ordered list starts with the <ol> tag. 1 LISTS HTML lists allow web developers to group a set of related items in lists. Each list item starts with the <li> tag. An unordered list starts with the <ul> tag
  • 10. 1 TABLE HTML tables allow web developers to arrange data into rows and columns. <td> <th> <tr> Each table row starts with a <tr> and ends with a </tr> tag. Each table cell is defined by a <td> and a </td> tag which contains the content of the table cell. This is used when you want your cells to be header cells adding a heading to them.
  • 11. <label> <input type="text"> <input type="email"> <input type="checkbox"> <input type="submit"> An HTML form is used to collect user input. The HTML <form> element is used. An <input> element can be displayed in many ways, depending on the type attribute. and more. HTML FORM
  • 13. ABOUT CSS CSS stands for Cascading Style Sheets. It is a style sheet language that is used to describe the look and formatting of a document written in a markup language. CSS is added to HTML pages to format the document according to information in the style sheet. There are three ways to insert CSS in HTML documents.
  • 14. WAYS TO INSERT CSS Inline External Internal
  • 15. ANATOMY AND SYNTAX The selector points to the HTML element you want to style. The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon. Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
  • 16. PROPERTIES Font size Font style Colour Background colour Text alignment Border Margins Padding #town{ background-color:lightgray; color: brown; border: 2px solid darkred; margin: 20px; padding: 20px; }
  • 17. SELECTORS There are several different types of selectors in CSS. The element selector selects the HTML element by name. CSS Element Selector <style> p{ text-align: center; color: blue; } </style> CSS Id Selector The id selector selects the id attribute of an HTML element to select a specific element. An id is always unique within the page so it is chosen to select a single, unique element. <style> #para1 { text-align: center; color: blue; } </style>
  • 18. The class selector selects HTML elements with a specific class attribute. It is used with a period character . followed by the class name. CSS Class Selector CSS Group Selector The grouping selector is used to select all the elements with the same style definitions. Grouping selector is used to minimize the code. Commas are used to separate each selector in grouping. <style> h1, h2, p { text-align: center; color: blue; } </style> <style> .para1{ text-align: center; color: blue; } </style>
  • 19. BOX MODEL: The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.
  • 20. POSITIONING IN CSS Fixed The position property specifies the type of positioning method used for an element. Absolute Relative Static
  • 21. COMMENTS Z-INDEX The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. The z-index property specifies the stack order of an element. We may use z-index:-1 if we want the element to be present at the backward position. <!--This is a comment. Comments are not displayed in the browser--> img { position:absolute; z-index: -1; }