SlideShare a Scribd company logo
Thank you for printing our content at www.domain-name.com. Please check back soon for new contents.
(/)
www.domain-name.com
What is HTML?
HTML (HyperText Markup Language) is used to structure and format the content
of websites on the World Wide Web. Web Developers use it to create a skeleton
of modern websites and web apps.
What is HTML?
In simple words, HTML is the primary building block to create and structure
website content.
Let's see what HyperText Markup Language means.
• HyperText
HyperText is a way of organizing text that allows the reader to easily navigate
and access related information. It takes the reader to a different part of the
same web page, or to a different web page altogether.
• Markup language
A markup language is a computer language that is used to add structure and
formatting to a text document. Markup languages use a system of tags to
define the structure and content of a document. These tags are interpreted
by a program or application to display the document in a specific way.
Example of HTML
Let's see a simple example of HTML.
<!DOCTYPE html>
<html>
<head>
<title>programiz</title>
</head>
<body>
<h1>HTML Tutorial</h1>
<p>You'll learn about HTML.</p>
</body>
</html>
Browser output
In the above program,
• <!DOCTYPE html> - defines that this document is an HTML document
• <html> -root element of an HTML page which encloses all other elements in
the HTML page
• <head> - contains information about the page, such as the title and metadata
• <title> - specifies a title for the HTML page which is shown in the browser's
title bar
• <body> - defines the main content of the page and is a container for all the
visible contents, such as headings, paragraphs, lists, etc
• <h1> - defines a heading
• <p> - defines a paragraph of HTML document
How HTML works?
HTML works by defining the structure and content of a web page using a series
of tags like <h1> , <p> , etc. Each tag has a meaning and can be used to define
the purpose of the content it encloses. For example,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Programiz</title>
</head>
<body>
<center><h1>Programiz</h1></center>
<h1>Learn to Code for Free</h1>
<p>
Learn to code with our beginner-friendly tutorials and examples.
Read interactive tutorials, and write and test your code to learn pr
<p>
<button>Join for free</button>
</body>
</html>
Browser output
As you can see, a web browser reads HTML tags and displays them on the
browser by interpreting their meaning. In the above code:
• <h1> tag - displays the content inside it as a heading
• <p> tag - displays the content inside it as a paragraph
• <center> tag - displays contents inside it at the center of the page
How to create and run an HTML file?
You will need a text editor and a web browser to create and run an HTML file on
your computer. You can follow the following steps to create and run an HTML file
on your device.
1. Open a text editor. There are many text editors available, such as Notepad
(on Windows) or TextEdit (on macOS).
2. You can now start writing HTML code in your text editor. Here's a sample
code you can type:
3. Save the file as index.html (or any other name with the .html extension) in
your desired location.
4. Open the HTML file in a web browser. You can do this by double-clicking the
HTML file in the location where you saved it, or right click on your HTML file
and choosing open.
5. The HTML file will be displayed in the web browser, and you can view the
content of the file.
Alternatively, you can use an Online HTML compiler (/html/online-compiler/).
HTML Features
HTML is a text-based language used to create web pages. It has several features
that make it a powerful and widely used language for creating web pages. Some
of these features include:
• HTML is a standard language used for creating and structuring web pages. It
allows for the organization of content using elements such as headings,
paragraphs, lists, and tables.
• It supports a wide range of media types, including text, images, audio, and
video, which makes web pages more engaging and interactive.
• HTML is a flexible language that can be used with other technologies, such as
CSS and JavaScript, to add additional features and functionality to a web
page
• Since HTML is compatible with all browsers, web pages created in HTML are
displayed across a variety of platforms and devices.
• Furthermore, it is an open and standardized language, which is constantly
being updated and improved by a community of developers and experts
Cons of HTML
Here are some of the cons of using HTML:
• text-based language, which can make it difficult to read and write
• may not be powerful enough to handle some of the more complex features
found in modern web pages
• can be challenging to maintain and update over time
Next Tutorial:
(/html/basics)
HTML Basics
HTML element is everything between the start tag and the end tag

More Related Content

PPTX
Html in Web design and Development.pptxt.pptx
PPT
Introduction to html
PPTX
Grade 7_HTML.pptx
PPT
HTML Programming, Html tags, Html tools,
PPTX
introdution-to-html.pptx
PPT
introdution-to000000000000000000000-html.ppt
PPTX
introdution to hypertext machine learning language
PPT
introdution-to-html building website using HTML
Html in Web design and Development.pptxt.pptx
Introduction to html
Grade 7_HTML.pptx
HTML Programming, Html tags, Html tools,
introdution-to-html.pptx
introdution-to000000000000000000000-html.ppt
introdution to hypertext machine learning language
introdution-to-html building website using HTML

Similar to HTML element is everything between the start tag and the end tag (20)

PPT
introdution-to-Basics_of_Hypertext_Markup_Language
PPT
introdution-to-html-basic webdevelopment.ppt
PPT
Introduction to HTML for under-graduate studnets
PPT
introdution-to-html about html basics tags
PPT
introdution-to-html (1).ppt
PPT
HTML is a markup language used by the browser to manipulate text, images, and...
PPT
introdution-to-html.ppt NJBJGHGJHGGJGJG
PPT
introduction to html for beginners and youth
PPTX
html.pptx
PPT
introduction to html.ppt
PPT
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
PPT
introdution-to-html (1).ppt 12345678909765432
PPT
summary html.ppt
PPT
introdution-to-html.ppt
PPT
introdution-to-html.ppt
PPT
introdution-to-html.ppt
PPT
introdution-to-html.ppt
PPTX
introdution-to-html programming and dhtml
PPT
introdution-to-html.ppt for bca ,bsc students
PPT
introdution-to-html-introdution-to-html.ppt
introdution-to-Basics_of_Hypertext_Markup_Language
introdution-to-html-basic webdevelopment.ppt
Introduction to HTML for under-graduate studnets
introdution-to-html about html basics tags
introdution-to-html (1).ppt
HTML is a markup language used by the browser to manipulate text, images, and...
introdution-to-html.ppt NJBJGHGJHGGJGJG
introduction to html for beginners and youth
html.pptx
introduction to html.ppt
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html (1).ppt 12345678909765432
summary html.ppt
introdution-to-html.ppt
introdution-to-html.ppt
introdution-to-html.ppt
introdution-to-html.ppt
introdution-to-html programming and dhtml
introdution-to-html.ppt for bca ,bsc students
introdution-to-html-introdution-to-html.ppt
Ad

More from ssuser6478a8 (11)

PPT
CSS is the language we use to style a Web page. CSS stands for Cascading Styl...
PPTX
React is a free and open-source front-end JavaScript library for building use...
PPTX
2023-12-15T16_13_17.575Z-SIF Space Hackathon 2023 _ Submission Template.pptx
PPTX
Buila a Personalized Online course Recommender System with Machine Learning
PPTX
5G is the fifth-generation technology standard for cellular networks, which c...
PPT
Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...
PPT
Data mining is the statistical technique of processing raw data in a structur...
PDF
HTML stands for HyperText Markup Language. It is used to design web pages usi...
PPT
Arrays are used to store multiple values in a single variable, instead of dec...
PPTX
Network Security and its applications in
PPT
Arrays and with its types and elements in java
CSS is the language we use to style a Web page. CSS stands for Cascading Styl...
React is a free and open-source front-end JavaScript library for building use...
2023-12-15T16_13_17.575Z-SIF Space Hackathon 2023 _ Submission Template.pptx
Buila a Personalized Online course Recommender System with Machine Learning
5G is the fifth-generation technology standard for cellular networks, which c...
Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...
Data mining is the statistical technique of processing raw data in a structur...
HTML stands for HyperText Markup Language. It is used to design web pages usi...
Arrays are used to store multiple values in a single variable, instead of dec...
Network Security and its applications in
Arrays and with its types and elements in java
Ad

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Cell Types and Its function , kingdom of life
PPTX
Institutional Correction lecture only . . .
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Structure & Organelles in detailed.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Insiders guide to clinical Medicine.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Classroom Observation Tools for Teachers
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pharma ospi slides which help in ospi learning
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Cell Types and Its function , kingdom of life
Institutional Correction lecture only . . .
Computing-Curriculum for Schools in Ghana
Cell Structure & Organelles in detailed.
Sports Quiz easy sports quiz sports quiz
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
VCE English Exam - Section C Student Revision Booklet
GDM (1) (1).pptx small presentation for students
Insiders guide to clinical Medicine.pdf
Pre independence Education in Inndia.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Anesthesia in Laparoscopic Surgery in India
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Classroom Observation Tools for Teachers
2.FourierTransform-ShortQuestionswithAnswers.pdf

HTML element is everything between the start tag and the end tag

  • 1. Thank you for printing our content at www.domain-name.com. Please check back soon for new contents. (/) www.domain-name.com What is HTML? HTML (HyperText Markup Language) is used to structure and format the content of websites on the World Wide Web. Web Developers use it to create a skeleton of modern websites and web apps.
  • 2. What is HTML? In simple words, HTML is the primary building block to create and structure website content. Let's see what HyperText Markup Language means. • HyperText HyperText is a way of organizing text that allows the reader to easily navigate and access related information. It takes the reader to a different part of the same web page, or to a different web page altogether. • Markup language A markup language is a computer language that is used to add structure and formatting to a text document. Markup languages use a system of tags to define the structure and content of a document. These tags are interpreted by a program or application to display the document in a specific way.
  • 3. Example of HTML Let's see a simple example of HTML. <!DOCTYPE html> <html> <head> <title>programiz</title> </head> <body> <h1>HTML Tutorial</h1> <p>You'll learn about HTML.</p> </body> </html> Browser output
  • 4. In the above program, • <!DOCTYPE html> - defines that this document is an HTML document • <html> -root element of an HTML page which encloses all other elements in the HTML page • <head> - contains information about the page, such as the title and metadata • <title> - specifies a title for the HTML page which is shown in the browser's title bar • <body> - defines the main content of the page and is a container for all the visible contents, such as headings, paragraphs, lists, etc
  • 5. • <h1> - defines a heading • <p> - defines a paragraph of HTML document How HTML works? HTML works by defining the structure and content of a web page using a series of tags like <h1> , <p> , etc. Each tag has a meaning and can be used to define the purpose of the content it encloses. For example,
  • 6. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Programiz</title> </head> <body> <center><h1>Programiz</h1></center> <h1>Learn to Code for Free</h1> <p> Learn to code with our beginner-friendly tutorials and examples. Read interactive tutorials, and write and test your code to learn pr <p> <button>Join for free</button> </body> </html>
  • 8. As you can see, a web browser reads HTML tags and displays them on the browser by interpreting their meaning. In the above code: • <h1> tag - displays the content inside it as a heading • <p> tag - displays the content inside it as a paragraph • <center> tag - displays contents inside it at the center of the page How to create and run an HTML file? You will need a text editor and a web browser to create and run an HTML file on your computer. You can follow the following steps to create and run an HTML file on your device. 1. Open a text editor. There are many text editors available, such as Notepad (on Windows) or TextEdit (on macOS).
  • 9. 2. You can now start writing HTML code in your text editor. Here's a sample code you can type:
  • 10. 3. Save the file as index.html (or any other name with the .html extension) in your desired location.
  • 11. 4. Open the HTML file in a web browser. You can do this by double-clicking the HTML file in the location where you saved it, or right click on your HTML file and choosing open.
  • 12. 5. The HTML file will be displayed in the web browser, and you can view the content of the file.
  • 13. Alternatively, you can use an Online HTML compiler (/html/online-compiler/).
  • 14. HTML Features HTML is a text-based language used to create web pages. It has several features that make it a powerful and widely used language for creating web pages. Some of these features include: • HTML is a standard language used for creating and structuring web pages. It allows for the organization of content using elements such as headings, paragraphs, lists, and tables. • It supports a wide range of media types, including text, images, audio, and video, which makes web pages more engaging and interactive. • HTML is a flexible language that can be used with other technologies, such as CSS and JavaScript, to add additional features and functionality to a web page • Since HTML is compatible with all browsers, web pages created in HTML are displayed across a variety of platforms and devices. • Furthermore, it is an open and standardized language, which is constantly being updated and improved by a community of developers and experts
  • 15. Cons of HTML Here are some of the cons of using HTML: • text-based language, which can make it difficult to read and write • may not be powerful enough to handle some of the more complex features found in modern web pages • can be challenging to maintain and update over time Next Tutorial: (/html/basics) HTML Basics