What is HTML
What is HTML
● Explanation:
○ <!DOCTYPE html> tells the browser that this is an HTML5 file.
○ <html> starts the document.
○ <head> contains information like the title, which appears on the browser tab.
○ <body> contains what you see on the webpage, such as headings and
paragraphs.
○ <h1> is a heading (a big title).
○ <p> is a paragraph for regular text.
1. Open Notepad
● Click the Start menu.
● Type Notepad and click on the app to open it.
html
Copy
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>Welcome to my webpage!</p>
</body>
</html>
● Explanation:
○ <!DOCTYPE html> tells the browser that you're using HTML5.
○ <html> is the container for all your webpage content.
○ <head> contains meta-information, like the title of your page.
○ <body> contains what you see on the webpage, like headings and paragraphs.