--- tags: - notes - web author: TrudeEH draft: false showToc: true title: HTML --- *HTML* is a markup language: The foundation of every website, as it structures content and provides information such as text, images and other media to the browser. ## Hello World *HTML* is not a programming language, only formatting to write a document as. The following 'code' is valid *HTML.* ```HTML Hello, world. ``` A more complete solution, however, would be to define a structure for the document. ```HTML
Hello, world.
``` *HTML* uses tags to define a hierarchy. The `` tag defines metadata for the site, such as the page's title, encoding types, and any external resources. The `` tag is the content itself: any paragraphs (``), images, forms and scripts, to name a few. > When reading *HTML*, the browser applies a set of default styles to make it more readable. *HTML* is **not** the place to style content, however. For example, a common mistake is to use headings based on their size or font weight, instead of their meaning. Everything can all be styled using *CSS* later, so try to ignore the design when writing *HTML*, and focus on the content instead. > Not all tags hold content, but for those that do, the end of that content is defined with a closing tag: ``. ## Basic Tags |Tag|Description| |---|---| |``|Document type.| |``|Defines an HTML document.| |`
`|Contains metadata/information for the page.| |``|Paragraph.|
|`
`|Inserts a single line break.|
|`
`|Defines a section that is quoted from another source.|
|``|Defines the title of a work.|
|``|Block of code.|
|``|Defines text that has been deleted from a document.|
|``|Specifies a term that is going to be defined within the content.|
|``|Emphasized text.|
|``|Defines a part of text in an alternate voice or mood.|
|``|Defines a text that has been inserted into a document.|
|``|Keyboard input.|
|``|Marked/highlighted text.|
|``|Defines a scalar measurement within a known range (a gauge).|
|``|Preformatted text.|
|`