top of page

Let's Learn Basics Of HTML.

  1. Let's start with basic HTML Structure:
      <!DOCTYPE html>
    <html>
      <head>
        <title>Page Title</title>
      </head>
      <body>
        <h1>Heading 1</h1>
        <p>Paragraph</p>
      </body>
    </html>

  2.   HTML Tags: HTML tags define the different elements of an HTML document. Here are some commonly used tags:

  3. <html>: The root element of an HTML document.

  4. <head>: Contains the metadata of the document, such as the title and stylesheets.

  5. <title>: Defines the title of the document.

  6. <body>: Contains the visible content of the document.

  7. <h1> to <h6>: Defines headings with different levels of importance.

  8. <p>: Defines a paragraph of text.

  9. <a>: Defines a hyperlink.

  10. <img>: Displays an image on the page

​

  1. HTML Attributes: HTML attributes provide additional information about an HTML element. Here are some commonly used attributes:

  • id: Defines a unique identifier for an element.

  • class: Defines a class name for an element.

  • href: Specifies the URL of the linked resource.

  • src: Specifies the URL of the image source.

​

  4.

  1. HTML Forms: HTML forms allow users to input data and submit it to a server. Here is an example form:

  2. <form action="/submit" method="POST">
      <label for="name">Name:</label>
      <input type="text" id="name" name="name" required>

  3.   <label for="email">Email:</label>
      <input type="email" id="email" name="email" required>

  4.   <button type="submit">Submit</button>
    </form>

​

   Can you create a simple webpage using HTML? 

​

​

​

© 2023 by Zahi Najmal. Powered and secured by Wix

bottom of page