HTML101 - What is HTML?
And so it begins, my very first article on Frontend Development.
In this article, I will begin by discussing what HTML is. It is important to note that this article is based on the assumption that:
Now that you're back, permit me to address you all as Senior Devs already, and let us continue.
HTML is short for HyperText Markup Language and it is the code that developers use to structure a web page and its content. It is a standard practice to have web content structured within a set of headings, paragraphs, data tables, images, numbered or bulleted points, etc. Basically, HTML is used by developers to inject and structure the content of a web page.
The HTML code is written in a document having the .html extension. It consists of a series of what we call HTML Elements which are used to enclose different parts of the web page's content to make them appear or act in a certain way. These elements can make a text or image hyperlink appear different, can italicize words, can make fonts bigger or smaller, and so on.
HTML ELEMENT ANATOMY
So how does the typical HTML element look? An HTML element will always come in the format: <tagname>***content***</tagname>.
Have a look at the anatomy of a sample HTML element below:
This is a typical HTML Element used to inject a paragraph into a web page and as we can see, it consists of an opening tag, the content, and a closing tag. Inside the opening and closing tags, we have the tagname.
Recommended by LinkedIn
There are many HTML elements that can be used to create a web page. Here are a few examples:
There are some elements though, that do not have closing tags and are written as such in the HTML code. These elements are referred to as self-closing elements, and examples of such elements are:
Alright Senior Devs!
This is where I will be stopping for today and I hope you enjoyed the article. In case you have any questions, you'd like to ask, I am just a DM away and I will definitely get back to you and answer your questions.
So until I come your way again next week, do have a blessed Monday and a productive week ahead. See you in a bit!
Very clear and easy to follow - many thanks!