HTML

Definition

HTML (Hypertext Markup Language) is the standard markup language used to create and design documents on the World Wide Web. It structures web content by denoting elements such as headings, paragraphs, links, and images, which are interpreted by web browsers to render the visual and interactive aspects of a webpage. HTML is foundational to web development and works in conjunction with CSS and JavaScript to build comprehensive web applications.

Secure Settings Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://trusted.cdn.com;">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Secure Web Page</title>
</head>
<body>
    <h1>Welcome to a Secure Page</h1>
    <p>This page implements a Content Security Policy to mitigate XSS attacks.</p>
</body>
</html>

Insecure Settings Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Insecure Web Page</title>
</head>
<body>
    <h1>Welcome to an Insecure Page</h1>
    <p>This page does not implement a Content Security Policy, leaving it vulnerable to XSS attacks.</p>
    <script src="http://untrusted-source.com/malicious.js"></script>
</body>
</html>