It’s a pleasure to have you back on this tutorial where the art of web designing is explained to its minutest form. If you did the assignment I gave in web designing 1, you will be familiar with HTML tags and HTML elements. We defined HTML as a markup that is added into an HTML document to give more information about the content. An HTML tag is put in between brackets and needs a closing tag (e.g. <html> </html>) Notice that <html> is the opening tag while </html> is the closing tag. It is as simple as that, don’t think so abstract, as we go forward, we will be building on this foundational knowledge.
Now let’s consider HTML Elements: Elements are markup tags used to format some sections of a web page. An example of a HTML element is the <b> tag, used to bold the text displayed in the browser.<html> is used to tell your browser that the file is made up of HTML-coded data.</html> is used at the very end of the document to tell your browser that the HTML contents ends there.
<head> contains the first part of the document and is where the title of your browser page will be found. It can also contain the commands used to format the display of your browser. </head> is then used to end this section. This part will not be displayed in your browser.<title> will be used to label your website. </title> is hence used to indicate the end of that command.<body> defines all the content that will be displayed in your browser.
Assignment: What is the difference between html tags and html elements?