Markup refers to the use of tags or codes added to a document to provide structure, formatting, or instructions for rendering. Markup languages are used to annotate text to specify how it should be displayed or processed by software.
Markup is commonly used in web development to create and format content for websites. HTML (HyperText Markup Language) is one of the most well-known markup languages used to create web pages. Other examples of markup languages include XML (eXtensible Markup Language) and Markdown.
Example (HTML):
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph of text.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</body>
</html>
In this HTML example, <html>
, <head>
, <title>
, <body>
, <h1>
, <p>
, <ul>
, and <li>
are all HTML tags used for structuring and formatting content.