HTML for Web Development
HTML (HyperText Markup Language) is the standard markup language for creating web pages.
Example Code:
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a basic HTML page.</p>
</body>
</html>
Explanation:
- <!DOCTYPE html>: Declares the document type.
- <html>: Root element of the HTML page.
- <head>: Contains meta-information about the document.
- <title>: Sets the title of the page.
- <body>: Contains the content of the page.
- <h1>: A header tag.
- <p>: A paragraph tag.