In this tutorial, we will go over the basics of HTML. These examples will improve your knowledge on the markup language that is used to build every website. HTML is the foundation of every modern website. Every web developer must have an expert understanding of this basic language.
If you have any questions, feel free to reach out!
What is HTML?
HTML is the standard markup language for creating Web pages. The language is used in every single website on the internet. HTML stands for Hyper Text Markup Language and it describes the structure of Web pages. Think of HTML as the structure of a house. It is the bones of a website. HTML elements are the building blocks of HTML pages. HTML elements are represented by tag elements such as headings, paragraphs and tables. Web browsers don’t show the HTML tags, but instead use them to render the content of the page. See below for your first example of some basic HTML markup.
<h1>My First Heading</h1>
<p>My first paragraph.</p>
The above example demonstrates a very basic use of HTML which renders a heading and paragraph. Let’s go a bit more in depth to exatcly what is going on in the example.
- The <!DOCTYPE html> declaration defines this document to be HTML5
- The <html> element is the root element of an HTML page
- The <head> element contains meta information about the document
- The <title> element specifies a title for the document
- The <body> element contains the visible page content
- The <h1> element defines a large heading
- The <p> element defines a paragraph
What is an HTML tag?
HTML tags contain element names surrounded by angle brackets with content inside the opening and closing tags.
<tagname>Some content goes here</tagname>
HTML tags typically come in pairs like:
<h1> and </h1>
The first HTML tag element in a pair is the “Start Tag”, the second tag is the “End Tag”. The “End Tag” is similar to the “Start Tag”, but with a forward slash added before the tag name. This signifies a closed tag. Ready to go over a bit more? Learn how to build your own website with basic html and css.