SlideShare a Scribd company logo
Intro to html
Intro to html
Intro to html
Introduction to HTML
HyperText Markup Language
What is HTML?
What is HTML?
 Hypertext Markup Language
What is HTML?
Hypertext Markup Language
 Hypertext:
 Allows for non-linear linking to other
documents
What is HTML?
Hypertext Markup Language
 Hypertext:
 Allows for non-linear linking to other
documents
 Markup Language:
 Content to be displayed is “marked up” or
tagged to tell the browser how to display
it.
HTML
 are the main code used for creating and
designing web pages.
 is written in the form of HTML elements consisting
of tags enclosed in angle brackets (like: <html> ).
 Elements or tags
<html></html>
 Attributes that modify an element
HTML
 HTML allows images and objects to be
embedded and can be used to
create interactive forms.
 It provides a means to create structured
documents by denoting structural semantics for
text such as headings, paragraphs, lists, links,
quotes and other items.
Elements
 Elements are the fundamental building
blocks of HTML.
 They are the tags that tell the browser
what the enclosed text is.
<title>My first HTML page</title>
The title element tells the browser that
this is the title of the page.
 Elements must be terminated
HTML
The pur pose of a web br owser i s t o r ead
HTML document s and compose t hem i nt o
vi si bl e or audi bl e web pages. The
br owser does not di spl ay t he HTML t ags,
but uses t he t ags t o i nt er pr et t he
cont ent of t he page.
Elements
General format of an element:
<startTag>Target content</endTag>
HTML is NOT case sensitive…
HTML Skeleton
<html>
<head>
<title>My first HTML Page!</title>
</head>
<body>
I Love HTML!
</body>
</html>
What do we need? | How to Save?
 Notepad
 To save:
File > Save As > .txt and .html
HTML Sample
<html>
<head>
<title>My first HTML Page!</title>
</head>
<body>
I Love HTML! Hypertext Markup Language!
</body>
</html>
Activity Time:
1. Open a Notepad
2. Using the basic html tags and
elements, input the paragraph below
and save as:
HTMLDoc1.html
Filename: HTMLDoc1.html
Title: My First HTML Document
Body:
My name is Juan Dela Cruz and my
hobbies are playing online games,
surfing the net, read travelling books
and hang-out with my friends.
Assignment:
Follow-up:
1. Give the other elements and attributes in
html.
References:
Book: World Wide Web Development III, pages 46-48
Website: www.w3schools.com
Intro to html
Common Elements
<html></html>
 All markup must be placed within HTML tags
<head></head>
 Contains information about the page as well
as other non-display content
<body></body>
 All display content should go inside these tags
Common Elements
<p></p>
 Tells the browser that the enclosed text
should be set off in a paragraph.
<h1></h1>
 This is a heading – the number can
range from 1 to 7 for different sizes
Text Display Elements
<b></b> or <strong></strong>
 Bolds the tagged text
<em></em> or <i></i>
 Italicizes the tagged text
<pre></pre>
 Preserves white space and breaks and
stands for “preformatted”
Common Tags
<br>
 Inserts a line break
 This is an empty tag – it does not have
a closing tag.
<hr>
 Inserts a horizontal rule (line)
 This is another empty tag
HTML Comments
An HTML Comment which is NOT
displayed in the page is done like this:
<!-- This is a comment -->
Attributes
Sometimes we need more information for
an element in order to control the way
the content displays
We provide this information with
attributes stated within the element
start tag
Attributes
The generic way of using an attribute looks like
this:
<elementName attribute=“value”>
Target content
</elementName>
Single or double quotes may be used to hold
attribute values
Attribute examples
<p align=“center”>This will appear
centered</p>
<img src=“mypicture.jpg”>
 This tag inserts the image
“mypicture.jpg” into the page.
 Make sure to use the right path!
Hyperlinks
Hyperlinks are created using the <a> tag,
which stands for “anchor”. The format
looks like this:
<a href=“uri_to_document”>Content to
click on for the link</a>
The uri can also be a mailto: link
Tables
Tables require three different tags:
<table></table>
 Defines the table itself
<tr></tr>
 Defines a table row
<td></td>
 Defines a table cell (table data)
Tables
Example table:
<table>
<tr><td>Column One, row one</td>
<td>Column Two, row one</td>
</tr>
<tr><td>Column One, row two</td>
<td>Column Two, row two</td>
</tr>
</table>
Lists
Two main types:
 Unordered list
 <ul></ul>
 Ordered List
 <ol></ol>
 List items are indicated by <li></li>
Font
You can modify more exactly the way text
looks by using the <font></font> tag:
<font color=“red” size=“3”
face=“Garamond”>
This is red, size 3, and in Garamond!
</font>
Entities
Some content characters may not show
up properly if simply placed inside tags.
How would you mark up the following:
Is 3<4 ?
Entities
In order to display these characters, we
use entities to represent them:
Character: Entity:
< &lt;
> &gt;
& &amp;
[space] &nbsp;

More Related Content

PPTX
Html_Day_One (W3Schools)
PPTX
HTML_Day_Two(W3Schools)
PPTX
Html presentation
PPTX
Computer fundamentals-internet p2
PPTX
Html (hypertext markup language)
DOCX
HTML Notes And Some Attributes
PPTX
Basics of HTML
PPTX
Web Page Designing Using HTML
Html_Day_One (W3Schools)
HTML_Day_Two(W3Schools)
Html presentation
Computer fundamentals-internet p2
Html (hypertext markup language)
HTML Notes And Some Attributes
Basics of HTML
Web Page Designing Using HTML

What's hot (20)

PPTX
HTML Basics 1 workshop
PPTX
Html introduction by ikram niaz
PDF
Html grade 11
PPT
Introduction to HTML
PPSX
Html programing
PPT
Html Intro2
PDF
Lesson 1: Introduction to HTML
PPTX
Basic Html for beginners.
DOCX
HTML Basics 2 workshop
PDF
Web Development 1 (HTML & CSS)
PPTX
Introduction to HTML
PPTX
Getting into HTML
PPTX
Web designing (1) - Html Basic Codding
PDF
What is HTML - An Introduction to HTML (Hypertext Markup Language)
PPTX
PPT
Html introduction
HTML Basics 1 workshop
Html introduction by ikram niaz
Html grade 11
Introduction to HTML
Html programing
Html Intro2
Lesson 1: Introduction to HTML
Basic Html for beginners.
HTML Basics 2 workshop
Web Development 1 (HTML & CSS)
Introduction to HTML
Getting into HTML
Web designing (1) - Html Basic Codding
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Html introduction
Ad

Viewers also liked (19)

PPTX
Html 5-tables-forms-frames (1)
PDF
Html table tags
PPTX
Html Basic Tags
PDF
Html tables examples
PPTX
Html - Tables, Forms and Frames by Telerik Academy
PPT
Table tags 2
PPTX
HTML: Tables and Forms
PPTX
Types of operating system
PPTX
html5.ppt
PPT
Introduction to HTML
PPS
Functions Of Operating System
PPTX
Operating Systems
PPTX
Operating system overview concepts ppt
PPT
Operating system.ppt (1)
PPTX
Html 5 tutorial - By Bally Chohan
PDF
Html / CSS Presentation
PPT
Introduction to html
PPT
Html Ppt
PDF
Up to Speed on HTML 5 and CSS 3
Html 5-tables-forms-frames (1)
Html table tags
Html Basic Tags
Html tables examples
Html - Tables, Forms and Frames by Telerik Academy
Table tags 2
HTML: Tables and Forms
Types of operating system
html5.ppt
Introduction to HTML
Functions Of Operating System
Operating Systems
Operating system overview concepts ppt
Operating system.ppt (1)
Html 5 tutorial - By Bally Chohan
Html / CSS Presentation
Introduction to html
Html Ppt
Up to Speed on HTML 5 and CSS 3
Ad

Similar to Intro to html (20)

PDF
Html full
DOC
Learn html from www
DOCX
Html example
PDF
Html notes
PDF
htmlnotes Which tells about all the basic
PDF
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
PDF
HTML Presentation
PPTX
Day 2 - Web_Development [basic HTML tags and their functionalities].pptx
PDF
WEB PROGRAMMING bharathiar university bca unitII
PPTX
DOCX
Lesson A.1 - Introduction to Web Development.docx
PPTX
html (1) (1).pptx for all students to learn
PPTX
html.pptx class notes to prepare html completly
PPTX
FEWDD Lec 1 web development presentation
PDF
Basic Html Notes
PPTX
PDF
HTML guide for beginners
DOCX
Htmlnotes 150323102005-conversion-gate01
Html full
Learn html from www
Html example
Html notes
htmlnotes Which tells about all the basic
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
HTML Presentation
Day 2 - Web_Development [basic HTML tags and their functionalities].pptx
WEB PROGRAMMING bharathiar university bca unitII
Lesson A.1 - Introduction to Web Development.docx
html (1) (1).pptx for all students to learn
html.pptx class notes to prepare html completly
FEWDD Lec 1 web development presentation
Basic Html Notes
HTML guide for beginners
Htmlnotes 150323102005-conversion-gate01

More from cherrybear2014 (11)

PPTX
Excel.t01
PPTX
Excel functions
PDF
Basics excel 20102
PPT
Session2
PPT
11 scripting languages
PPT
5 software design
PPTX
Designing the product page
PPTX
Conditional statements
PPTX
Check,combo,list,picture box
PPTX
Forms and buttons
Excel.t01
Excel functions
Basics excel 20102
Session2
11 scripting languages
5 software design
Designing the product page
Conditional statements
Check,combo,list,picture box
Forms and buttons

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
Teaching material agriculture food technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Monthly Chronicles - July 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
Cloud computing and distributed systems.
NewMind AI Monthly Chronicles - July 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation_ Review paper, used for researhc scholars
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Network Security Unit 5.pdf for BCA BBA.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Intro to html

  • 6. What is HTML?  Hypertext Markup Language
  • 7. What is HTML? Hypertext Markup Language  Hypertext:  Allows for non-linear linking to other documents
  • 8. What is HTML? Hypertext Markup Language  Hypertext:  Allows for non-linear linking to other documents  Markup Language:  Content to be displayed is “marked up” or tagged to tell the browser how to display it.
  • 9. HTML  are the main code used for creating and designing web pages.  is written in the form of HTML elements consisting of tags enclosed in angle brackets (like: <html> ).  Elements or tags <html></html>  Attributes that modify an element
  • 10. HTML  HTML allows images and objects to be embedded and can be used to create interactive forms.  It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items.
  • 11. Elements  Elements are the fundamental building blocks of HTML.  They are the tags that tell the browser what the enclosed text is. <title>My first HTML page</title> The title element tells the browser that this is the title of the page.  Elements must be terminated
  • 12. HTML The pur pose of a web br owser i s t o r ead HTML document s and compose t hem i nt o vi si bl e or audi bl e web pages. The br owser does not di spl ay t he HTML t ags, but uses t he t ags t o i nt er pr et t he cont ent of t he page.
  • 13. Elements General format of an element: <startTag>Target content</endTag> HTML is NOT case sensitive…
  • 14. HTML Skeleton <html> <head> <title>My first HTML Page!</title> </head> <body> I Love HTML! </body> </html>
  • 15. What do we need? | How to Save?  Notepad  To save: File > Save As > .txt and .html
  • 16. HTML Sample <html> <head> <title>My first HTML Page!</title> </head> <body> I Love HTML! Hypertext Markup Language! </body> </html>
  • 17. Activity Time: 1. Open a Notepad 2. Using the basic html tags and elements, input the paragraph below and save as: HTMLDoc1.html
  • 18. Filename: HTMLDoc1.html Title: My First HTML Document Body: My name is Juan Dela Cruz and my hobbies are playing online games, surfing the net, read travelling books and hang-out with my friends.
  • 19. Assignment: Follow-up: 1. Give the other elements and attributes in html. References: Book: World Wide Web Development III, pages 46-48 Website: www.w3schools.com
  • 21. Common Elements <html></html>  All markup must be placed within HTML tags <head></head>  Contains information about the page as well as other non-display content <body></body>  All display content should go inside these tags
  • 22. Common Elements <p></p>  Tells the browser that the enclosed text should be set off in a paragraph. <h1></h1>  This is a heading – the number can range from 1 to 7 for different sizes
  • 23. Text Display Elements <b></b> or <strong></strong>  Bolds the tagged text <em></em> or <i></i>  Italicizes the tagged text <pre></pre>  Preserves white space and breaks and stands for “preformatted”
  • 24. Common Tags <br>  Inserts a line break  This is an empty tag – it does not have a closing tag. <hr>  Inserts a horizontal rule (line)  This is another empty tag
  • 25. HTML Comments An HTML Comment which is NOT displayed in the page is done like this: <!-- This is a comment -->
  • 26. Attributes Sometimes we need more information for an element in order to control the way the content displays We provide this information with attributes stated within the element start tag
  • 27. Attributes The generic way of using an attribute looks like this: <elementName attribute=“value”> Target content </elementName> Single or double quotes may be used to hold attribute values
  • 28. Attribute examples <p align=“center”>This will appear centered</p> <img src=“mypicture.jpg”>  This tag inserts the image “mypicture.jpg” into the page.  Make sure to use the right path!
  • 29. Hyperlinks Hyperlinks are created using the <a> tag, which stands for “anchor”. The format looks like this: <a href=“uri_to_document”>Content to click on for the link</a> The uri can also be a mailto: link
  • 30. Tables Tables require three different tags: <table></table>  Defines the table itself <tr></tr>  Defines a table row <td></td>  Defines a table cell (table data)
  • 31. Tables Example table: <table> <tr><td>Column One, row one</td> <td>Column Two, row one</td> </tr> <tr><td>Column One, row two</td> <td>Column Two, row two</td> </tr> </table>
  • 32. Lists Two main types:  Unordered list  <ul></ul>  Ordered List  <ol></ol>  List items are indicated by <li></li>
  • 33. Font You can modify more exactly the way text looks by using the <font></font> tag: <font color=“red” size=“3” face=“Garamond”> This is red, size 3, and in Garamond! </font>
  • 34. Entities Some content characters may not show up properly if simply placed inside tags. How would you mark up the following: Is 3<4 ?
  • 35. Entities In order to display these characters, we use entities to represent them: Character: Entity: < &lt; > &gt; & &amp; [space] &nbsp;