SlideShare a Scribd company logo
Computer Fundamentals
& Internet Part 2
What is HTML?
 HTML is a markup language for describing web documents
(web pages).
 HTML stands for Hyper Text Markup Language
 A markup language is a set of markup tags
 HTML documents are described by HTML tags
 Markup is what HTML tags do to the text inside them. They
mark it as a certain type of text (italicised text, for
example).
 Each HTML tag describes different document content
How does it Work?
 HTML consists of a series of short codes
typed into a text-file by the site author
(tags)
 The text is then saved as a html file
 Viewed through a browser
 Browser reads the file and translates the
text into a visible form
HTML example
• The DOCTYPE declaration defines the document type
to be HTML
• The text between <html> and </html> describes an
HTML document
• The text between <head> and </head> provides
information about the document
• The text between <title> and </title> provides a title
for the document
• The text between <body> and </body> describes the
visible page content
• The text between <h1> and </h1> describes a heading
• The text between <p> and </p> describes a paragraph
Sample Output
HTML Tags
 HTML tags are keywords (tag names) surrounded by angle
brackets:
 HTML tags normally come in pairs like <p> and </p>
 The first tag in a pair is the start tag, the second tag is the
end tag
 The end tag is written like the start tag, but with a slash
before the tag name
Web Browsers
Microsoft
Internet Explorer
Mozilla Firefox
Microsoft Edge
Google Chrome
Apple Safari
Web Browsers
 The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML
documents and display them.
 The browser does not display the HTML tags, but uses them to determine how
to display the document:
HTML Page Structure
The <!DOCTYPE> Declaration
 The <!DOCTYPE> declaration helps the browser to display a web page
correctly.
 There are different document types on the web.
 To display a document correctly, the browser must know both type and
version.
 The doctype declaration is not case sensitive. All cases are acceptable:
Common Declarations
HTML Versions
HTML Editors
 Notepad
 TextEdit
 Microsoft WebMatrix
 Sublime Text
 Adobe Dreamweaver
HTML Elements
 HTML documents are made up by HTML elements.
 HTML elements are written with a start tag, with an end tag, with the content
in between:
 The HTML element is everything from the start tag to the end tag:
Nested HTML Elements
 HTML elements can be nested (elements can contain elements).
 All HTML documents consist of nested HTML elements.
 This example contains 4 HTML elements:
Don’t forget the End Tag
 Some HTML elements will display correctly, even if you forget the end tag:
The example above works in all browsers, because the closing tag is considered optional.
Never rely on this. It might produce unexpected results and/or errors if you forget the end tag.
Empty HTML Elements
 HTML elements with no content are called empty
elements.
 <br> is an empty element without a closing tag
(the <br> tag defines a line break).
 Empty elements can be "closed" in the opening tag like
this: <br />.
HTML Attributes
 Attributes provide additional information about HTML
elements.
 HTML elements can have attributes
 Attributes provide additional information about an element
 Attributes are always specified in the start tag
 Attributes come in name/value pairs like: name="value"
The title Attribute
the <p> element has a title
attribute. The value of the
attribute is "About W3Schools"
The href Attribute
 HTML links are defined with the <a> tag. The link address is specified in the
href attribute:
Size Attribute
 HTML images are defined with the <img> tag.
 The filename of the source (src), and the size of the image (width and
height) are all provided as attributes:
 The image size is specified in pixels: width="104" means 104 screen
pixels wide.
The alt Attribute
 The alt attribute specifies an alternative text to be used, when an image
cannot be displayed.
Recommendations
 Always Use Lowercase Attributes
 Always Quote Attribute Values
This will not display correctly, because it contains a space
Single or Double Quotes?
 Double style quotes are the most common in HTML, but single style can also be
used.
 In some situations, when the attribute value itself contains double quotes, it is
necessary to use single quotes:
 Or vice versa:
HTML Attributes - Summary
 All HTML elements can have attributes
 The HTML title attribute provides additional "tool-tip" information
 The HTML href attribute provides address information for links
 The HTML width and height attributes provide size information for
images
 The HTML alt attribute specifies an alternative text to be used, when
an image cannot be displayed
HTML Headings
 Headings are defined with the <h1> to <h6> tags.
 <h1> defines the most important heading. <h6> defines the least important
heading.
 Browsers automatically add some empty space (a margin) before and after
each heading.
HTML Headings
• Use HTML headings for headings only.
Don't use headings to make text BIG or
bold.
• Search engines use your headings to
index the structure and content of your
web pages.
• Users skim your pages by its headings.
It is important to use headings to show
the document structure.
• h1 headings should be main headings,
followed by h2 headings, then the less
important h3, and so on.
HTML Horizontal Rules
 The <hr> tag creates a horizontal line in an HTML page.
 The hr element can be used to separate content:

More Related Content

PPT
HTML Introduction
PPTX
HTML 5 Topic 2
PPTX
HTML5 Topic 1
PPT
Xhtml
PPT
Introduction to HTML
PPTX
Introduction to html fundamental concepts
PPTX
PPT
Html for beginners part I
HTML Introduction
HTML 5 Topic 2
HTML5 Topic 1
Xhtml
Introduction to HTML
Introduction to html fundamental concepts
Html for beginners part I

What's hot (20)

PDF
PPTX
Lecture 2 introduction to html basics
PPT
Web designing using html
PPT
Dynamic html (#1)
PPTX
Web Page Designing
PPTX
Html_Day_One (W3Schools)
PPTX
WEB PAGE DESIGN USING HTML
PPTX
HTML Basics by software development company india
PDF
Introduction to XHTML
PPSX
Html programing
PDF
Html grade 11
PPTX
HTML_Day_Two(W3Schools)
PPTX
HTML - R.D.Sivakumar
PPTX
Introduction to HTML
PPTX
Ict html
PPT
Diva
PDF
Introduction to HTML
PPTX
HTML Introduction
PPT
Introduction to XML
Lecture 2 introduction to html basics
Web designing using html
Dynamic html (#1)
Web Page Designing
Html_Day_One (W3Schools)
WEB PAGE DESIGN USING HTML
HTML Basics by software development company india
Introduction to XHTML
Html programing
Html grade 11
HTML_Day_Two(W3Schools)
HTML - R.D.Sivakumar
Introduction to HTML
Ict html
Diva
Introduction to HTML
HTML Introduction
Introduction to XML
Ad

Viewers also liked (20)

PPTX
INTERNET FUNDAMENTALS
PPTX
Network and internet fundamental
PPTX
Web Terminologies
PDF
Tutorial archi cad 7.0
PPTX
Computer fundamentals-internet p1
PPTX
IoT Summit 2017 - Fundamentals of Internet of Things
PPTX
Computer fundamentals brr
PPT
An Introduction to Social Networking
PPTX
AUTOCAD 2D COURSE
PPTX
Computer virus
PPTX
CEE81B AutoCAD Practice
PPS
2D CAD Module by gonzalochris
PDF
Autocad 2d
PDF
Important Comment used in AutoCAD 2D Khmer Guide
PDF
Auto cad apostila 2015
PPTX
Intro to AutoCAD 2016 2D | 08 - panels (modify)
PPTX
Intro to AutoCAD 2016 2D | 09 - panels (annotation)
PPTX
Computer Fundamentals
PPTX
Networking basics Tutorial 1
PPTX
AUTOCAD 3D COURSE
INTERNET FUNDAMENTALS
Network and internet fundamental
Web Terminologies
Tutorial archi cad 7.0
Computer fundamentals-internet p1
IoT Summit 2017 - Fundamentals of Internet of Things
Computer fundamentals brr
An Introduction to Social Networking
AUTOCAD 2D COURSE
Computer virus
CEE81B AutoCAD Practice
2D CAD Module by gonzalochris
Autocad 2d
Important Comment used in AutoCAD 2D Khmer Guide
Auto cad apostila 2015
Intro to AutoCAD 2016 2D | 08 - panels (modify)
Intro to AutoCAD 2016 2D | 09 - panels (annotation)
Computer Fundamentals
Networking basics Tutorial 1
AUTOCAD 3D COURSE
Ad

Similar to Computer fundamentals-internet p2 (20)

PPTX
Introduction to HTML.pptx
PDF
Html basics
PPTX
HTML_HEADER PART TAGS .pptx
DOC
Learn html from www
PDF
Tm 1st quarter - 1st meeting
PPTX
Html Workshop
PPTX
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
PPT
Html presentation
PDF
web development.pdf
PPTX
Web Application Programming with HTML 5 part 1
PDF
Html & Html5 from scratch
PPTX
Appdev appdev appdev app devAPPDEV 1.2.pptx
PDF
Web Development 1 (HTML & CSS)
PPTX
PDF
Html - Tutorial
PDF
Html notes
PPTX
About html
PPTX
Introduction to HTML- Week 3- HTMLSyntax
PPTX
How to learn HTML in 10 Days
Introduction to HTML.pptx
Html basics
HTML_HEADER PART TAGS .pptx
Learn html from www
Tm 1st quarter - 1st meeting
Html Workshop
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
Html presentation
web development.pdf
Web Application Programming with HTML 5 part 1
Html & Html5 from scratch
Appdev appdev appdev app devAPPDEV 1.2.pptx
Web Development 1 (HTML & CSS)
Html - Tutorial
Html notes
About html
Introduction to HTML- Week 3- HTMLSyntax
How to learn HTML in 10 Days

More from Leo Mark Villar (11)

PPTX
Date security identifcation and authentication
PPTX
Date security security principles
PPTX
Data security authorization and access control
PPTX
Date security introduction
PPTX
Data security auditing and accountability
PPTX
Web programming
PPTX
PPTX
Team foundation server
PPTX
Microsoft office 2013
PPTX
Sql performance tuning
PPTX
Angular js
Date security identifcation and authentication
Date security security principles
Data security authorization and access control
Date security introduction
Data security auditing and accountability
Web programming
Team foundation server
Microsoft office 2013
Sql performance tuning
Angular js

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
20250228 LYD VKU AI Blended-Learning.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Programs and apps: productivity, graphics, security and other tools
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25 Week I
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Spectral efficient network and resource selection model in 5G networks

Computer fundamentals-internet p2

  • 2. What is HTML?  HTML is a markup language for describing web documents (web pages).  HTML stands for Hyper Text Markup Language  A markup language is a set of markup tags  HTML documents are described by HTML tags  Markup is what HTML tags do to the text inside them. They mark it as a certain type of text (italicised text, for example).  Each HTML tag describes different document content
  • 3. How does it Work?  HTML consists of a series of short codes typed into a text-file by the site author (tags)  The text is then saved as a html file  Viewed through a browser  Browser reads the file and translates the text into a visible form
  • 4. HTML example • The DOCTYPE declaration defines the document type to be HTML • The text between <html> and </html> describes an HTML document • The text between <head> and </head> provides information about the document • The text between <title> and </title> provides a title for the document • The text between <body> and </body> describes the visible page content • The text between <h1> and </h1> describes a heading • The text between <p> and </p> describes a paragraph
  • 6. HTML Tags  HTML tags are keywords (tag names) surrounded by angle brackets:  HTML tags normally come in pairs like <p> and </p>  The first tag in a pair is the start tag, the second tag is the end tag  The end tag is written like the start tag, but with a slash before the tag name
  • 7. Web Browsers Microsoft Internet Explorer Mozilla Firefox Microsoft Edge Google Chrome Apple Safari
  • 8. Web Browsers  The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them.  The browser does not display the HTML tags, but uses them to determine how to display the document:
  • 10. The <!DOCTYPE> Declaration  The <!DOCTYPE> declaration helps the browser to display a web page correctly.  There are different document types on the web.  To display a document correctly, the browser must know both type and version.  The doctype declaration is not case sensitive. All cases are acceptable:
  • 13. HTML Editors  Notepad  TextEdit  Microsoft WebMatrix  Sublime Text  Adobe Dreamweaver
  • 14. HTML Elements  HTML documents are made up by HTML elements.  HTML elements are written with a start tag, with an end tag, with the content in between:  The HTML element is everything from the start tag to the end tag:
  • 15. Nested HTML Elements  HTML elements can be nested (elements can contain elements).  All HTML documents consist of nested HTML elements.  This example contains 4 HTML elements:
  • 16. Don’t forget the End Tag  Some HTML elements will display correctly, even if you forget the end tag: The example above works in all browsers, because the closing tag is considered optional. Never rely on this. It might produce unexpected results and/or errors if you forget the end tag.
  • 17. Empty HTML Elements  HTML elements with no content are called empty elements.  <br> is an empty element without a closing tag (the <br> tag defines a line break).  Empty elements can be "closed" in the opening tag like this: <br />.
  • 18. HTML Attributes  Attributes provide additional information about HTML elements.  HTML elements can have attributes  Attributes provide additional information about an element  Attributes are always specified in the start tag  Attributes come in name/value pairs like: name="value"
  • 19. The title Attribute the <p> element has a title attribute. The value of the attribute is "About W3Schools"
  • 20. The href Attribute  HTML links are defined with the <a> tag. The link address is specified in the href attribute:
  • 21. Size Attribute  HTML images are defined with the <img> tag.  The filename of the source (src), and the size of the image (width and height) are all provided as attributes:  The image size is specified in pixels: width="104" means 104 screen pixels wide.
  • 22. The alt Attribute  The alt attribute specifies an alternative text to be used, when an image cannot be displayed.
  • 23. Recommendations  Always Use Lowercase Attributes  Always Quote Attribute Values This will not display correctly, because it contains a space
  • 24. Single or Double Quotes?  Double style quotes are the most common in HTML, but single style can also be used.  In some situations, when the attribute value itself contains double quotes, it is necessary to use single quotes:  Or vice versa:
  • 25. HTML Attributes - Summary  All HTML elements can have attributes  The HTML title attribute provides additional "tool-tip" information  The HTML href attribute provides address information for links  The HTML width and height attributes provide size information for images  The HTML alt attribute specifies an alternative text to be used, when an image cannot be displayed
  • 26. HTML Headings  Headings are defined with the <h1> to <h6> tags.  <h1> defines the most important heading. <h6> defines the least important heading.  Browsers automatically add some empty space (a margin) before and after each heading.
  • 27. HTML Headings • Use HTML headings for headings only. Don't use headings to make text BIG or bold. • Search engines use your headings to index the structure and content of your web pages. • Users skim your pages by its headings. It is important to use headings to show the document structure. • h1 headings should be main headings, followed by h2 headings, then the less important h3, and so on.
  • 28. HTML Horizontal Rules  The <hr> tag creates a horizontal line in an HTML page.  The hr element can be used to separate content: