Basic Of HTML

0

 The basic structure of an HTML document

The basic structure of an HTML document consists of the following components:

  1. <!DOCTYPE html> declaration: This declaration specifies the version of HTML being used in the document. For HTML5, this is the only doctype declaration required.

  2. <html> element: This element is the root element of an HTML document and contains all other elements.

  3. <head> element: This element contains information about the document that is not displayed in the browser, such as the document's title, meta information, and links to external resources.

  4. <title> element: This element specifies the title of the document, which is displayed in the browser's title bar.

  5. <body> element: This element contains the visible content of the document, including text, images, and other elements.

Here is an example of what a basic HTML document structure might look like:


In this example, the document contains a single heading element (<h1>) and a single paragraph element (<p>), both of which are displayed in the browser's content area. The document's title, "My HTML Document," is displayed in the browser's title bar.


Post a Comment

0Comments
Post a Comment (0)