In this module, we’ll focus on HTML, the foundation of every website. HTML (HyperText Markup Language) uses elements (tags) to define the structure and content of a webpage. By the end of this module, you’ll be able to create well-structured and meaningful webpages.
.html.HTML uses tags enclosed in angle brackets (< >). Tags often come in pairs:
<p></p>Example:
<p>This is a paragraph.</p>
Every HTML document has a standard structure:
<!DOCTYPE html> <!-- Specifies the document type -->
<html> <!-- Root element -->
<head> <!-- Contains metadata (not visible on the webpage) -->
<title>My Webpage</title> <!-- Sets the page title -->
</head>
<body> <!-- Contains visible content -->
<h1>Hello, World!</h1>
<p>Welcome to my first webpage!</p>
</body>
</html>