SlideShare a Scribd company logo
12
Internal CSS
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 1 </title>
• <style>
• body {
• background-color: lightgreen;
• }
• h1 {
• color: yellow;
• text-align: center;
• }
• p {
• font-family: Arial;
• font-size: 20px;
• font-style:italic;
• }
• </style>
• </head>
• <body>
• <h1> WELCOME! </h1>
• <p>Welcome to my first page.</p>
• </body>
• </html>
Most read
18
JavaScript
• Is a programming language
• Is used for creating websites
• Easy to learn.
• Standalone language
• Used to make dynamic webpages
• Add special effects on webpages like rollover, roll out and
many types of graphics.
• saved with a .js extension.
Most read
24
Thank You
Most read
HTML, CSS,
JAVASCRIPT
For Beginners
Prakriti Dhang
22-06-2020
HTML
Hyper Text Markup Language
HTML
• Abbreviation for Hyper Text Markup Language
• Is the standard markup language for creating web pages.
• Easy to understand
• Well Organized
• Front-end programming language
• saved with a .html extension
HTML elements
• HTML elements has starting tag, contents and closing tag
<tagname> content </tagname>
• The closing tag ends with a backslash (/).
• The start tag and close tag name should be same.
• <h1> content </h1>
HTML elements
• <!DOCTYPE html> defines that this document is an
HTML5 document.
• <html> element is the root element of an HTML page
• <head> element contains meta information about the
HTML page
• <title> element specifies a title for the HTML page (shown
in the browser's title bar)
• <body> element defines the document's body.
• The <h1> element defines a large heading
• The <p> element defines a paragraph
Body elements
• Body tag contains all the visible contents,
 Headings (h1-h6),
 Paragraphs,
 Images,
 Hyperlinks,
 Tables,
 Lists, etc.
Example
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 1</title>
• </head>
• <body>
• <h1> WELCOME! </h1>
• <p>Welcome to my first page.</p>
• </body>
• </html>
CSS
Cascading Style Sheet
CSS
• CSS Stands for Cascading Style Sheets
• Easy to understand
• Well Organized
• Front-end programming language
• saved with a .css extension when use external CSS.
CSS syntax
h1 {
color: yellow;
text-align: center;
}
• <h1> is the selector in CSS.
• Color is the property and yellow is the value.
• Text-align is the property and center is the value
Ways to insert CSS
• There are 3 ways to insert CSS:
1. Internal: The internal style is defined inside the
<style> element, inside the head section.
2. External: Can be written in any text editor, and
must be saved with a .css extension. The external
.css file should not contain any HTML tags.
3. Inline: add the style attribute to the element. The
style attribute can contain any CSS property.
Internal CSS
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 1 </title>
• <style>
• body {
• background-color: lightgreen;
• }
• h1 {
• color: yellow;
• text-align: center;
• }
• p {
• font-family: Arial;
• font-size: 20px;
• font-style:italic;
• }
• </style>
• </head>
• <body>
• <h1> WELCOME! </h1>
• <p>Welcome to my first page.</p>
• </body>
• </html>
External CSS
In Example.html
<!DOCTYPE html>
<html>
<head>
<title>Example 1</title>
<link rel="stylesheet" type="text/css"
href=“stylesheet1.css">
</head>
<body>
<h1> WELCOME! </h1>
<p>Welcome to my first page.</p>
</body>
</html>
In stylesheet.css
body {
background-color: lightgreen;
}
h1 {
color: yellow;
text-align: center;
}
p {
font-family: Arial;
font-size: 20px;
font-style:italic;
}
Inline CSS
<!DOCTYPE html>
<html>
<body style="background-color: lightgreen;">
<h1 style="color:yellow;text-align:center;">This is a
heading</h1>
<p style="font-family: Arial; font-size: 20px; font-
style:italic; ">This is a paragraph.</p>
</body>
</html>
CSS selectors
1. Id selector:
• The id of an element is unique within a page.
• The id selector is used to select one unique element.
• Write a hash (#) character, before the id of the element.
2. Class selector:
• The class selector selects HTML elements with a specific
class attribute.
• To select elements with a specific class, write a dot (.)
character, before the class name.
Example
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 2</title>
• <style>
• body {
• background-color: lightgreen;
• }
• #head1 {
• color: yellow;
• text-align: center;
• }
• .para1{
• font-family: Arial;
• font-size: 20px;
• font-style:italic;
• }
• </style>
• </head>
• <body>
• <h1 id=“head1”> WELCOME! </h1>
• <p class=“para1”>Welcome to my first page.</p>
• </body>
• </html>
JAVASCRIPT
JavaScript
• Is a programming language
• Is used for creating websites
• Easy to learn.
• Standalone language
• Used to make dynamic webpages
• Add special effects on webpages like rollover, roll out and
many types of graphics.
• saved with a .js extension.
Inline JavaScript
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 1</title>
• <style>
• body {
• background-color: lightgreen;
• }
• #head1{
• color: yellow;
• text-align: center;
• }
• .para1 {
• font-family: Arial;
• font-size: 20px;
• font-style:italic;
• }
• </style>
• </head>
• <body>
• <h1 id="head1"> WELCOME! </h1>
• <p class="para1">Welcome to my first page.</p>
• <h2 id="head2"></h2>
• <button type="button" onclick='document.getElementById("head2").innerHTML = "This is JavaScript!"'>Click Me!</button>
• </body>
• </html>
Internal JavaScript
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 1</title>
• <style>
• body {
• background-color: lightgreen;
• }
• #head1{
• color: yellow;
• text-align: center;
• }
• .para1 {
• font-family: Arial;
• font-size: 20px;
• font-style:italic;
• }
• </style>
• <script>
• function clickme(){
• document.getElementById("head2").innerHTML = "This is JavaScript";
• }
• </script>
• </head>
• <body>
• <h1 id="head1"> WELCOME! </h1>
• <p class="para1">Welcome to my first page.</p>
• <h2 id="head2"> </h2>
• <button type="button" onclick="clickme()">Click Me!</button>
• </body>
• </html>
External JavaScript
• <!DOCTYPE html>
• <html>
• <head>
• <title> Example 1</title>
• <script type="text/javascript" src="exjse.js"></script>
• <style>
• body {
• background-color: lightgreen;
• }
• #head1{
• color: yellow;
• text-align: center;
• }
• .para1 {
• font-family: Arial;
• font-size: 20px;
• font-style:italic;
• }
• </style>
• </head>
• <body>
• <h1 id="head1"> WELCOME! </h1>
• <p class="para1">Welcome to my first page.</p>
• <h2 id="head2"> </h2>
• <button type="button" onclick="clickme()">Click Me!</button>
• </body>
• </html>
Add this code in a new file and name as exjse.js
function clickme(){
document.getElementById("head2").innerHTML
= "This is JavaScript";
}
Practice
1. Create a web page with a title “My tour”
• Use heading size 2, “My trip to ….” . Add a paragraph
and write about the place. Your name should be in
head size 4.
• Use external css. Add text color to both headings and
paragraph, the heading should be in bold and
paragraph should be in italics. Add background color
to light blue.
• Use external JavaScript, when clicking the button, it
should display your name.
In Next Lesson we will learn
• How to use lists, tables, images and hyperlinks.
• Use javascript to resize image size.
Thank You

More Related Content

What's hot (20)

HTML
HTMLHTML
HTML
chinesebilli
 
Html ppt
Html pptHtml ppt
Html ppt
Ruchi Kumari
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
Biswadip Goswami
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
eShikshak
 
Html
HtmlHtml
Html
yugank_gupta
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation
joilrahat
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
Sayan De
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
Css
CssCss
Css
Hemant Saini
 
Html tags
Html tagsHtml tags
Html tags
sotero66
 
Intro to html 5
Intro to html 5Intro to html 5
Intro to html 5
Ian Jasper Mangampo
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
Mukesh Kumar
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/JqueryHTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
Alfredo Torre
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
eShikshak
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation
joilrahat
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
Sayan De
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
Mukesh Kumar
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/JqueryHTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
Alfredo Torre
 

Similar to HTML, CSS, JavaScript for beginners (20)

6. Css
6. Css6. Css
6. Css
Gao Fuyan
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Html coding
Html codingHtml coding
Html coding
Briana VanBuskirk
 
Html and Css Student Education hub point.pptx
Html and Css Student Education hub point.pptxHtml and Css Student Education hub point.pptx
Html and Css Student Education hub point.pptx
AbenezerTefera2
 
Basics ogHtml
Basics ogHtml Basics ogHtml
Basics ogHtml
rohitkumar2468
 
Html2
Html2Html2
Html2
Abhishek Kesharwani
 
Unit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSSUnit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSS
abhinandankondekar2
 
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptxVAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV481101
 
html document। .pptx
html document।                                .pptxhtml document।                                .pptx
html document। .pptx
ayanshaikh0054
 
Html cia
Html ciaHtml cia
Html cia
Malepati Shanmukh nath
 
Web Dev Essential 1web dev using HTML DHTML.pptx
Web Dev Essential 1web dev using HTML  DHTML.pptxWeb Dev Essential 1web dev using HTML  DHTML.pptx
Web Dev Essential 1web dev using HTML DHTML.pptx
mohiburrehmanbkt
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
Abhishek Kesharwani
 
Html
HtmlHtml
Html
Nandakumar Ganapathy
 
Java script and html new
Java script and html newJava script and html new
Java script and html new
Malik M. Ali Shahid
 
Java script and html
Java script and htmlJava script and html
Java script and html
Malik M. Ali Shahid
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
Gerson Abesamis
 
Quan Head Tag Presentation
Quan Head Tag PresentationQuan Head Tag Presentation
Quan Head Tag Presentation
Quanslides
 
presentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptxpresentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptx
ssuser3a64ac
 
Html
HtmlHtml
Html
Bhumika Ratan
 
2. HTML Basic unit2 fundamentals of computer
2. HTML Basic    unit2 fundamentals of computer2. HTML Basic    unit2 fundamentals of computer
2. HTML Basic unit2 fundamentals of computer
travelwithlifezindgi
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Html and Css Student Education hub point.pptx
Html and Css Student Education hub point.pptxHtml and Css Student Education hub point.pptx
Html and Css Student Education hub point.pptx
AbenezerTefera2
 
Unit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSSUnit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSS
abhinandankondekar2
 
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptxVAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV481101
 
html document। .pptx
html document।                                .pptxhtml document।                                .pptx
html document। .pptx
ayanshaikh0054
 
Web Dev Essential 1web dev using HTML DHTML.pptx
Web Dev Essential 1web dev using HTML  DHTML.pptxWeb Dev Essential 1web dev using HTML  DHTML.pptx
Web Dev Essential 1web dev using HTML DHTML.pptx
mohiburrehmanbkt
 
Quan Head Tag Presentation
Quan Head Tag PresentationQuan Head Tag Presentation
Quan Head Tag Presentation
Quanslides
 
presentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptxpresentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptx
ssuser3a64ac
 
2. HTML Basic unit2 fundamentals of computer
2. HTML Basic    unit2 fundamentals of computer2. HTML Basic    unit2 fundamentals of computer
2. HTML Basic unit2 fundamentals of computer
travelwithlifezindgi
 
Ad

Recently uploaded (20)

Exploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle SchoolExploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle School
Marie
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti MpdBasic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdfFEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
Quiz Club of PSG College of Arts & Science
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdfUnit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.
jmansha170
 
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptxRai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Respiratory System , Urinary System
Respiratory  System , Urinary SystemRespiratory  System , Urinary System
Respiratory System , Urinary System
RushiMandali
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdfAllomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18
Celine George
 
Capitol Doctoral Presentation -June 2025.pptx
Capitol Doctoral Presentation -June 2025.pptxCapitol Doctoral Presentation -June 2025.pptx
Capitol Doctoral Presentation -June 2025.pptx
CapitolTechU
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptxIDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
Exploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle SchoolExploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle School
Marie
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti MpdBasic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdfFEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdfUnit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.
jmansha170
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Respiratory System , Urinary System
Respiratory  System , Urinary SystemRespiratory  System , Urinary System
Respiratory System , Urinary System
RushiMandali
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdfAllomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18
Celine George
 
Capitol Doctoral Presentation -June 2025.pptx
Capitol Doctoral Presentation -June 2025.pptxCapitol Doctoral Presentation -June 2025.pptx
Capitol Doctoral Presentation -June 2025.pptx
CapitolTechU
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptxIDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
Ad

HTML, CSS, JavaScript for beginners

  • 3. HTML • Abbreviation for Hyper Text Markup Language • Is the standard markup language for creating web pages. • Easy to understand • Well Organized • Front-end programming language • saved with a .html extension
  • 4. HTML elements • HTML elements has starting tag, contents and closing tag <tagname> content </tagname> • The closing tag ends with a backslash (/). • The start tag and close tag name should be same. • <h1> content </h1>
  • 5. HTML elements • <!DOCTYPE html> defines that this document is an HTML5 document. • <html> element is the root element of an HTML page • <head> element contains meta information about the HTML page • <title> element specifies a title for the HTML page (shown in the browser's title bar) • <body> element defines the document's body. • The <h1> element defines a large heading • The <p> element defines a paragraph
  • 6. Body elements • Body tag contains all the visible contents,  Headings (h1-h6),  Paragraphs,  Images,  Hyperlinks,  Tables,  Lists, etc.
  • 7. Example • <!DOCTYPE html> • <html> • <head> • <title> Example 1</title> • </head> • <body> • <h1> WELCOME! </h1> • <p>Welcome to my first page.</p> • </body> • </html>
  • 9. CSS • CSS Stands for Cascading Style Sheets • Easy to understand • Well Organized • Front-end programming language • saved with a .css extension when use external CSS.
  • 10. CSS syntax h1 { color: yellow; text-align: center; } • <h1> is the selector in CSS. • Color is the property and yellow is the value. • Text-align is the property and center is the value
  • 11. Ways to insert CSS • There are 3 ways to insert CSS: 1. Internal: The internal style is defined inside the <style> element, inside the head section. 2. External: Can be written in any text editor, and must be saved with a .css extension. The external .css file should not contain any HTML tags. 3. Inline: add the style attribute to the element. The style attribute can contain any CSS property.
  • 12. Internal CSS • <!DOCTYPE html> • <html> • <head> • <title> Example 1 </title> • <style> • body { • background-color: lightgreen; • } • h1 { • color: yellow; • text-align: center; • } • p { • font-family: Arial; • font-size: 20px; • font-style:italic; • } • </style> • </head> • <body> • <h1> WELCOME! </h1> • <p>Welcome to my first page.</p> • </body> • </html>
  • 13. External CSS In Example.html <!DOCTYPE html> <html> <head> <title>Example 1</title> <link rel="stylesheet" type="text/css" href=“stylesheet1.css"> </head> <body> <h1> WELCOME! </h1> <p>Welcome to my first page.</p> </body> </html> In stylesheet.css body { background-color: lightgreen; } h1 { color: yellow; text-align: center; } p { font-family: Arial; font-size: 20px; font-style:italic; }
  • 14. Inline CSS <!DOCTYPE html> <html> <body style="background-color: lightgreen;"> <h1 style="color:yellow;text-align:center;">This is a heading</h1> <p style="font-family: Arial; font-size: 20px; font- style:italic; ">This is a paragraph.</p> </body> </html>
  • 15. CSS selectors 1. Id selector: • The id of an element is unique within a page. • The id selector is used to select one unique element. • Write a hash (#) character, before the id of the element. 2. Class selector: • The class selector selects HTML elements with a specific class attribute. • To select elements with a specific class, write a dot (.) character, before the class name.
  • 16. Example • <!DOCTYPE html> • <html> • <head> • <title> Example 2</title> • <style> • body { • background-color: lightgreen; • } • #head1 { • color: yellow; • text-align: center; • } • .para1{ • font-family: Arial; • font-size: 20px; • font-style:italic; • } • </style> • </head> • <body> • <h1 id=“head1”> WELCOME! </h1> • <p class=“para1”>Welcome to my first page.</p> • </body> • </html>
  • 18. JavaScript • Is a programming language • Is used for creating websites • Easy to learn. • Standalone language • Used to make dynamic webpages • Add special effects on webpages like rollover, roll out and many types of graphics. • saved with a .js extension.
  • 19. Inline JavaScript • <!DOCTYPE html> • <html> • <head> • <title> Example 1</title> • <style> • body { • background-color: lightgreen; • } • #head1{ • color: yellow; • text-align: center; • } • .para1 { • font-family: Arial; • font-size: 20px; • font-style:italic; • } • </style> • </head> • <body> • <h1 id="head1"> WELCOME! </h1> • <p class="para1">Welcome to my first page.</p> • <h2 id="head2"></h2> • <button type="button" onclick='document.getElementById("head2").innerHTML = "This is JavaScript!"'>Click Me!</button> • </body> • </html>
  • 20. Internal JavaScript • <!DOCTYPE html> • <html> • <head> • <title> Example 1</title> • <style> • body { • background-color: lightgreen; • } • #head1{ • color: yellow; • text-align: center; • } • .para1 { • font-family: Arial; • font-size: 20px; • font-style:italic; • } • </style> • <script> • function clickme(){ • document.getElementById("head2").innerHTML = "This is JavaScript"; • } • </script> • </head> • <body> • <h1 id="head1"> WELCOME! </h1> • <p class="para1">Welcome to my first page.</p> • <h2 id="head2"> </h2> • <button type="button" onclick="clickme()">Click Me!</button> • </body> • </html>
  • 21. External JavaScript • <!DOCTYPE html> • <html> • <head> • <title> Example 1</title> • <script type="text/javascript" src="exjse.js"></script> • <style> • body { • background-color: lightgreen; • } • #head1{ • color: yellow; • text-align: center; • } • .para1 { • font-family: Arial; • font-size: 20px; • font-style:italic; • } • </style> • </head> • <body> • <h1 id="head1"> WELCOME! </h1> • <p class="para1">Welcome to my first page.</p> • <h2 id="head2"> </h2> • <button type="button" onclick="clickme()">Click Me!</button> • </body> • </html> Add this code in a new file and name as exjse.js function clickme(){ document.getElementById("head2").innerHTML = "This is JavaScript"; }
  • 22. Practice 1. Create a web page with a title “My tour” • Use heading size 2, “My trip to ….” . Add a paragraph and write about the place. Your name should be in head size 4. • Use external css. Add text color to both headings and paragraph, the heading should be in bold and paragraph should be in italics. Add background color to light blue. • Use external JavaScript, when clicking the button, it should display your name.
  • 23. In Next Lesson we will learn • How to use lists, tables, images and hyperlinks. • Use javascript to resize image size.