Movatterモバイル変換


[0]ホーム

URL:


Uploaded byPrakritiDhang
PPTX, PDF1,113 views

HTML, CSS, JavaScript for beginners

The document provides a beginner's guide to HTML, CSS, and JavaScript, explaining their fundamentals and syntax. It covers HTML elements, CSS styling methods, CSS selectors, and JavaScript functionalities including inline, internal, and external scripts. Additionally, it includes examples and a practice task for creating a web page using these technologies.

Embed presentation

Downloaded 17 times
HTML, CSS,JAVASCRIPTFor BeginnersPrakriti Dhang22-06-2020
HTMLHyper 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 anHTML5 document.• <html> element is the root element of an HTML page• <head> element contains meta information about theHTML page• <title> element specifies a title for the HTML page (shownin 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>
CSSCascading 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 syntaxh1 {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, andmust 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. Thestyle 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 CSSIn 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.cssbody {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 aheading</h1><p style="font-family: Arial; font-size: 20px; font-style:italic; ">This is a paragraph.</p></body></html>
CSS selectors1. 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 specificclass 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 andmany 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.jsfunction clickme(){document.getElementById("head2").innerHTML= "This is JavaScript";}
Practice1. Create a web page with a title “My tour”• Use heading size 2, “My trip to ….” . Add a paragraphand write about the place. Your name should be inhead size 4.• Use external css. Add text color to both headings andparagraph, the heading should be in bold andparagraph should be in italics. Add background colorto light blue.• Use external JavaScript, when clicking the button, itshould 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

Recommended

PPT
HTML & CSS.ppt
PPT
Advanced Cascading Style Sheets
PPTX
Html
PDF
Basic html
PPT
Cascading Style Sheets (CSS) help
PPT
HTML
PPTX
Html basic
PPSX
Introduction to Html5
PDF
Introduction to html
PDF
HTML and CSS crash course!
PPT
CSS Basics
PPT
Html basics
PDF
Introduction to HTML and CSS
PPTX
HTML
PPTX
HTML Fundamentals
PDF
Html / CSS Presentation
PPT
Introduction to Javascript
PPT
CSS for Beginners
PDF
jQuery for beginners
PPT
PPTX
Web html table tags
PPT
CSS ppt
PDF
Basic-CSS-tutorial
PPT
Javascript
PDF
JavaScript - Chapter 3 - Introduction
PPTX
Dynamic HTML (DHTML)
PPT
Span and Div tags in HTML
PPT
Presentation on html, css
PPTX
Introduction to HTML and CSS

More Related Content

PPT
HTML & CSS.ppt
PPT
Advanced Cascading Style Sheets
PPTX
Html
PDF
Basic html
PPT
Cascading Style Sheets (CSS) help
PPT
HTML
PPTX
Html basic
PPSX
Introduction to Html5
HTML & CSS.ppt
Advanced Cascading Style Sheets
Html
Basic html
Cascading Style Sheets (CSS) help
HTML
Html basic
Introduction to Html5

What's hot

PDF
Introduction to html
PDF
HTML and CSS crash course!
PPT
CSS Basics
PPT
Html basics
PDF
Introduction to HTML and CSS
PPTX
HTML
PPTX
HTML Fundamentals
PDF
Html / CSS Presentation
PPT
Introduction to Javascript
PPT
CSS for Beginners
PDF
jQuery for beginners
PPT
PPTX
Web html table tags
PPT
CSS ppt
PDF
Basic-CSS-tutorial
PPT
Javascript
PDF
JavaScript - Chapter 3 - Introduction
PPTX
Dynamic HTML (DHTML)
PPT
Span and Div tags in HTML
Introduction to html
HTML and CSS crash course!
CSS Basics
Html basics
Introduction to HTML and CSS
HTML
HTML Fundamentals
Html / CSS Presentation
Introduction to Javascript
CSS for Beginners
jQuery for beginners
Web html table tags
CSS ppt
Basic-CSS-tutorial
Javascript
JavaScript - Chapter 3 - Introduction
Dynamic HTML (DHTML)
Span and Div tags in HTML

Similar to HTML, CSS, JavaScript for beginners

PPT
Presentation on html, css
PPTX
Introduction to HTML and CSS
PDF
Css tutorial
PDF
Basic Details of HTML and CSS.pdf
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
PPTX
Java script and html new
PPTX
Java script and html
PPT
Cascading Style Sheet
PPT
Dhtml chapter2
PPT
Basic HTML/CSS
PPTX
HTML and CSS
PPTX
4_css_intro.pptx. this ppt is based on css which is the required of web deve...
PPTX
Introduction HTML and CSS
PPTX
CSS____4563276__HTML___________0989.pptx
PPTX
Css starting
PPTX
Web Day-01.pptx
PPTX
Workshop 2 Slides.pptx
PPS
Web Designing
PDF
Cascading style sheet: complete explanation with some examples
PPT
A quick guide to Css and java script
Presentation on html, css
Introduction to HTML and CSS
Css tutorial
Basic Details of HTML and CSS.pdf
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
Java script and html new
Java script and html
Cascading Style Sheet
Dhtml chapter2
Basic HTML/CSS
HTML and CSS
4_css_intro.pptx. this ppt is based on css which is the required of web deve...
Introduction HTML and CSS
CSS____4563276__HTML___________0989.pptx
Css starting
Web Day-01.pptx
Workshop 2 Slides.pptx
Web Designing
Cascading style sheet: complete explanation with some examples
A quick guide to Css and java script

Recently uploaded

PPTX
Searching in PubMed andCochrane_Practical Presentation.pptx
PPTX
Details of Epithelial and Connective Tissue.pptx
PDF
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
PDF
1ST APPLICATION FOR ANNULMENT (4)8787666.pdf
PDF
Ketogenic diet in Epilepsy in children..
PPTX
CHAPTER NO.08 HCP BY GG CLINICAL PHARMACY
PDF
Current Electricity for first year physiotherapy
PDF
BỘ TEST KIỂM TRA CUỐI HỌC KÌ 1 - TIẾNG ANH 6-7-8-9 GLOBAL SUCCESS - PHIÊN BẢN...
PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
PDF
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
DOCX
Mobile applications Devlopment ReTest year 2025-2026
PPTX
Semester 6 unit 2 Atopic dermatitis.pptx
PPTX
2025-2026 History in your Hands Class 4 December 2025 January 2026 .pptx
PPTX
How to Manage Reception Report in Odoo 18 Inventory
PDF
Analyzing the data of your initial survey
PPTX
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
PDF
Projecte de la porta d'i5B: Els animals marins
PDF
Blue / Green: Troop Leading Procedure (TLP) Overview.pdf
PDF
NAVIGATE PHARMACY CAREER OPPORTUNITIES.pdf
PPTX
How to Manage Line Discounts in Odoo 18 POS
Searching in PubMed andCochrane_Practical Presentation.pptx
Details of Epithelial and Connective Tissue.pptx
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
1ST APPLICATION FOR ANNULMENT (4)8787666.pdf
Ketogenic diet in Epilepsy in children..
CHAPTER NO.08 HCP BY GG CLINICAL PHARMACY
Current Electricity for first year physiotherapy
BỘ TEST KIỂM TRA CUỐI HỌC KÌ 1 - TIẾNG ANH 6-7-8-9 GLOBAL SUCCESS - PHIÊN BẢN...
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
Mobile applications Devlopment ReTest year 2025-2026
Semester 6 unit 2 Atopic dermatitis.pptx
2025-2026 History in your Hands Class 4 December 2025 January 2026 .pptx
How to Manage Reception Report in Odoo 18 Inventory
Analyzing the data of your initial survey
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
Projecte de la porta d'i5B: Els animals marins
Blue / Green: Troop Leading Procedure (TLP) Overview.pdf
NAVIGATE PHARMACY CAREER OPPORTUNITIES.pdf
How to Manage Line Discounts in Odoo 18 POS

HTML, CSS, JavaScript for beginners

  • 1.
  • 2.
  • 3.
    HTML• Abbreviation forHyper 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• HTMLelements 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• <!DOCTYPEhtml> defines that this document is anHTML5 document.• <html> element is the root element of an HTML page• <head> element contains meta information about theHTML page• <title> element specifies a title for the HTML page (shownin 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• Bodytag 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>
  • 8.
  • 9.
    CSS• CSS Standsfor Cascading Style Sheets• Easy to understand• Well Organized• Front-end programming language• saved with a .css extension when use external CSS.
  • 10.
    CSS syntaxh1 {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 insertCSS• 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, andmust 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. Thestyle attribute can contain any CSS property.
  • 12.
    Internal CSS• <!DOCTYPEhtml>• <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 CSSIn Example.html<!DOCTYPEhtml><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.cssbody {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><bodystyle="background-color: lightgreen;"><h1 style="color:yellow;text-align:center;">This is aheading</h1><p style="font-family: Arial; font-size: 20px; font-style:italic; ">This is a paragraph.</p></body></html>
  • 15.
    CSS selectors1. Idselector:• 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 specificclass 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>
  • 17.
  • 18.
    JavaScript• Is aprogramming 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 andmany types of graphics.• saved with a .js extension.
  • 19.
    Inline JavaScript• <!DOCTYPEhtml>• <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• <!DOCTYPEhtml>• <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• <!DOCTYPEhtml>• <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.jsfunction clickme(){document.getElementById("head2").innerHTML= "This is JavaScript";}
  • 22.
    Practice1. Create aweb page with a title “My tour”• Use heading size 2, “My trip to ….” . Add a paragraphand write about the place. Your name should be inhead size 4.• Use external css. Add text color to both headings andparagraph, the heading should be in bold andparagraph should be in italics. Add background colorto light blue.• Use external JavaScript, when clicking the button, itshould display your name.
  • 23.
    In Next Lessonwe will learn• How to use lists, tables, images and hyperlinks.• Use javascript to resize image size.
  • 24.

[8]ページ先頭

©2009-2025 Movatter.jp