Notification texts go here Contact Us Click here

Our First HTML Website

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

*  Introduction to HTML

HTML (HyperText Markup Language)

I. HTML is the standard markup language used to create web pages.

 II.  It describes the structure of a webpage and consists of a series of elements that tell the browser how to display content.

* Basic Structure of an HTML Document

A simple HTML document has a basic structure consisting of elements that define different parts of the webpage.

 Here is an example of a basic HTML document:


<!DOCTYPE html>
<html>
<head>
    <title>My First HTML Page</title>
</head>
<body>
    <h1>Hello, World!</h1>
    <p>This is a paragraph of text.</p>
    <a href="https://visualstudiocode8858.blogspot.com/">Tech Coding</a>
</body>
</html>

* OUTPUT :

Hello, World!

This is a paragraph of text.

This is a link


* Explanation of the Elements

  1. <!DOCTYPE html>: This declaration defines the document type and version of HTML. It helps browsers to render the page correctly.
  2. <html>: This element is the root of an HTML document. It contains all other elements.
  3. <head>: This section contains meta-information about the document, such as its title and links to scripts and stylesheets.
  4. <title>: This element defines the title of the document, which appears in the browser's title bar or tab.
  5. <body>: This section contains the content of the document that is displayed in the browser.
  6. <h1>: This is a heading element. <h1> is the highest level heading, and <h6> is the lowest.
  7. <p>: This element defines a paragraph.
  8. <a>: This element defines a hyperlink, which links to another document or resource. The href attribute specifies the URL of the link.

* Common HTML Elements

  • Headings: <h1> to <h6> for different levels of headings.
  • Paragraphs: <p> for blocks of text.
  • Links: <a> for hyperlinks.
  • Images: <img> for embedding images.
  • Lists: <ul> for unordered lists, <ol> for ordered lists, and <li> for list items.
  • Tables: <table>, <tr>, <th>, and <td> for creating tables.
  • Forms: <form>, <input>, <textarea>, <button>, and other form elements.

* Example of a More Detailed HTML Document 
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>My First HTML Page</title>
  5. <meta charset="UTF-8">
  6. <meta name="description" content="A brief introduction to HTML">
  7. <meta name="keywords" content="HTML, web development, beginner">
  8. <meta name="author" content="Your Name">
  9. <link rel="stylesheet" type="text/css" href="styles.css">
  10. </head>
  11. <body>
  12. <header>
  13. <h1>Welcome to Tech Coding</h1>
  14. <nav>
  15. <ul>
  16. <li><a href="#home">Home</a></li>
  17. <li><a href="#about">About</a></li>
  18. <li><a href="#contact">Contact</a></li>
  19. </ul>
  20. </nav>
  21. </header>
  22. <main>
  23. <section id="home">
  24. <h2>Home</h2>
  25. <p>This is the home section.</p>
  26. </section>
  27. <section id="about">
  28. <h2>About</h2>
  29. <p>This is the about section.</p>
  30. </section>
  31. <section id="contact">
  32. <h2>Contact</h2>
  33. <p>This is the contact section.</p>
  34. </section>
  35. </main>
  36. <footer>
  37. <p2024 Your Name. All rights reserved.</p>
  38. </footer>
  39. </body>
  40. </html>

* OUTPUT

 Welcome to Tech Coding

Home

This is the home section.

About

This is the about section.

Contact

This is the contact section.

© 2024 Your Name. All rights reserved. 

This document includes additional elements such as header, nav, main, section, and footer to create a more structured and semantic webpage.

View for More ...

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.