SlideShare a Scribd company logo
1 of 16
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

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

introdution-to-html.ppt NJBJGHGJHGGJGJG
introdution-to-html.ppt  NJBJGHGJHGGJGJGintrodution-to-html.ppt  NJBJGHGJHGGJGJG
introdution-to-html.ppt NJBJGHGJHGGJGJGAMRITHA16
 
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbeintrodution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbeJamaicaCabrales
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.pptGezahegnHailu1
 
introdution-to-html programming and dhtml
introdution-to-html programming and dhtmlintrodution-to-html programming and dhtml
introdution-to-html programming and dhtmlsanthosh sriprada
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.pptVincentAcapen
 
introdution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc studentsintrodution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc studentsMaheshMutnale1
 
introdution-to-html-introdution-to-html.ppt
introdution-to-html-introdution-to-html.pptintrodution-to-html-introdution-to-html.ppt
introdution-to-html-introdution-to-html.pptmarkgilvinson
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notesDurgadevi palani
 
introdution-to-html_jayarao27_11_22.pptx
introdution-to-html_jayarao27_11_22.pptxintrodution-to-html_jayarao27_11_22.pptx
introdution-to-html_jayarao27_11_22.pptxjayarao21
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to htmlmyrajendra
 
What Is the Use Of HTML.pptx
What Is the Use Of HTML.pptxWhat Is the Use Of HTML.pptx
What Is the Use Of HTML.pptxManviMulani
 
introdution-to-html.ppt coding programming
introdution-to-html.ppt coding programmingintrodution-to-html.ppt coding programming
introdution-to-html.ppt coding programmingprogramizconsultancy
 

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

introdution-to-html.ppt NJBJGHGJHGGJGJG
introdution-to-html.ppt  NJBJGHGJHGGJGJGintrodution-to-html.ppt  NJBJGHGJHGGJGJG
introdution-to-html.ppt NJBJGHGJHGGJGJG
 
html.pptx
html.pptxhtml.pptx
html.pptx
 
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbeintrodution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
introdution-to-html programming and dhtml
introdution-to-html programming and dhtmlintrodution-to-html programming and dhtml
introdution-to-html programming and dhtml
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
 
introdution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc studentsintrodution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc students
 
introdution-to-html-introdution-to-html.ppt
introdution-to-html-introdution-to-html.pptintrodution-to-html-introdution-to-html.ppt
introdution-to-html-introdution-to-html.ppt
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
mst_unit1.pptx
mst_unit1.pptxmst_unit1.pptx
mst_unit1.pptx
 
introdution-to-html_jayarao27_11_22.pptx
introdution-to-html_jayarao27_11_22.pptxintrodution-to-html_jayarao27_11_22.pptx
introdution-to-html_jayarao27_11_22.pptx
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Importance of HTML
Importance of HTMLImportance of HTML
Importance of HTML
 
Dynamic html (#1)
Dynamic  html (#1)Dynamic  html (#1)
Dynamic html (#1)
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
What Is the Use Of HTML.pptx
What Is the Use Of HTML.pptxWhat Is the Use Of HTML.pptx
What Is the Use Of HTML.pptx
 
introdution-to-html.ppt coding programming
introdution-to-html.ppt coding programmingintrodution-to-html.ppt coding programming
introdution-to-html.ppt coding programming
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 

More from ssuser6478a8

HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...ssuser6478a8
 
Buila a Personalized Online course Recommender System with Machine Learning
Buila a Personalized Online course Recommender System with Machine LearningBuila a Personalized Online course Recommender System with Machine Learning
Buila a Personalized Online course Recommender System with Machine Learningssuser6478a8
 
5G is the fifth-generation technology standard for cellular networks, which c...
5G is the fifth-generation technology standard for cellular networks, which c...5G is the fifth-generation technology standard for cellular networks, which c...
5G is the fifth-generation technology standard for cellular networks, which c...ssuser6478a8
 
Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...
Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...
Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...ssuser6478a8
 
Data mining is the statistical technique of processing raw data in a structur...
Data mining is the statistical technique of processing raw data in a structur...Data mining is the statistical technique of processing raw data in a structur...
Data mining is the statistical technique of processing raw data in a structur...ssuser6478a8
 
HTML stands for HyperText Markup Language. It is used to design web pages usi...
HTML stands for HyperText Markup Language. It is used to design web pages usi...HTML stands for HyperText Markup Language. It is used to design web pages usi...
HTML stands for HyperText Markup Language. It is used to design web pages usi...ssuser6478a8
 
Arrays are used to store multiple values in a single variable, instead of dec...
Arrays are used to store multiple values in a single variable, instead of dec...Arrays are used to store multiple values in a single variable, instead of dec...
Arrays are used to store multiple values in a single variable, instead of dec...ssuser6478a8
 
Network Security and its applications in
Network Security and its applications inNetwork Security and its applications in
Network Security and its applications inssuser6478a8
 
Arrays and with its types and elements in java
Arrays and with its types and elements in javaArrays and with its types and elements in java
Arrays and with its types and elements in javassuser6478a8
 

More from ssuser6478a8 (9)

HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...
 
Buila a Personalized Online course Recommender System with Machine Learning
Buila a Personalized Online course Recommender System with Machine LearningBuila a Personalized Online course Recommender System with Machine Learning
Buila a Personalized Online course Recommender System with Machine Learning
 
5G is the fifth-generation technology standard for cellular networks, which c...
5G is the fifth-generation technology standard for cellular networks, which c...5G is the fifth-generation technology standard for cellular networks, which c...
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 Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...Data Structures and Algorithms (DSA) is a fundamental part of Computer Scienc...
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...
Data mining is the statistical technique of processing raw data in a structur...Data mining is the statistical technique of processing raw data in a structur...
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...
HTML stands for HyperText Markup Language. It is used to design web pages usi...HTML stands for HyperText Markup Language. It is used to design web pages usi...
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...
Arrays are used to store multiple values in a single variable, instead of dec...Arrays are used to store multiple values in a single variable, instead of dec...
Arrays are used to store multiple values in a single variable, instead of dec...
 
Network Security and its applications in
Network Security and its applications inNetwork Security and its applications in
Network Security and its applications in
 
Arrays and with its types and elements in java
Arrays and with its types and elements in javaArrays and with its types and elements in java
Arrays and with its types and elements in java
 

Recently uploaded

ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 

Recently uploaded (20)

ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.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