SlideShare a Scribd company logo
1 of 45
Introduction to Web &
HTML
2
Topics
 Web Terminology
 HTML
 What is HTML
 Parts of an HTML Document
 HTML Tags
 Required
 Common
3
Internet vs. WWW
 The Internet is a vast, international network, made up of
computers and the physical connections (wires, routers,
etc.) allowing them to communicate.
 The World Wide Web (WWW or just the Web) is a
collection of software that spans the Internet and enables
the interlinking of documents and resources.
 Provides a way of accessing information on the Internet.
 For more information about the history of the Internet and
WWW:
http://en.wikipedia.org/wiki/Internet
4
Web Servers and Clients
 A Web server is a computer that is
programmed to send files to browsers on other
computers connected to the Internet.
 The Web browser, such as Firefox or Internet
Explorer, is the client that sends a request for
a Web page.
 The Web server answers the request and
delivers the requested page to the browser so
you can view it.
5
HTTP
 Stands for HyperText Transfer Protocol
 Allows computers on the WWW to
communicate with one another.
 Handles the “request” sent to the Web server
and the “response” received from the Web
server.
6
Web Server-Client Diagram
7
URLs
 Stands for Uniform Resource Locator
 Also called the Web page’s address
 You typically type it into your Web browser’s location
bar when you want to view a Web page
http://www.umbc.edu
Name of
Web server
Protocol needed to
communicate with
Web server
Types of Web Applications
Type Best for Industries Benefits
Static Web Apps •Book publishing company
•Works really well in offline mode
•No need to install 3rd party software to
access the web app
Dynamic Web
Apps
•Social media
•IT Industry
•Healthcare
•Retail & E-commerce
•Transportation & logistics
•On-demand
•Manage the website directly to change and
update the information
•Easy user management to protect your
server and manage all the users on the
website
Single Page Apps
•Email service
•Communication industry
•Allows optimized routing and navigation
experience
•Helps to keep the consistent visual structure
of the web application using presentation
logic
8
Multiple Page
Apps
•Enterprise industries
•E-commerce industries
•Allows optimizing each page for search engines
•Lets users access different pages with the click of
their mouse
Animated Web
Apps
•Animation
•Education
•Game
•Hold people’s attention for a long time because of
its unique design and attractive approach
•Aspect ratios, portrait, and landscape orientations,
as well as different pixel densities and viewing
distances, are considered
Content
Management
System
•Blogging Platforms
•Marketing and Sales
Platform
•News Portals
•Organizes the website content easily
•Offers user and group functionality
•Get the group and user functionalities
•Easy language integration and support
9
E-commerce
Apps
•E-commerce businesses
•Allows businesses to sell goods using a single
platform
•Expand your business globally by reaching
maximum audience
Portal Web
Apps
•Student or faculty portal
•Government portals
•All the documents and information is
centralized
•Easily search and authorize the permission
according to your preference
•Manage your courses and other educational
materials from your portal account
Progressive
Web Apps
•On-demand
•Retail & E-commerce
•Transportation & logistics
•Social media
•Healthcare
•IT industry
•Responsive and allow browser compatibility
•Easy to work in online and offline mode
•Update itself without any user interaction
10
11
HTML
 Stands for HyperText Markup Language
 Used to create a Web page
 Made up of tags that specify the structure of the document
 It consists of different elements which we use to structure a web page.
 An excerpt from a sample HTML document:
<html>
<head>
<title>Bhargavi’s Web page</title>
</head>
<body>
<h1>This is my first Web page</h1>
</html>
12
13
14
HTML Tags
 Most HTML tags work in pairs.
 There is an opening and a closing tag.
15
Required Tags
 All HTML documents should have html, head and body
tags, along with the DOCTYPE identifier.
 !DOCTYPE – Tells the browser which set of standards the page
adheres to.
 The declaration is not an HTML tag. It is an "information" to the
browser about what document type to expect. In HTML 5, the
declaration is simple.
 <!DOCTYPE html>
16
Basic HTML Template
<!DOCTYPE html>
<html>
<head>
<title>CMSC104 HTML Template</title>
</head>
<body>
This is just a basic HTML template to be used in CMSC104.
</body>
</html>
Example file: template.html
17
Some Common HTML Tags
and Their Meanings
 <p>…</p> -- Creates a paragraph
 <br /> -- Adds a line break
 <hr /> -- Separates sections with a horizontal
rule
 <h1>…</h1> -- Displays a heading (h1-h6)
 <!--…--> -- Inserts a comment
 <ol>…</ol> -- Creates an ordered list
 <ul>…</ul> -- Creates an unordered list
 <img /> -- Inserts an image into the document
 <a>…</a> -- Inserts a link into the document
What are HTML Attributes?
18
19
 But the question is: how do we know which ones
are block-level elements and which ones are
inline elements? Well, unfortunately you need to
remember them.
 The easiest way is to remember which are inline
elements – and the rest are block elements.
20
Common HTML elements
 There are in total more than 100 elements. But 90% of
the time you will only use around 20 of the most
common.
 Categorized into 5 groups:
1. Section elements - <div>, <span>, <header>, <footer>, <nav>,
<main>, <section>
2. Text content - <h1> to <h6>, <p>, <div>, <span>, <ul>, <ol>, <li>
3. Forms - <form>, <input>, <button>, <label>, <textarea>
4. Images and Links - <img>, <a>
5. Others - <br>, <hr> 21
How to create an HTML
document
 First, let's open Visual Studio Code (or your
favorite code editor).
 In the folder of your choice, create a new file
and name it index.html.
 In the index.html file, type ! (exclamation
mark) and press enter. You will see
something like this:
22
23
Paragraph Example
<p>
The exam next week will consist of T/F,
multiple choice, short answer and pseudocode
questions. You cannot use a calculator.
</p>
<p>
After the exam, we will learn JavaScript.
It should be fun!!
</p>
24
Paragraph Example
Screenshot
25
Line Break Example
<p>
Roses are Red. <br />
Violets are Blue. <br />
You should study for Exam 1. <br />
It will be good for you!
</p>
26
Line Break Example
Screenshot
27
Horizontal Rule Example
<p>
The exam next week will consist of T/F,
multiple choice, short answer and
pseudocode questions. You cannot use a
calculator.
</p>
<hr />
<p>
After the exam, we will learn JavaScript.
It should be fun!!
</p>
28
Horizontal Rule Example
Screenshot
29
Heading Example
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
30
Heading Example Screenshot
31
Comment Example
<!-- This is just some sample html to illustrate
the use of a comment -->
<p>
Here is my paragraph.
</p>
<!-- Here is another comment -->
32
Heading Example Screenshot
33
Ordered List Example
<ol>
<li>Print Review Questions for Exam 1.</li>
<li>Work on Review Questions for Exam 1.</li>
</ol>
34
Ordered List Screenshot
35
Unordered List Example
<ul>
<li>country music</li>
<li>monday mornings</li>
<li>brussels sprouts</li>
</ul>
36
Unordered List Screenshot
37
Link Example
<a href="http://www.cs.umbc.edu/104/">CMSC104 Main page</a>
38
Link Screenshot
39
Image Example
<img src="linux-tux.png" alt="Tux the Penguin" />
40
Image Screenshot
41
Working Example
 To see an example page that uses all of the
tags we discussed today, visit
http://userpages.umbc.edu/~dblock/lecture6.html
Cascading Style Sheets (CSS)
 CSS is the language we use to style an HTML document.
 CSS describes how HTML elements should be displayed.
 CSS stands for Cascading Style Sheets
 CSS describes how HTML elements are to be displayed on
screen, paper, or in other media
 CSS saves a lot of work. It can control the layout of
multiple web pages all at once.
 External style sheets are stored in CSS files.
 Now check this -
https://www.w3schools.com/css/css_intro.asp
42
Why Use CSS?
 CSS is used to define styles for your web pages, including the design, layout
and variations in display for different devices and screen sizes.
 CSS Example
 body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
} 43
Task to perform for the Lab
 Experiment No 1 :
 Design an html form for displaying information
using interactive css including images, tables.
44
THANK YOU
Bhargavi Dalal
45

More Related Content

Similar to Introduction to Web Technology and Web Page Development

The Factors For The Website
The Factors For The WebsiteThe Factors For The Website
The Factors For The WebsiteJulie May
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLSiva Rushi
 
IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1ArunsunaiComputer
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notesDurgadevi palani
 
Basics tags for HTML
Basics tags for HTMLBasics tags for HTML
Basics tags for HTMLvidyamittal
 
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
 
Additional HTML
Additional HTML Additional HTML
Additional HTML Doeun KOCH
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introductionclement swarnappa
 

Similar to Introduction to Web Technology and Web Page Development (20)

HTML Basics by software development company india
HTML Basics by software development company indiaHTML Basics by software development company india
HTML Basics by software development company india
 
The Factors For The Website
The Factors For The WebsiteThe Factors For The Website
The Factors For The Website
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web+html
Web+htmlWeb+html
Web+html
 
IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1
 
HTML5_3.ppt
HTML5_3.pptHTML5_3.ppt
HTML5_3.ppt
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Html b smart
Html b smartHtml b smart
Html b smart
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
Basics tags for HTML
Basics tags for HTMLBasics tags for HTML
Basics tags for HTML
 
Introduction css
Introduction cssIntroduction css
Introduction css
 
Introduction css
Introduction cssIntroduction css
Introduction css
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Compo2 prelim
Compo2 prelimCompo2 prelim
Compo2 prelim
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
Web Programming introduction
Web Programming introductionWeb Programming introduction
Web Programming introduction
 
Module 3
Module 3Module 3
Module 3
 
HTML
HTMLHTML
HTML
 

Recently uploaded

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Recently uploaded (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Introduction to Web Technology and Web Page Development

  • 2. 2 Topics  Web Terminology  HTML  What is HTML  Parts of an HTML Document  HTML Tags  Required  Common
  • 3. 3 Internet vs. WWW  The Internet is a vast, international network, made up of computers and the physical connections (wires, routers, etc.) allowing them to communicate.  The World Wide Web (WWW or just the Web) is a collection of software that spans the Internet and enables the interlinking of documents and resources.  Provides a way of accessing information on the Internet.  For more information about the history of the Internet and WWW: http://en.wikipedia.org/wiki/Internet
  • 4. 4 Web Servers and Clients  A Web server is a computer that is programmed to send files to browsers on other computers connected to the Internet.  The Web browser, such as Firefox or Internet Explorer, is the client that sends a request for a Web page.  The Web server answers the request and delivers the requested page to the browser so you can view it.
  • 5. 5 HTTP  Stands for HyperText Transfer Protocol  Allows computers on the WWW to communicate with one another.  Handles the “request” sent to the Web server and the “response” received from the Web server.
  • 7. 7 URLs  Stands for Uniform Resource Locator  Also called the Web page’s address  You typically type it into your Web browser’s location bar when you want to view a Web page http://www.umbc.edu Name of Web server Protocol needed to communicate with Web server
  • 8. Types of Web Applications Type Best for Industries Benefits Static Web Apps •Book publishing company •Works really well in offline mode •No need to install 3rd party software to access the web app Dynamic Web Apps •Social media •IT Industry •Healthcare •Retail & E-commerce •Transportation & logistics •On-demand •Manage the website directly to change and update the information •Easy user management to protect your server and manage all the users on the website Single Page Apps •Email service •Communication industry •Allows optimized routing and navigation experience •Helps to keep the consistent visual structure of the web application using presentation logic 8
  • 9. Multiple Page Apps •Enterprise industries •E-commerce industries •Allows optimizing each page for search engines •Lets users access different pages with the click of their mouse Animated Web Apps •Animation •Education •Game •Hold people’s attention for a long time because of its unique design and attractive approach •Aspect ratios, portrait, and landscape orientations, as well as different pixel densities and viewing distances, are considered Content Management System •Blogging Platforms •Marketing and Sales Platform •News Portals •Organizes the website content easily •Offers user and group functionality •Get the group and user functionalities •Easy language integration and support 9
  • 10. E-commerce Apps •E-commerce businesses •Allows businesses to sell goods using a single platform •Expand your business globally by reaching maximum audience Portal Web Apps •Student or faculty portal •Government portals •All the documents and information is centralized •Easily search and authorize the permission according to your preference •Manage your courses and other educational materials from your portal account Progressive Web Apps •On-demand •Retail & E-commerce •Transportation & logistics •Social media •Healthcare •IT industry •Responsive and allow browser compatibility •Easy to work in online and offline mode •Update itself without any user interaction 10
  • 11. 11 HTML  Stands for HyperText Markup Language  Used to create a Web page  Made up of tags that specify the structure of the document  It consists of different elements which we use to structure a web page.  An excerpt from a sample HTML document: <html> <head> <title>Bhargavi’s Web page</title> </head> <body> <h1>This is my first Web page</h1> </html>
  • 12. 12
  • 13. 13
  • 14. 14 HTML Tags  Most HTML tags work in pairs.  There is an opening and a closing tag.
  • 15. 15 Required Tags  All HTML documents should have html, head and body tags, along with the DOCTYPE identifier.  !DOCTYPE – Tells the browser which set of standards the page adheres to.  The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect. In HTML 5, the declaration is simple.  <!DOCTYPE html>
  • 16. 16 Basic HTML Template <!DOCTYPE html> <html> <head> <title>CMSC104 HTML Template</title> </head> <body> This is just a basic HTML template to be used in CMSC104. </body> </html> Example file: template.html
  • 17. 17 Some Common HTML Tags and Their Meanings  <p>…</p> -- Creates a paragraph  <br /> -- Adds a line break  <hr /> -- Separates sections with a horizontal rule  <h1>…</h1> -- Displays a heading (h1-h6)  <!--…--> -- Inserts a comment  <ol>…</ol> -- Creates an ordered list  <ul>…</ul> -- Creates an unordered list  <img /> -- Inserts an image into the document  <a>…</a> -- Inserts a link into the document
  • 18. What are HTML Attributes? 18
  • 19. 19
  • 20.  But the question is: how do we know which ones are block-level elements and which ones are inline elements? Well, unfortunately you need to remember them.  The easiest way is to remember which are inline elements – and the rest are block elements. 20
  • 21. Common HTML elements  There are in total more than 100 elements. But 90% of the time you will only use around 20 of the most common.  Categorized into 5 groups: 1. Section elements - <div>, <span>, <header>, <footer>, <nav>, <main>, <section> 2. Text content - <h1> to <h6>, <p>, <div>, <span>, <ul>, <ol>, <li> 3. Forms - <form>, <input>, <button>, <label>, <textarea> 4. Images and Links - <img>, <a> 5. Others - <br>, <hr> 21
  • 22. How to create an HTML document  First, let's open Visual Studio Code (or your favorite code editor).  In the folder of your choice, create a new file and name it index.html.  In the index.html file, type ! (exclamation mark) and press enter. You will see something like this: 22
  • 23. 23 Paragraph Example <p> The exam next week will consist of T/F, multiple choice, short answer and pseudocode questions. You cannot use a calculator. </p> <p> After the exam, we will learn JavaScript. It should be fun!! </p>
  • 25. 25 Line Break Example <p> Roses are Red. <br /> Violets are Blue. <br /> You should study for Exam 1. <br /> It will be good for you! </p>
  • 27. 27 Horizontal Rule Example <p> The exam next week will consist of T/F, multiple choice, short answer and pseudocode questions. You cannot use a calculator. </p> <hr /> <p> After the exam, we will learn JavaScript. It should be fun!! </p>
  • 29. 29 Heading Example <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6>
  • 31. 31 Comment Example <!-- This is just some sample html to illustrate the use of a comment --> <p> Here is my paragraph. </p> <!-- Here is another comment -->
  • 33. 33 Ordered List Example <ol> <li>Print Review Questions for Exam 1.</li> <li>Work on Review Questions for Exam 1.</li> </ol>
  • 35. 35 Unordered List Example <ul> <li>country music</li> <li>monday mornings</li> <li>brussels sprouts</li> </ul>
  • 39. 39 Image Example <img src="linux-tux.png" alt="Tux the Penguin" />
  • 41. 41 Working Example  To see an example page that uses all of the tags we discussed today, visit http://userpages.umbc.edu/~dblock/lecture6.html
  • 42. Cascading Style Sheets (CSS)  CSS is the language we use to style an HTML document.  CSS describes how HTML elements should be displayed.  CSS stands for Cascading Style Sheets  CSS describes how HTML elements are to be displayed on screen, paper, or in other media  CSS saves a lot of work. It can control the layout of multiple web pages all at once.  External style sheets are stored in CSS files.  Now check this - https://www.w3schools.com/css/css_intro.asp 42
  • 43. Why Use CSS?  CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.  CSS Example  body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; } 43
  • 44. Task to perform for the Lab  Experiment No 1 :  Design an html form for displaying information using interactive css including images, tables. 44