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
PPTX
Html basic
PPT
Cascading Style Sheets (CSS) help
PPTX
Html
PPT
HTML
PPSX
Introduction to Html5
PDF
Basic html
PPT
Advanced Cascading Style Sheets
PPT
Introduction to Javascript
PDF
HTML and CSS crash course!
PDF
Introduction to HTML and CSS
PPT
CSS for Beginners
PPT
CSS Basics
PPT
Html basics
PPT
PPTX
HTML
PDF
jQuery for beginners
PDF
Html / CSS Presentation
PPT
Span and Div tags in HTML
PDF
Basic-CSS-tutorial
PPTX
Dynamic HTML (DHTML)
PPT
Javascript
PPTX
Web html table tags
PDF
JavaScript - Chapter 3 - Introduction
PPT
CSS ppt
PPTX
HTML Fundamentals
PDF
Introduction to html
PPTX
Workshop 2 Slides.pptx
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx

More Related Content

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

What's hot

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

Similar to HTML, CSS, JavaScript for beginners

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

Recently uploaded

PPTX
Pain. definition, causes, factor influencing pain & pain assessment.pptx
PDF
UKSG Forum 2025 - They asked for everything - The Case of the Systematic Revi...
PDF
APM Wessex Network: DEIB Policy into Practice
PPTX
Cost of Capital - Cost of Equity, Cost of debenture, Cost of Preference share...
PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
PDF
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
PPTX
Details of Muscular-and-Nervous-Tissues.pptx
PPTX
How to Manage Reception Report in Odoo 18 Inventory
PPTX
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
PPTX
ICH Harmonization A Global Pathway to Unified Drug Regulation.pptx
PPTX
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
PDF
FAMILY ASSESSMENT FORMAT - CHN practical
PPTX
Pig- piggy bank in Big Data Analytics.ppt.pptx
PPTX
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
PDF
Current Electricity for first year physiotherapy
PDF
NAVIGATE PHARMACY CAREER OPPORTUNITIES.pdf
DOCX
Mobile applications Devlopment ReTest year 2025-2026
PDF
Ketogenic diet in Epilepsy in children..
PPTX
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
PDF
Analyzing the data of your initial survey
Pain. definition, causes, factor influencing pain & pain assessment.pptx
UKSG Forum 2025 - They asked for everything - The Case of the Systematic Revi...
APM Wessex Network: DEIB Policy into Practice
Cost of Capital - Cost of Equity, Cost of debenture, Cost of Preference share...
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
Details of Muscular-and-Nervous-Tissues.pptx
How to Manage Reception Report in Odoo 18 Inventory
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
ICH Harmonization A Global Pathway to Unified Drug Regulation.pptx
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
FAMILY ASSESSMENT FORMAT - CHN practical
Pig- piggy bank in Big Data Analytics.ppt.pptx
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
Current Electricity for first year physiotherapy
NAVIGATE PHARMACY CAREER OPPORTUNITIES.pdf
Mobile applications Devlopment ReTest year 2025-2026
Ketogenic diet in Epilepsy in children..
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
Analyzing the data of your initial survey

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