HTML Tutorial



What is html?


What is HTML?

HTML (HyperText Markup Language) is the standard language used to create webpages. It structures content using a system of tags and attributes.

πŸ’‘ Note: HTML is not a programming language β€” it’s a markup language that describes the structure of web pages.

Basic Structure of an HTML Document

Every HTML document follows a specific structure, made up of essential elements:

  • <!DOCTYPE html> β€” Declares the document type.
  • <html> β€” Root element containing all page content.
  • <head> β€” Meta information (title, styles, scripts).
  • <body> β€” Content visible to the user.

Example: Basic HTML Document

<!DOCTYPE html>
<html>
  <head>
    <title>My First Webpage</title>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>Welcome to learning HTML.</p>
  </body>
</html>

HTML Tags

HTML uses tags enclosed in angle brackets to structure web content. Most tags come in pairs β€” an opening and a closing tag.

Tag Description
<h1> to <h6> Defines headings from largest (<h1>) to smallest (<h6>)
<p> Creates a paragraph
<a> Creates a hyperlink
<img> Embeds an image

Best Practices

  • Use proper indentation for readability.
  • Close all tags correctly.
  • Use semantic tags like <header>, <footer>, <section> for better structure.
βœ… Quick Tip: Start practicing HTML in a text editor like VS Code or online in tools like CodePen and JSFiddle.

🌟 Enjoyed Learning with Us?

Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!

Leave a Google Review