Why html is Called Markup Language?

Why html is Called Markup Language

HTML (Hypertext Markup Language) is called a markup language because it uses markup tags to define the structure and presentation of content on web pages. These tags, also known as elements, are used to mark or annotate specific parts of the content to give it meaning and structure.

The term "markup" refers to the process of marking up or annotating content with these tags. In HTML, tags are placed within angle brackets (< and >) and surround various elements of a web page, such as headings, paragraphs, images, links, tables, and more. The tags define the purpose and structure of these elements.

For example, consider the following HTML code:

html

Copy code

<h1>Welcome to my website!</h1>

<p>This is a paragraph of text.</p>

In this code snippet, the <h1> and <p> tags are used to mark up the heading and paragraph elements, respectively. They provide information to the web browser about how these elements should be structured and displayed.  

HTML is referred to as a markup language because it focuses on marking up content rather than directly specifying its visual appearance. The actual presentation and styling of HTML elements are typically controlled using CSS (Cascading Style Sheets). By separating the content from its presentation, HTML allows for greater flexibility and consistency in the way web pages are displayed across different devices and platforms. To practice html coading use online html compiler on Tutorials Freak.

Also read: How to know if a data model is performing well or not?

Post a Comment

Previous Post Next Post