My First Web Page

DHANANJAY KUMARDHANANJAY KUMAR
2 min read

Table of contents

In this blog, we will learn how to write or develop 1st web page. We will see the all basic tag which is required to develop 1st web page.

These are some basic HTML (Hypertext Markup Language) tag which is used to develop the webpage.

  1. Document type - Before writing actual code for a web page, we should first define document type by using the below code.

    Syntax: <! DOCTYPE type>

  2. HTML tags - This is the main tag of HTML or Webpage. it starts after the DOCTYPE tag and ends at the bottom of the HTML document.

    Syntax: <html> ... </html>

  3. Head Tag - In this tag we define the default language for the webpage, metadata, and page title and also we add an external file link for CSS (Cascading Style Sheet), Java Script, and any others. Sometimes we also write a javascript source file in the body tag just before ending the body tag.

    Syntax: <head> ...</head>

    The following tag is written under the heading tag.

    1. Meta Tag: Meta tag is used to define a character set, viewport and other metadata information.

    2. Title Tag: In this tag, we write a Title for the webpage.

  4. Body Tag: In this tag, we write the main content of a webpage.

<!DOCTYPE html>
<html lang="en">
<!-- Heading Tag Start Here -->
<head>
    <meta charset="UTF-8">
    <title>My First WebPage</title>
</head> <!-- Heading Tag Closed Here -->

<!-- Body Part or Main content Start here-->
<body>
    <!-- Main content goes here-->
    <h1>Welcome to my first Web Page. This is written in Heading 1. </h1>
</body>
<!-- Body Part or Main content Start here-->
</html>
0
Subscribe to my newsletter

Read articles from DHANANJAY KUMAR directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

DHANANJAY KUMAR
DHANANJAY KUMAR