Skip to main content

Posts

Showing posts with the label HTML Document and Web Page

HTML Document and Web Page | DOCTYPE html - lang and meta charset - meta name - title - body of HTML Document and Web Page

HTML Document and Web Page: An HTML (Hypertext Markup Language) document is a text document that contains markup tags, which define the structure and content of a web page. HTML is the standard markup language for creating web pages and web applications.  HTML documents are plain text files that are saved with the ".html" or ".htm" file extension. Here is a basic example of an HTML document: html <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>My First Web Page</title> </head> <body>     <h1>Hello, World!</h1>          <p>This is a paragraph of text in my web page.</p> </body> </html> Let's break down the components of this HTML document: 1. <!DOCTYPE html>: This declaration defines the document type and version...