HTML Basics (1)
HTML Basics (1)
2. HTML Documents
html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Welcome to HTML</h1>
</body>
</html>
Explanation:
4. <title> – Defines the title of the webpage (appears in the browser tab).
Markup tags are special keywords enclosed in angle brackets (< >) that
define elements on a webpage.
Most HTML tags come in pairs (opening tag and closing tag), while some
are self-closing.
html
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Smaller Subheading</h3>
Paragraphs (<p>)
html
The <br> tag inserts a line break, moving text to a new line.
html
7. HTML Tags
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message"></textarea><br><br>