What is the HTML page structure? Explain with example
A basic HTML page structure mainly consists of 3 HTML tags, <html>, <head>, <body> and <!DOCTYPE html> declaration.
A standard HTML page contains <!DOCTYPE html> in the begining. Then <html> tag starts. HTML Page title, style and javascript is included inside the <head> tag. And all main and visible page content is written inside <body> tag.
HTML Page Structure Example
<!DOCTYPE html>
<html>
<head>
<title>This is a sample title</title>
</head>
<body>
This is sample page content
</body>
</html>
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |