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
PDF
Basic html
PPTX
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
PDF
Basic-CSS-tutorial
PPT
CSS ppt
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
PDF
Basic html
PPTX
Html
PPT
Cascading Style Sheets (CSS) help
PPT
HTML
PPTX
Html basic
PPSX
Introduction to Html5
HTML & CSS.ppt
Advanced Cascading Style Sheets
Basic html
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
PDF
Basic-CSS-tutorial
PPT
CSS ppt
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
Basic-CSS-tutorial
CSS ppt
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
Java script and html new
PPTX
Java script and html
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
PPT
Dhtml chapter2
PPT
Basic HTML/CSS
PPT
Cascading Style Sheet
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
Java script and html new
Java script and html
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
Dhtml chapter2
Basic HTML/CSS
Cascading Style Sheet
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
Details of Muscular-and-Nervous-Tissues.pptx
PPTX
Details of Epithelial and Connective Tissue.pptx
PPTX
15 December 2025 Education for human flourishing Michael Stevenson .pptx
PDF
Ketogenic diet in Epilepsy in children..
PPTX
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
PPTX
Rectal Surgery in Senior Citiizens .pptx
PDF
Current Electricity for first year physiotherapy
PPTX
Vitamins and mineral deficiency , signs and symptoms associated with exercise
PPTX
The Art Pastor's Guide to the Liturgical Calendar
PDF
Digital Wellness in University Communities: Libraries as Guardians of Healthy...
PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
PPTX
How to Manage Reception Report in Odoo 18 Inventory
PDF
UKSG Forum 2025 - They asked for everything - The Case of the Systematic Revi...
PDF
Projecte de la porta d'i5B: Els animals marins
PPTX
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
PPTX
Campfens "The Data Qualify Challenge: Publishers, institutions, and funders r...
PDF
Blue / Green: Troop Leading Procedure (TLP) Overview.pdf
PPTX
York "Collaboration for Research Support at U-M Library"
PDF
All Students Workshop 25 Yoga Wellness by LDMMIA
PPTX
ICH Harmonization A Global Pathway to Unified Drug Regulation.pptx
Details of Muscular-and-Nervous-Tissues.pptx
Details of Epithelial and Connective Tissue.pptx
15 December 2025 Education for human flourishing Michael Stevenson .pptx
Ketogenic diet in Epilepsy in children..
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
Rectal Surgery in Senior Citiizens .pptx
Current Electricity for first year physiotherapy
Vitamins and mineral deficiency , signs and symptoms associated with exercise
The Art Pastor's Guide to the Liturgical Calendar
Digital Wellness in University Communities: Libraries as Guardians of Healthy...
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
How to Manage Reception Report in Odoo 18 Inventory
UKSG Forum 2025 - They asked for everything - The Case of the Systematic Revi...
Projecte de la porta d'i5B: Els animals marins
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
Campfens "The Data Qualify Challenge: Publishers, institutions, and funders r...
Blue / Green: Troop Leading Procedure (TLP) Overview.pdf
York "Collaboration for Research Support at U-M Library"
All Students Workshop 25 Yoga Wellness by LDMMIA
ICH Harmonization A Global Pathway to Unified Drug Regulation.pptx

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