HTML Basic Structure


In this tutorial, we’ll dive into the core of every webpage – its structure. Think of this as getting familiar with the skeleton that holds up your content, making sure everything is in the right place.

Here’s What You Need to Learn:

  1. The <!DOCTYPE> Declaration: Imagine this as the intro that tells browsers what language your webpage speaks. It ensures your webpage is understood and displayed correctly.
  2. The <html> Element: Consider this as the home for your content. Everything you create will live inside this element, neatly organized.
  3. The <head> Section: Think of this as your web page’s personal assistant. It handles important details like the title of your page, which is what shows up in the browser’s tab.
  4. The <body> Section: Picture this as the main event – where your content comes to life. This is where text, images, videos, and all the exciting stuff go.

Example:

<!DOCTYPE html>
<html>
<head>
    <title>Hello World Page</title>
</head>
<body>
    <h1>Hello, World!</h1>
    <p>Welcome to the exciting world of web development.</p>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *