--- title: Basic HTML --- ## Basic HTML The basic structure of HTML always starts with a document type declaration: `` You will need to add the `` tag after the document type and close it with a `` tag. This will be your actual HTML document. The first element you will insert in your HTML will be the `
` tag that will contain all metadata from the website such as its title, styles, links and other elements. This element needs to be closed with a `` tag. The visible part of your HTML lies within the `` tag which will be inside the `` tag, and will also need to be closed with a `` tag. Below you can see the structure of a basic HTML file: ## Basic Page Structure ```html ``` ### Sample HTML Program ```htmlThis is a paragraph.
``` ### Explanation - `` - This is called a declaration, which lets the filereader know which version of HTML running. In this case, it will automatically run HTML5. - `` - lets the filereader know where the HTML code starts. It is closed with `` located at or near the end of a document. - `` - where you put metadata like `title`, `author`, `keywords`, and `meta` that help the browser and search engines. None of the elements written here will be visible once the code gets read - `` - where the display elements are added to the page, such as `` or `` elements. ## HTML Heading Elements HTML heading elements are declared with the `