In this note, we will learn a topic called “What is HTML in Computer?” or about Hyper Text Markup Language in Web Development. Welcome to Poly Notes Hub, a leading destination for engineering notes for diploma and degree engineering students.
Author Name: Arun Paul.
What is HTML in Computer?
HTML (Hyper Text Markup Language) is a standardized system for tagging text files to create font, color, visual, and hyperlink effects on World Wide Web sites. It is the major language used to develop web pages and applications.
It is a markup language used to create and structure web content. It defines the structure, syntax, and layout of web publications using a sequence of elements known as tags. These elements include headlines, paragraphs, links, photos, and other multimedia. HTML is required for creating the foundation of web pages, which can then be styled with CSS (Cascading Style Sheets) and made interactive with JavaScript.
Why HTML is Important for Website Making?
Below we listed some important reasons why Hyper Text Markup Language is important for Website –
- It offers the basic structure of a webpage by organizing text into elements such as headings, paragraphs, lists, and tables.
- It uses tags to convey text, photos, links, videos, and other multimedia.
- It allows the development of hyperlinks, which are required for web navigation. These links connect various online pages and resources, producing an interconnected network known as the World Wide online.
- Search engines employ HTML tags to index and rank online sites.
- It serves as a foundation for various online technologies. CSS (Cascading Style Sheets) is used alongside HTML to style and layout pages, but JavaScript adds interactivity and dynamic content. Together, these technologies enable rich and responsive web experiences.
Try By Yourself
Here is a basic example of HTML code –
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is a paragraph of text on my webpage.</p>
<a href="https://www.example.com">Visit Example.com</a>
</body>
</html>
Explanation of the example –
- <!DOCTYPE html> specifies the document type.
- <html>, <head>, and <body>, are the structure tags and must be present in the code.
- <title>, is used to sets the tile of the web page.
- <h1>, is a heading tag.
- <p>, is a paragraph tag.
- <a>, is an anchor tag used to create hyperlinks.
- NOTE: Every tag has its Start Tag and End Tag, for example:
- <p>, is Start Tag of Paragraph Tag and </p>, is End Tag of Paragraph Tag.
- <body>, is Start Tag of Body Tag and </body>, is End Tag of Body Tag.
- The Start Tag is also called “Opening a Tag” and End Tag is also called “Ending a Tag“.
- Some tags do not have an End Tag, like <br>, used for break, <img>, used for image, <hr>, used for horizontal rule (line) for separating content, <link>, used for external resources like CSS.