DEV Community

Payilagam
Payilagam

Posted on

Introduction to HTML:

HTML (HyperText Markup Language) is the standard markup language used to create and structure web pages.

It defines the layout of a webpage using elements and tags[TBD], allowing for the display of text, images, links, and multimedia content.

As the foundation of nearly all websites, HTML is used in over 95% of all web pages today, making it an essential part of modern web development.

What about Remaining 5%:

  1. Non-traditional web content such as:
  2. PDFs opened directly in browsers
  3. Browser-based games using canvas/WebGL
  4. Embedded systems or kiosk interfaces
  5. Raw XML or plain-text responses
  6. Temporary or broken pages where no valid HTML is served.
  7. Experimental technologies or closed environments.

[From chatgpt]

All HTML documents must start with a document type declaration: <!DOCTYPE html>. [To Be Discussed] [TBD]

The HTML document itself begins with and ends with .

The visible part of the HTML document[TBD] is between

and .
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>
Enter fullscreen mode Exit fullscreen mode

Sample HTML Code:

<!doctype html>
<html lang="en-US">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>My test page</title>
  </head>
  <body>
    <img src="" alt="My test image" />
  </body>
</html>
Enter fullscreen mode Exit fullscreen mode

TBD:
, ,
,
References:
https://www.w3schools.com/html/html_basic.asp
https://www.geeksforgeeks.org/html/html-basics/

Top comments (0)