Introduction

HTML is a language used by web developers to create websites. It typically is used alongside CSS, with HTML supplying the main body of information and CSS styling said information.

HTML is one of the most basic coding languages out there. It is a great starting point for people learning to code and yet can still be quite useful despite it's simplicity.

Elements

An element is a piece of a webpage. It typically consists of an opening tag, some content and a closing tag. The opening tag will provide the name of the element and thus define the content. The content will make up the main part of the element and then the closing tag will signal an end to the element.

You can also put an element inside of another element. This is called nesting. To do this, simply wrap whatever part of the element you want nested in a new tag, just remember to close it properly within the element you add it to.

Another thing to be aware of is empty elements. These elements contain no closing tag and all of their content is within the opening tag. These can also be referred to as self-closing elements.

Here are some of the essential elements that you will likely have within your html code:

Attributes

Attributes can be used in several ways to add additional information to an element without adding it to the actual content. They typically take the form of name="value" where the name identifies the attribute and the value defines what the attribute is or does.

Attributes are an extremely useful tool that allows us to customize our elements to fit our needs.

Images

Images are another important part of the web. With the img element we can add images to our website from other places around the internet. It is typically a good idea to add a description to your image using the alt attribute as this will help make the image more accessible for people who are visually impaired or if something causes the image not to display.

Using this code we can use and share images from all over the world wide web!