HTML: How Tags Turn Content Into a Web Page
HTML tells a browser what the parts of a web page mean: this is a heading, this is a paragraph, and this is a link. That structure helps both people and software make sense of the page.
The letters stand for Hypertext Markup Language. Hypertext is text with links; markup means adding labels that describe the content's role, as MDN's introduction to HTML explains.
Read three lines of a page
Here's a small piece of HTML for an imaginary library website:
<h2>Library hours</h2>
<p>We're open until 6 p.m. on weekdays.</p>
<a href="/contact/">Contact the library</a>
The browser uses those instructions to display a section heading, a paragraph, and a link. It doesn't normally show the angle-bracket labels as part of the page's visible text.
Those labels are called tags. An opening tag such as <p> begins an element, and the closing tag </p> ends it; the element includes the tags and the content between them.
- Run a test server or a home lab without giving up desk space.
- Start right away with 16GB of memory and a 500GB SSD already inside.
- Drive two 4K screens when it doubles as an everyday desktop.
The h2 element identifies a second-level heading. The a element creates a link when it has a destination, supplied here by href="/contact/".
That extra setting is an attribute, information attached to an element. Here it tells the browser to use the /contact/ path on the same website.
Not every element has a closing tag: an img element, which embeds an image, doesn't. MDN's HTML syntax guide explains the distinction and how tags fit together.
Structure is different from appearance
A heading's role isn't determined only by how big the letters look. Marking it as a heading tells other software where a section begins, even if the site's design makes the text small.
That matters to a screen reader, software that presents screen content as speech or braille. Proper headings can let its user navigate between sections instead of listening through the entire page, a benefit described in the World Wide Web Consortium's headings tutorial.
Websites commonly combine HTML with CSS, Cascading Style Sheets, which controls presentation such as colors and layout. JavaScript, a programming language, can add behavior such as updating a result without loading a whole new page.
HTML can still provide useful content and built-in controls on its own. The three technologies have different jobs; needing a paragraph doesn't mean needing a custom program to draw one.
How a Web Page Gets to Your Screen
When content gets mistaken for instructions
A comment on a website should be treated as something a visitor wrote. If the site carelessly inserts that comment as executable page content, an attacker may be able to make the browser run instructions instead of displaying ordinary text.
That problem is called cross-site scripting, often shortened to XSS. It can let attacker-controlled code act inside a page the reader trusts.
OWASP, a software-security nonprofit, recommends protections suited to how the content is used. These include displaying user input as text and, when users are allowed to submit HTML, filtering it with maintained software designed for that purpose.
For a site builder, the practical boundary is between page instructions and user-supplied text. Keeping those roles separate lets readers post a comment without also handing its author control of the page.
Web Servers: What Happens After the Browser Asks

HTTP: The Requests and Replies That Make the Web Work

Cross-Site Scripting: When a Webpage Treats Text as Instructions

QUOTE:
"Amateurs hack systems, professionals hack people."
