SlideShare a Scribd company logo
1 of 33
Hypertext Markup
Language
GRADE 10 COMPUTER
What is HTML? The Basics of Hypertext
Markup Language Explained
What is HTML? The Basics of Hypertext
Markup Language Explained
HTML stands for Hypertext Markup Language. It allows
the user to create and structure sections, paragraphs,
headings, links, and blockquotes for web pages and
applications.
HTML is not a programming language, meaning it doesn’t
have the ability to create dynamic functionality. Instead,
it makes it possible to organize and format documents,
similarly to Microsoft Word.
When working with HTML
we use simple code structures (tags and attributes)
to mark up a website page. For example, we can
create a paragraph by placing the enclosed text
within a starting <p> and closing </p> tag.
• <p>This is how you add a paragraph in HTML.</p>
• <p>You can have more than one!</p>
The History of HTML
The History of HTML
HTML was invented by Tim Berners-Lee, a physicist at the CERN
research institute in Switzerland. He came up with the idea of an
Internet-based hypertext system.
Hypertext means a text that contains references (links) to other
texts that viewers can access immediately. He published the first
version of HTML in 1991, consisting of 18 HTML tags. Since then,
each new version of the HTML language came with new tags and
attributes (tag modifiers) to the markup.
The History of HTML
According to Mozilla Developer Network’s HTML Element
Reference, currently, there are 140 HTML tags, although some
of them are already obsolete (not supported by modern
browsers).
Due to a quick rise in popularity, HTML is now considered an
official web standard. The HTML specifications are maintained
and developed by the World Wide Web Consortium (W3C). You
can check out the latest state of the language anytime
on W3C’s website.
The History of HTML
The biggest upgrade of the language was the
introduction of HTML5 in 2014. It added
several new semantic tags to the markup,
that reveal the meaning of their own
content, such as <article>, <header>,
and <footer>.
How Does HTML Work?
How Does HTML Work?
HTML documents are files that end with a
.html or .htm extension. You can view then using any web
browser (such as Google Chrome, Safari, or Mozilla
Firefox). The browser reads the HTML file and renders its
content so that internet users can view it.
Usually, the average website includes several different
HTML pages. For instance: home pages, about pages,
contact pages would all have separate HTML documents.
How Does HTML Work?
Each HTML page consists of a set of tags (also
called elements), which you can refer to as the building
blocks of web pages. They create a hierarchy that
structures the content into sections, paragraphs,
headings, and other content blocks.
Most HTML elements have an opening and a closing that
use the <tag></tag> syntax.
Below, you can see a code example of how
HTML elements can be structured:
• <div>
• <h1>The Main Heading</h1>
• <h2>A catchy subheading</h2>
• <p>Paragraph one</p>
• <img src="/" alt="Image">
• <p>Paragraph two with a <a
href="https://example.com">hyperlink</a></p>
• </div>
• The outmost element is a simple division (<div></div>)
you can use to mark up bigger content sections.
• It contains a heading (<h1></h1>), a subheading
(<h2></h2>), two paragraphs (<p></p>), and an image
(<img>).
• The second paragraph includes a link (<a></a>) with a
href attribute that contains the destination URL.
• The image tag also has two attributes: src for the image
path and alt for the image description.
Overviewing The Most Used HTML Tags
HTML tags have two main types: block-
level and inline tags.
1. Block-level elements take up the full available
space and always start a new line in the document.
Headings and paragraphs are a great example of
block tags.
2. Inline elements only take up as much space as they
need and don’t start a new line on the page. They
usually serve to format the inner contents of block-
level elements. Links and emphasized strings are
good examples of inline tags.
Block-Level Tags
The three block level tags every HTML document needs to
contain are <html>, <head>, and <body>.
1. The <html></html> tag is the highest level element
that encloses every HTML page.
2. The <head></head> tag holds meta information such
as the page’s title and charset.
3. Finally, the <body></body> tag encloses all the
content that appears on the page.
Block-Level Tags
1. <html>
2. <head>
3. <!-- META INFORMATION -->
4. </head>
5. <body>
6. <!-- PAGE CONTENT -->
7. </body>
8. </html>
Block-Level Tags
•Headings have 6 levels in HTML. They range
from <h1></h1> to <h6></h6>, where h1 is
the highest level heading and h6 is the
lowest one. Paragraphs are enclosed
by <p></p>, while blockquotes use
the <blockquote></blockquote> tag.
Block-Level Tags
• Divisions are bigger content sections that
typically contain several paragraphs, images,
sometimes blockquotes, and other smaller
elements. We can mark them up using
the <div></div> tag. A div element can contain
another div tag inside it as well.
Block-Level Tags
You may also use <ol></ol> tags for
ordered lists
and <ul></ul> for unordered ones.
Individual list items must be enclosed by
the <li></li> tag. For example, this is
how a basic unordered list looks like in
HTML:
Block-Level Tags
1. <ul>
2. <li>List item 1</li>
3. <li>List item 2</li>
4. <li>List item 3</li>
5. </ul>
Inline Tags
Many inline tags are used to format text. For example, a <strong></strong> tag would
render an element in bold, whereas <em></em> tags would show it in italics.
Hyperlinks are also inline elements that require <a></a> tags and href attributes to
indicate the link’s destination:
1. <a href="https://example.com/">Click me!</a>
Images are inline elements too. You can add one using <img> without any closing tag.
But you will also need to use the src attribute to specify the image path, for example:
1. <img src="/images/example.jpg" alt="Example image">
If you want to learn more HTML tags, consider checking our complete HTML cheat
sheet (which is also available for download).
HTML Evolution. What Differs Between
HTML and HTML5?
HTML Evolution. What Differs Between
HTML and HTML5?
Since the first days, HTML has gone through an
incredible evolution. W3C constantly publish new
versions and updates, while historical milestones get
dedicated names as well.
HTML4 (these days commonly referred to as “HTML”)
was published in 1999, while the latest major version
came out in 2014. Named HTML5, the update has
introduced many new features to the language.
HTML Evolution. What Differs Between
HTML and HTML5?
One of the most anticipated features of HTML5 is
native support for audio and video embedding.
Instead of using Flash player, we can simply embed
videos and audio files to our web pages using the
new <audio></audio> and <video></video> tags.
It also includes in-built support for scalable vector
graphics (SVG) and MathML for mathematical and
scientific formulas.
HTML Evolution. What Differs Between
HTML and HTML5?
HTML5 introduced a few semantic improvements as well.
The new semantic tags inform browsers about the meaning
of content, which benefits both readers and search
engines.
The most popular semantic tags
are <article></article>, <section></section>, <aside></
aside>, <header></header>, and <footer></footer>. To
find amore unique differences, consider checking our in-
depth HTML and HTML5 comparison.
Pros and Cons of HTML
Like most things, HTML comes with a handful
of strengths and limitations.
Pros:
A widely used language with a lot of resources and a huge community
behind.
Runs natively in every web browser.
Comes with a flat learning curve.
Open-source and completely free.
Clean and consistent markup.
The official web standards are maintained by the World Wide Web
Consortium (W3C).
Easily integrable with backend languages such as PHP and Node.js.
Like most things, HTML comes with a handful
of strengths and limitations.
Cons:
Mostly used for static web pages. For dynamic functionality, you
may need to use JavaScript or a backend language such as PHP.
It does not allow the user to implement logic. As a result, all web
pages need to be created separately, even if they use the same
elements, e.g. headers and footers.
Some browsers adopt new features slowly.
Browser behavior is sometimes hard to predict (e.g. older browsers
don’t always render newer tags).
How are HTML, CSS, and JavaScript related?
How are HTML, CSS, and JavaScript
related?
While HTML is a powerful language, it isn’t enough to
build a professional and fully responsive website. We
can only use it to add text elements and create the
structure of the content.
However, HTML works extremely well with two other
frontend languages: CSS (Cascading Style Sheets),
and JavaScript. Together, they can achieve rich user
experience and implement advanced functions.
How are HTML, CSS, and JavaScript
related?
CSS is responsible for stylings such as background,
colors, layouts, spacing, and animations.
JavaScript lets you add dynamic functionality such
as sliders, pop-ups, and photo galleries.
Think of HTML as a naked person, CSS as the
clothing, and JavaScript as movements and
manner.
So…What is HTML?
HTML is the main markup language of the web. It
runs natively in every browser and is maintained by
the World Wide Web Consortium.
You can use it to create the content structure of
websites and web applications. It’s the lowest
level of frontend technologies, that serves as the
basis for styling you can add with CSS and
functionality you can implement using JavaScript.

More Related Content

What's hot

Web browsers
Web browsersWeb browsers
Web browsers
learnt
 
Q3 G11 Empowerment Technologies Module 2.pdf
Q3 G11 Empowerment Technologies Module 2.pdfQ3 G11 Empowerment Technologies Module 2.pdf
Q3 G11 Empowerment Technologies Module 2.pdf
BryanSmile
 
Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1
raileeanne
 

What's hot (20)

HTML5 - Insert images and Apply page backgrounds
HTML5 - Insert images and Apply page backgroundsHTML5 - Insert images and Apply page backgrounds
HTML5 - Insert images and Apply page backgrounds
 
Empowerment Technologies - Module 3
Empowerment Technologies - Module 3Empowerment Technologies - Module 3
Empowerment Technologies - Module 3
 
Computer specifications
Computer specificationsComputer specifications
Computer specifications
 
CSS L01 - Introduction to Computer System Servicing (NCII)
CSS L01 - Introduction to Computer System Servicing (NCII)CSS L01 - Introduction to Computer System Servicing (NCII)
CSS L01 - Introduction to Computer System Servicing (NCII)
 
Web browsers
Web browsersWeb browsers
Web browsers
 
Install computer system,devices and peripherals
Install computer system,devices and peripheralsInstall computer system,devices and peripherals
Install computer system,devices and peripherals
 
Empowerment Technologies - Module 6
Empowerment Technologies - Module 6Empowerment Technologies - Module 6
Empowerment Technologies - Module 6
 
Empowerment Technologies Lecture 9 (Philippines SHS)
Empowerment Technologies Lecture 9 (Philippines SHS)Empowerment Technologies Lecture 9 (Philippines SHS)
Empowerment Technologies Lecture 9 (Philippines SHS)
 
Wix tutorial
Wix tutorialWix tutorial
Wix tutorial
 
EMPOWERMENT TECHNOLOGIES - LESSON 2
EMPOWERMENT TECHNOLOGIES - LESSON 2EMPOWERMENT TECHNOLOGIES - LESSON 2
EMPOWERMENT TECHNOLOGIES - LESSON 2
 
Final exam in empowerment technologies
Final exam in empowerment technologiesFinal exam in empowerment technologies
Final exam in empowerment technologies
 
Dll empowerment technologies
Dll empowerment technologiesDll empowerment technologies
Dll empowerment technologies
 
Mail-Merge-and-Label-Generation.pptx
Mail-Merge-and-Label-Generation.pptxMail-Merge-and-Label-Generation.pptx
Mail-Merge-and-Label-Generation.pptx
 
Netiquette on using internet
Netiquette  on using internetNetiquette  on using internet
Netiquette on using internet
 
Html list
Html listHtml list
Html list
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Empowerment Technology Lesson 2
Empowerment Technology Lesson 2Empowerment Technology Lesson 2
Empowerment Technology Lesson 2
 
HTML5 - create hyperlinks and anchors
HTML5 - create hyperlinks and anchorsHTML5 - create hyperlinks and anchors
HTML5 - create hyperlinks and anchors
 
Q3 G11 Empowerment Technologies Module 2.pdf
Q3 G11 Empowerment Technologies Module 2.pdfQ3 G11 Empowerment Technologies Module 2.pdf
Q3 G11 Empowerment Technologies Module 2.pdf
 
Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1
 

Similar to Grade 10 COMPUTER

Web topic 2 html
Web topic 2  htmlWeb topic 2  html
Web topic 2 html
CK Yang
 
CSE-HTML-PPT.pptx
CSE-HTML-PPT.pptxCSE-HTML-PPT.pptx
CSE-HTML-PPT.pptx
Ambika S
 

Similar to Grade 10 COMPUTER (20)

WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
Html
HtmlHtml
Html
 
Web topic 2 html
Web topic 2  htmlWeb topic 2  html
Web topic 2 html
 
Vskills certified html5 developer Notes
Vskills certified html5 developer NotesVskills certified html5 developer Notes
Vskills certified html5 developer Notes
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtml
 
CSE-HTML-PPT.pptx
CSE-HTML-PPT.pptxCSE-HTML-PPT.pptx
CSE-HTML-PPT.pptx
 
Vskills certified html designer Notes
Vskills certified html designer NotesVskills certified html designer Notes
Vskills certified html designer Notes
 
Dynamic html (#1)
Dynamic  html (#1)Dynamic  html (#1)
Dynamic html (#1)
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
CSE-HTML-PPT.pptx
CSE-HTML-PPT.pptxCSE-HTML-PPT.pptx
CSE-HTML-PPT.pptx
 
Html
HtmlHtml
Html
 
Html Concept
Html ConceptHtml Concept
Html Concept
 
Html
HtmlHtml
Html
 
WHAT IS HTML.pdf
WHAT IS HTML.pdfWHAT IS HTML.pdf
WHAT IS HTML.pdf
 
WHAT IS HTML.pdf
WHAT IS HTML.pdfWHAT IS HTML.pdf
WHAT IS HTML.pdf
 
WHAT IS HTML.pdf
WHAT IS HTML.pdfWHAT IS HTML.pdf
WHAT IS HTML.pdf
 
HTML element is everything between the start tag and the end tag
HTML element is everything between the start tag and the end tagHTML element is everything between the start tag and the end tag
HTML element is everything between the start tag and the end tag
 

More from Joel Linquico (20)

Computer 4
Computer 4Computer 4
Computer 4
 
Grade 7 computer
Grade 7 computerGrade 7 computer
Grade 7 computer
 
What is genetics
What is geneticsWhat is genetics
What is genetics
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
 
GRADE 10 STEM
GRADE 10 STEMGRADE 10 STEM
GRADE 10 STEM
 
GRADE 10 COMPUTER
GRADE 10 COMPUTERGRADE 10 COMPUTER
GRADE 10 COMPUTER
 
GRADE 8 TADT2
GRADE 8 TADT2GRADE 8 TADT2
GRADE 8 TADT2
 
Grade 8 COMPUTER
Grade 8 COMPUTERGrade 8 COMPUTER
Grade 8 COMPUTER
 
GRADE 7 SCIENCE
GRADE 7 SCIENCEGRADE 7 SCIENCE
GRADE 7 SCIENCE
 
GRADE 7 COMPUTER
GRADE 7 COMPUTERGRADE 7 COMPUTER
GRADE 7 COMPUTER
 
Grade 6 Mapeh
Grade 6 MapehGrade 6 Mapeh
Grade 6 Mapeh
 
Grade 6 Computer
Grade 6 Computer Grade 6 Computer
Grade 6 Computer
 
Grade 5 Computer
Grade 5 ComputerGrade 5 Computer
Grade 5 Computer
 
Grade 4 Computer
Grade 4 Computer Grade 4 Computer
Grade 4 Computer
 
Grade 4 Araling Panlipunan
Grade 4 Araling Panlipunan Grade 4 Araling Panlipunan
Grade 4 Araling Panlipunan
 
Grade 6 computer
Grade 6 computer Grade 6 computer
Grade 6 computer
 
Grade 6 health
Grade 6 healthGrade 6 health
Grade 6 health
 
Grade 6 physical education
Grade 6 physical educationGrade 6 physical education
Grade 6 physical education
 
Grade 6 arts
Grade 6 artsGrade 6 arts
Grade 6 arts
 
Grade 6 MUSIC
Grade 6 MUSICGrade 6 MUSIC
Grade 6 MUSIC
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Grade 10 COMPUTER

  • 2. What is HTML? The Basics of Hypertext Markup Language Explained
  • 3. What is HTML? The Basics of Hypertext Markup Language Explained HTML stands for Hypertext Markup Language. It allows the user to create and structure sections, paragraphs, headings, links, and blockquotes for web pages and applications. HTML is not a programming language, meaning it doesn’t have the ability to create dynamic functionality. Instead, it makes it possible to organize and format documents, similarly to Microsoft Word.
  • 4. When working with HTML we use simple code structures (tags and attributes) to mark up a website page. For example, we can create a paragraph by placing the enclosed text within a starting <p> and closing </p> tag. • <p>This is how you add a paragraph in HTML.</p> • <p>You can have more than one!</p>
  • 6. The History of HTML HTML was invented by Tim Berners-Lee, a physicist at the CERN research institute in Switzerland. He came up with the idea of an Internet-based hypertext system. Hypertext means a text that contains references (links) to other texts that viewers can access immediately. He published the first version of HTML in 1991, consisting of 18 HTML tags. Since then, each new version of the HTML language came with new tags and attributes (tag modifiers) to the markup.
  • 7. The History of HTML According to Mozilla Developer Network’s HTML Element Reference, currently, there are 140 HTML tags, although some of them are already obsolete (not supported by modern browsers). Due to a quick rise in popularity, HTML is now considered an official web standard. The HTML specifications are maintained and developed by the World Wide Web Consortium (W3C). You can check out the latest state of the language anytime on W3C’s website.
  • 8. The History of HTML The biggest upgrade of the language was the introduction of HTML5 in 2014. It added several new semantic tags to the markup, that reveal the meaning of their own content, such as <article>, <header>, and <footer>.
  • 10. How Does HTML Work? HTML documents are files that end with a .html or .htm extension. You can view then using any web browser (such as Google Chrome, Safari, or Mozilla Firefox). The browser reads the HTML file and renders its content so that internet users can view it. Usually, the average website includes several different HTML pages. For instance: home pages, about pages, contact pages would all have separate HTML documents.
  • 11. How Does HTML Work? Each HTML page consists of a set of tags (also called elements), which you can refer to as the building blocks of web pages. They create a hierarchy that structures the content into sections, paragraphs, headings, and other content blocks. Most HTML elements have an opening and a closing that use the <tag></tag> syntax.
  • 12. Below, you can see a code example of how HTML elements can be structured: • <div> • <h1>The Main Heading</h1> • <h2>A catchy subheading</h2> • <p>Paragraph one</p> • <img src="/" alt="Image"> • <p>Paragraph two with a <a href="https://example.com">hyperlink</a></p> • </div>
  • 13. • The outmost element is a simple division (<div></div>) you can use to mark up bigger content sections. • It contains a heading (<h1></h1>), a subheading (<h2></h2>), two paragraphs (<p></p>), and an image (<img>). • The second paragraph includes a link (<a></a>) with a href attribute that contains the destination URL. • The image tag also has two attributes: src for the image path and alt for the image description.
  • 14. Overviewing The Most Used HTML Tags
  • 15. HTML tags have two main types: block- level and inline tags. 1. Block-level elements take up the full available space and always start a new line in the document. Headings and paragraphs are a great example of block tags. 2. Inline elements only take up as much space as they need and don’t start a new line on the page. They usually serve to format the inner contents of block- level elements. Links and emphasized strings are good examples of inline tags.
  • 16. Block-Level Tags The three block level tags every HTML document needs to contain are <html>, <head>, and <body>. 1. The <html></html> tag is the highest level element that encloses every HTML page. 2. The <head></head> tag holds meta information such as the page’s title and charset. 3. Finally, the <body></body> tag encloses all the content that appears on the page.
  • 17. Block-Level Tags 1. <html> 2. <head> 3. <!-- META INFORMATION --> 4. </head> 5. <body> 6. <!-- PAGE CONTENT --> 7. </body> 8. </html>
  • 18. Block-Level Tags •Headings have 6 levels in HTML. They range from <h1></h1> to <h6></h6>, where h1 is the highest level heading and h6 is the lowest one. Paragraphs are enclosed by <p></p>, while blockquotes use the <blockquote></blockquote> tag.
  • 19. Block-Level Tags • Divisions are bigger content sections that typically contain several paragraphs, images, sometimes blockquotes, and other smaller elements. We can mark them up using the <div></div> tag. A div element can contain another div tag inside it as well.
  • 20. Block-Level Tags You may also use <ol></ol> tags for ordered lists and <ul></ul> for unordered ones. Individual list items must be enclosed by the <li></li> tag. For example, this is how a basic unordered list looks like in HTML:
  • 21. Block-Level Tags 1. <ul> 2. <li>List item 1</li> 3. <li>List item 2</li> 4. <li>List item 3</li> 5. </ul>
  • 22. Inline Tags Many inline tags are used to format text. For example, a <strong></strong> tag would render an element in bold, whereas <em></em> tags would show it in italics. Hyperlinks are also inline elements that require <a></a> tags and href attributes to indicate the link’s destination: 1. <a href="https://example.com/">Click me!</a> Images are inline elements too. You can add one using <img> without any closing tag. But you will also need to use the src attribute to specify the image path, for example: 1. <img src="/images/example.jpg" alt="Example image"> If you want to learn more HTML tags, consider checking our complete HTML cheat sheet (which is also available for download).
  • 23. HTML Evolution. What Differs Between HTML and HTML5?
  • 24. HTML Evolution. What Differs Between HTML and HTML5? Since the first days, HTML has gone through an incredible evolution. W3C constantly publish new versions and updates, while historical milestones get dedicated names as well. HTML4 (these days commonly referred to as “HTML”) was published in 1999, while the latest major version came out in 2014. Named HTML5, the update has introduced many new features to the language.
  • 25. HTML Evolution. What Differs Between HTML and HTML5? One of the most anticipated features of HTML5 is native support for audio and video embedding. Instead of using Flash player, we can simply embed videos and audio files to our web pages using the new <audio></audio> and <video></video> tags. It also includes in-built support for scalable vector graphics (SVG) and MathML for mathematical and scientific formulas.
  • 26. HTML Evolution. What Differs Between HTML and HTML5? HTML5 introduced a few semantic improvements as well. The new semantic tags inform browsers about the meaning of content, which benefits both readers and search engines. The most popular semantic tags are <article></article>, <section></section>, <aside></ aside>, <header></header>, and <footer></footer>. To find amore unique differences, consider checking our in- depth HTML and HTML5 comparison.
  • 27. Pros and Cons of HTML
  • 28. Like most things, HTML comes with a handful of strengths and limitations. Pros: A widely used language with a lot of resources and a huge community behind. Runs natively in every web browser. Comes with a flat learning curve. Open-source and completely free. Clean and consistent markup. The official web standards are maintained by the World Wide Web Consortium (W3C). Easily integrable with backend languages such as PHP and Node.js.
  • 29. Like most things, HTML comes with a handful of strengths and limitations. Cons: Mostly used for static web pages. For dynamic functionality, you may need to use JavaScript or a backend language such as PHP. It does not allow the user to implement logic. As a result, all web pages need to be created separately, even if they use the same elements, e.g. headers and footers. Some browsers adopt new features slowly. Browser behavior is sometimes hard to predict (e.g. older browsers don’t always render newer tags).
  • 30. How are HTML, CSS, and JavaScript related?
  • 31. How are HTML, CSS, and JavaScript related? While HTML is a powerful language, it isn’t enough to build a professional and fully responsive website. We can only use it to add text elements and create the structure of the content. However, HTML works extremely well with two other frontend languages: CSS (Cascading Style Sheets), and JavaScript. Together, they can achieve rich user experience and implement advanced functions.
  • 32. How are HTML, CSS, and JavaScript related? CSS is responsible for stylings such as background, colors, layouts, spacing, and animations. JavaScript lets you add dynamic functionality such as sliders, pop-ups, and photo galleries. Think of HTML as a naked person, CSS as the clothing, and JavaScript as movements and manner.
  • 33. So…What is HTML? HTML is the main markup language of the web. It runs natively in every browser and is maintained by the World Wide Web Consortium. You can use it to create the content structure of websites and web applications. It’s the lowest level of frontend technologies, that serves as the basis for styling you can add with CSS and functionality you can implement using JavaScript.