WHAT IS HTML?
HTML is a markup language that is used to create web pages, it describes the web page structure. HTML sets the content of the browser and provides structure to the content appearing on a website such as the texts, images, links, videos etc.
WHY HTML
It is easy to implement.
It is supported by all browsers.
It can be integrated with other languages like CSS, JavaScript, etc.
It is most times the first language learned by developers.
It is used to create a website.
The good news is HTML is pretty straight-forward and quite easy to learn. By the end of going through this post, you should have a basic knowledge of what HTML entails. Here is what a basic HTML code structure looks like;
<!DOCTYPE html> declares the version of HTML and in this case, it is HTML 5.
<html> element is the root element of an HTML page.
<head> element contains metadata of the HTML page.
<title> specifies a title for the HTML page which is shown in the page's tab or title bar.
<body> element encloses all the document's content such as headings, paragraphs, divs, images, hyperlinks, tables, etc.
<h1> element defines a large heading
<p> is the HTML paragraph tag for displaying paragraphs.
Here is the result;
WHAT ARE HTML ELEMENTS?
HTML elements are defined by a start tag and an end tag, both of which have the same value with the content in-between the tags.
For example;
<h2> MY WEBPAGE </h2>
<p> This is a paragraph</p>
.h2{
background: blue;
}
Although, Some elements, such as <br>, <hr>, and
some others do not require closing tags since they are empty, and
there is no need for a closing tag for an empty element.
I hope you found this information useful.