Movatterモバイル変換


[0]ホーム

URL:


PPTX, PDF35 views

Introduction to HTML+CSS+Javascript.pptx

This document provides an overview of web technologies including HTML, CSS, and JavaScript. It explains their roles in web development, detailing how HTML structures content, CSS styles it, and JavaScript adds interactivity. Key concepts such as HTML tags, CSS properties, and JavaScript syntax are introduced, along with examples and best practices for building a functional and visually appealing website.

Embed presentation

Download to read offline
Presented by:Deepuranjan KumarMCA 2ndYearMUR2301159
Introduction to webtechnologiesHTML + CSS +Javascript
GoalsIntroduction to webtechnologies:● HTML to create thedocument structure andcontent● CSS to control is visualaspect● Javascript for interactivity
HTMLHTML means Hyper Text MarkupLanguage.The HTML allow us to define the structure of a documentor a website.HTML is NOT a programming language, it’s a markuplanguage, which means its purpose is to give structure tothe content of the website, not to define an algorithm.Here is an example of tags:<title>This is a title</title>The HTML defines the page structure. A website can haveseveral HTMLs to different pages.<html><head></head><body><div><p>Hi</p></div></body></html>
HTML: syntax example<div id="main"><!-- this is a comment -->This is text without atag.<button class="mini">pressme</button><imgsrc="me.png" /></div>Tagname attributescommenttexttagself-closingtag
Although there are lots of tags in the HTML specification, 99% of the webs use asubset of HTML tags with less that 10 tags, the most important are:● <div>: a container, usually represents a rectangular area with information inside.● <img/>: an image● <a>: a clickable link to go to another URL● <p>: a text paragraph● <h1>: a title (h2,h3,h4 are titles of less importance)● <input>: a widget to let the user introduce information● <style> and <link>: to insert CSS rules● <script>: to execute Javascript● <span>: a null tag (doesn't do anything), good for tagging infoHTML: main tags
HTML: other interesting tagsThere are some tags that could be usefulsometimes:● <button>: to create a button● <audio>: for playing audio● <video>: to play video● <canvas>: to draw graphics from javascript● <iframe>: to put another website inside ours
CSSCSS allows us to specify how topresent (render) the document infostored in the HTML.Thanks to CSS we can control all theaspects of the visualization and someother features:● Colors: content, background,borders● Margins: interior margin,exterior margin● Position: where to put it● Sizes: width, height● Behaviour: changes on mouseover
CSS example* {color: blue; /*a comment*/ margin: 10px;font: 14px Tahoma;}This will change all the tags in my web ( ‘*‘ means all) to look blue with font Tahomawith 14px, and leaving a margin of 10px around.
How to add CSS ?There are three ways to add CSS to your website:● Using a style tag in Internal CSS<style>p { color: blue }</style>● Referencing an external CSS<link href="style.css"rel="stylesheet" />● Using the attribute style on a tag (inline)<p style="color: blue; margin: 10px">…</p>
CSS PropertiesHere is a list of the most common CSS fields and an example:● color: #FF0000; red; rgba(255,00,100,1.0); //different ways tospecify colors● background-color: red;● background-image: url('file.png');● font: 18px 'Tahoma';● border: 2px solid black;● border-top: 2px solid red;● border-radius: 2px; //to remove corners and make them more round● margin: 10px; //distance from the border to the outer elements● padding: 2px; //distance from the border to the inner elements● width: 100%; 300px; 1.3em; //many different ways to specifydistances● height: 200px;● text-align: center;● box-shadow: 3px 3px 5px black;● cursor: pointer;● display: inline-block;● overflow: hidden;
CSS SelectorsYou can also specify tags by its context, for example: tags that are inside of tagsmatching a selector. Just separate the selectors by an space:div#main p.intro { ... }This will affect to the p tags of class intro that are inside the tag div of id main<div id="main"><p class="intro">....</p> ← Affects this one</div><p class="intro">....</p>← but not this one
Box ModelIt is important to note that by default anywidth and height specified to an elementwill not take into account its margin, so adiv with width 100px and margin 10px willmeasure 120px on the screen, not 100px.This could be a problem breakingyour layout.You can change this behaviour changingthe box model of the element so thewidth uses the outmost border:div { box-sizing: border; }
LayoutOne of the hardest parts of CSS isconstruing the layout of your website(the structure inside the window) .By default HTML tends to puteverything in one column, which is notideal.There has been many proposals in CSSto address this issue (tables, fixed divs,flex, grid, …).
FlexboxThe first big proposal to address thelayout was the flexbox model.This model allows to arrange stuff inone direction (vertically orhorizontally) very easily.You can even choose to arrange fromright to left (reverse).It can also be used to arrange a seriesof elements in different rows.Check the tutorial for moreinfo.HTML<div class="box"><div>One</div><div>Two</div><div>Three<br>first line<br>second line</div></div>CSS.box {display: flex;}
JavascriptA regular programming language, easy to start,hard to master.Allows to give some interactivity to the elements on theweb.Syntax similar to C or Java but with notypes.You can change the content of the HTML or the CSSapplied to an element.You can even send or retrieve information from theinternet to update the content of the web withoutreloading the page.var my_number = 10;function say( str ){console.log( str);}say("hello");
#
Javascript example<html><body><h1>This is a title</h1><script>var title = document.querySelector("h1");title.innerHTML = "This is another title";</script></body></html>
#
#
#
Example of awebsiteHTML in index.html<link href="style.css" rel="stylesheet"/><h1>Welcome</h1><p><button>Click me</button></p><script src="code.js"/>CSS in style.cssh1 { color: #333;} button {border: 2px solid#AAA; background-color: #555;}Javascript in code.js//fetch the button from the DOMvar button = document.querySelector("button");//attach and event when the user clicksit button.addEventListener("click",myfunction);//create the function that will be calledwhen the button is pressedfunction myfunction(){//this shows a popupwindow alert("buttonclicked!");}
jQueryjQuery is a library that makes working with the DOM much easier, using anunified syntax and taking advantage of selectors:$("p").remove(); //remove all tags p$("#main").hide(); //hides the element of id main$("#main").append("<h1>titulo</h1>") //adds content to an element$("#wrap").css({ color: "red" }); //change the css$("button#send").click( function() { /* code */ });To include this library just add this to your HTML:<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
Introduction to HTML+CSS+Javascript.pptx

Recommended

PPTX
Introduction to HTML+CSS+Javascript by Deepu.pptx
PDF
Introduction to HTML-CSS-Javascript.pdf
PPTX
wd project.pptx
PPTX
Introduction to Web Technologies PPT.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML-CSS-Javascript.pptx
PPTX
gdg Introduction to HTML-CSS-Javascript.pptx
PDF
Presentation on htmlcssjs-130221085257-phpapp02.pdf
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
PPT
WebDev Simplified Day 1 ppt.ppt
PPTX
Tech Winter Break - GDG on Campus - PIET
PPTX
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
PPTX
Tech Winter Break'24 Workshop A hands-o
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to HTML and CSS
PPTX
UNIT – III - CASCADING STYLING SHEET - FUNDAMENTAL OF COMPUTER PROGRAMMING
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
 
PPTX
Introduction to Web Development.pptx
PPTX
19ESKIT058_5thSem.pptx
PPTX
Cordova training - Day 2 Introduction to CSS 3
PPTX
Shreyansh_patni web developer
PPS
Web Designing
PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
PPTX
The Art Pastor's Guide to the Liturgical Calendar

More Related Content

PPTX
Introduction to HTML+CSS+Javascript by Deepu.pptx
PDF
Introduction to HTML-CSS-Javascript.pdf
PPTX
wd project.pptx
PPTX
Introduction to Web Technologies PPT.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript by Deepu.pptx
Introduction to HTML-CSS-Javascript.pdf
wd project.pptx
Introduction to Web Technologies PPT.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx

Similar to Introduction to HTML+CSS+Javascript.pptx

PPTX
Introduction to HTML-CSS-Javascript.pptx
PPTX
gdg Introduction to HTML-CSS-Javascript.pptx
PDF
Presentation on htmlcssjs-130221085257-phpapp02.pdf
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
PPT
WebDev Simplified Day 1 ppt.ppt
PPTX
Tech Winter Break - GDG on Campus - PIET
PPTX
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
PPTX
Tech Winter Break'24 Workshop A hands-o
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to HTML and CSS
PPTX
UNIT – III - CASCADING STYLING SHEET - FUNDAMENTAL OF COMPUTER PROGRAMMING
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
 
PPTX
Introduction to Web Development.pptx
PPTX
19ESKIT058_5thSem.pptx
PPTX
Cordova training - Day 2 Introduction to CSS 3
PPTX
Shreyansh_patni web developer
PPS
Web Designing
Introduction to HTML-CSS-Javascript.pptx
gdg Introduction to HTML-CSS-Javascript.pptx
Presentation on htmlcssjs-130221085257-phpapp02.pdf
Introduction to HTML+CSS+Javascript.pptx
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
WebDev Simplified Day 1 ppt.ppt
Tech Winter Break - GDG on Campus - PIET
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
Tech Winter Break'24 Workshop A hands-o
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Introduction to HTML and CSS
UNIT – III - CASCADING STYLING SHEET - FUNDAMENTAL OF COMPUTER PROGRAMMING
Introduction to HTML+CSS+Javascript.pptx
HTMLforbeginerslearntocodeforbeginersinfh
 
Introduction to Web Development.pptx
19ESKIT058_5thSem.pptx
Cordova training - Day 2 Introduction to CSS 3
Shreyansh_patni web developer
Web Designing

Recently uploaded

PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
PPTX
The Art Pastor's Guide to the Liturgical Calendar
PPTX
15 December 2025 Education for human flourishing Michael Stevenson .pptx
PPTX
Campfens "The Data Qualify Challenge: Publishers, institutions, and funders r...
PPTX
Semester 6 unit 2 Atopic dermatitis.pptx
PPTX
CHAPTER NO.08 HCP BY GG CLINICAL PHARMACY
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...
PPTX
ELEMENTS OF COMMUNICATION (UNIT 2) .pptx
PPTX
Pig- piggy bank in Big Data Analytics.ppt.pptx
PDF
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
PDF
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
PPTX
How to Manage Reception Report in Odoo 18 Inventory
PDF
All Students Workshop 25 Yoga Wellness by LDMMIA
PPTX
TAMIS & TEMS - HOW, WHY and THE STEPS IN PROCTOLOGY
PDF
NAVIGATE PHARMACY CAREER OPPORTUNITIES.pdf
PDF
1ST APPLICATION FOR ANNULMENT (4)8787666.pdf
PDF
The Tale of Melon City poem ppt by Sahasra
PPTX
Searching in PubMed andCochrane_Practical Presentation.pptx
PDF
Projecte de la porta de la classe de primer A: Mar i cel.
PPTX
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
The Art Pastor's Guide to the Liturgical Calendar
15 December 2025 Education for human flourishing Michael Stevenson .pptx
Campfens "The Data Qualify Challenge: Publishers, institutions, and funders r...
Semester 6 unit 2 Atopic dermatitis.pptx
CHAPTER NO.08 HCP BY GG CLINICAL PHARMACY
BỘ TEST KIỂM TRA CUỐI HỌC KÌ 1 - TIẾNG ANH 6-7-8-9 GLOBAL SUCCESS - PHIÊN BẢN...
ELEMENTS OF COMMUNICATION (UNIT 2) .pptx
Pig- piggy bank in Big Data Analytics.ppt.pptx
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
How to Manage Reception Report in Odoo 18 Inventory
All Students Workshop 25 Yoga Wellness by LDMMIA
TAMIS & TEMS - HOW, WHY and THE STEPS IN PROCTOLOGY
NAVIGATE PHARMACY CAREER OPPORTUNITIES.pdf
1ST APPLICATION FOR ANNULMENT (4)8787666.pdf
The Tale of Melon City poem ppt by Sahasra
Searching in PubMed andCochrane_Practical Presentation.pptx
Projecte de la porta de la classe de primer A: Mar i cel.
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)

Introduction to HTML+CSS+Javascript.pptx

  • 1.
  • 2.
  • 3.
    GoalsIntroduction to webtechnologies:●HTML to create thedocument structure andcontent● CSS to control is visualaspect● Javascript for interactivity
  • 4.
    HTMLHTML means HyperText MarkupLanguage.The HTML allow us to define the structure of a documentor a website.HTML is NOT a programming language, it’s a markuplanguage, which means its purpose is to give structure tothe content of the website, not to define an algorithm.Here is an example of tags:<title>This is a title</title>The HTML defines the page structure. A website can haveseveral HTMLs to different pages.<html><head></head><body><div><p>Hi</p></div></body></html>
  • 5.
    HTML: syntax example<divid="main"><!-- this is a comment -->This is text without atag.<button class="mini">pressme</button><imgsrc="me.png" /></div>Tagname attributescommenttexttagself-closingtag
  • 6.
    Although there arelots of tags in the HTML specification, 99% of the webs use asubset of HTML tags with less that 10 tags, the most important are:● <div>: a container, usually represents a rectangular area with information inside.● <img/>: an image● <a>: a clickable link to go to another URL● <p>: a text paragraph● <h1>: a title (h2,h3,h4 are titles of less importance)● <input>: a widget to let the user introduce information● <style> and <link>: to insert CSS rules● <script>: to execute Javascript● <span>: a null tag (doesn't do anything), good for tagging infoHTML: main tags
  • 7.
    HTML: other interestingtagsThere are some tags that could be usefulsometimes:● <button>: to create a button● <audio>: for playing audio● <video>: to play video● <canvas>: to draw graphics from javascript● <iframe>: to put another website inside ours
  • 8.
    CSSCSS allows usto specify how topresent (render) the document infostored in the HTML.Thanks to CSS we can control all theaspects of the visualization and someother features:● Colors: content, background,borders● Margins: interior margin,exterior margin● Position: where to put it● Sizes: width, height● Behaviour: changes on mouseover
  • 9.
    CSS example* {color:blue; /*a comment*/ margin: 10px;font: 14px Tahoma;}This will change all the tags in my web ( ‘*‘ means all) to look blue with font Tahomawith 14px, and leaving a margin of 10px around.
  • 10.
    How to addCSS ?There are three ways to add CSS to your website:● Using a style tag in Internal CSS<style>p { color: blue }</style>● Referencing an external CSS<link href="style.css"rel="stylesheet" />● Using the attribute style on a tag (inline)<p style="color: blue; margin: 10px">…</p>
  • 11.
    CSS PropertiesHere isa list of the most common CSS fields and an example:● color: #FF0000; red; rgba(255,00,100,1.0); //different ways tospecify colors● background-color: red;● background-image: url('file.png');● font: 18px 'Tahoma';● border: 2px solid black;● border-top: 2px solid red;● border-radius: 2px; //to remove corners and make them more round● margin: 10px; //distance from the border to the outer elements● padding: 2px; //distance from the border to the inner elements● width: 100%; 300px; 1.3em; //many different ways to specifydistances● height: 200px;● text-align: center;● box-shadow: 3px 3px 5px black;● cursor: pointer;● display: inline-block;● overflow: hidden;
  • 12.
    CSS SelectorsYou canalso specify tags by its context, for example: tags that are inside of tagsmatching a selector. Just separate the selectors by an space:div#main p.intro { ... }This will affect to the p tags of class intro that are inside the tag div of id main<div id="main"><p class="intro">....</p> ← Affects this one</div><p class="intro">....</p>← but not this one
  • 13.
    Box ModelIt isimportant to note that by default anywidth and height specified to an elementwill not take into account its margin, so adiv with width 100px and margin 10px willmeasure 120px on the screen, not 100px.This could be a problem breakingyour layout.You can change this behaviour changingthe box model of the element so thewidth uses the outmost border:div { box-sizing: border; }
  • 14.
    LayoutOne of thehardest parts of CSS isconstruing the layout of your website(the structure inside the window) .By default HTML tends to puteverything in one column, which is notideal.There has been many proposals in CSSto address this issue (tables, fixed divs,flex, grid, …).
  • 15.
    FlexboxThe first bigproposal to address thelayout was the flexbox model.This model allows to arrange stuff inone direction (vertically orhorizontally) very easily.You can even choose to arrange fromright to left (reverse).It can also be used to arrange a seriesof elements in different rows.Check the tutorial for moreinfo.HTML<div class="box"><div>One</div><div>Two</div><div>Three<br>first line<br>second line</div></div>CSS.box {display: flex;}
  • 16.
    JavascriptA regular programminglanguage, easy to start,hard to master.Allows to give some interactivity to the elements on theweb.Syntax similar to C or Java but with notypes.You can change the content of the HTML or the CSSapplied to an element.You can even send or retrieve information from theinternet to update the content of the web withoutreloading the page.var my_number = 10;function say( str ){console.log( str);}say("hello");
  • 17.
    #"https://www.slideshare.net/slideshow/introduction-to-html-css-javascript-pptx/272411593#18">Javascript example<html><body><h1>This isa title</h1><script>var title = document.querySelector("h1");title.innerHTML = "This is another title";</script></body></html>
  • 19.
    #"https://www.slideshare.net/slideshow/introduction-to-html-css-javascript-pptx/272411593#20">#"https://www.slideshare.net/slideshow/introduction-to-html-css-javascript-pptx/272411593#21">#"https://www.slideshare.net/slideshow/introduction-to-html-css-javascript-pptx/272411593#22">Example of awebsiteHTMLin index.html<link href="style.css" rel="stylesheet"/><h1>Welcome</h1><p><button>Click me</button></p><script src="code.js"/>CSS in style.cssh1 { color: #333;} button {border: 2px solid#AAA; background-color: #555;}Javascript in code.js//fetch the button from the DOMvar button = document.querySelector("button");//attach and event when the user clicksit button.addEventListener("click",myfunction);//create the function that will be calledwhen the button is pressedfunction myfunction(){//this shows a popupwindow alert("buttonclicked!");}
  • 23.
    jQueryjQuery is alibrary that makes working with the DOM much easier, using anunified syntax and taking advantage of selectors:$("p").remove(); //remove all tags p$("#main").hide(); //hides the element of id main$("#main").append("<h1>titulo</h1>") //adds content to an element$("#wrap").css({ color: "red" }); //change the css$("button#send").click( function() { /* code */ });To include this library just add this to your HTML:<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

[8]ページ先頭

©2009-2025 Movatter.jp