Hey everyone, If you are passionate about webpages and websites then it's time to discover how to make one. The skeleton of all web applications or web pages is HTML. Now, Let's look into the basics of HTML.
Html is a widely used language on the web and we can create static webpages using HTML only. Then What is HTML? It is a markup language rather than a programming language using which we can tell the browser how to arrange or display the content on the web application. After knowing all these then arises a question of How to write Html code? The answer is very simple, Html has its structure, learning which anyone can write their Html code.
Structure of HTML:
<!DOCTYPE>
<html>
<head>
<title>Web page title</title>
</head>
<body>
<!content to be displayed>
</body>
</html>
Description of HTML :
<!DOCTYPE>: It defines the browser about the version of Html. The current version is HTML5.
<html>: It defines the browser that it is html document. Text between <html> tag describes the web document.
<head> : It is first element inside the <html> element. it describes the metadata (information about web document) and it should be closed before the <body>.
<title>: As the name suggests it is used to add the title of that webpage which appears at the top of the browser window.
<body>: Text between the body tag is the content of the web page visible to the end user. Contains the main content of the web document.
Note: It is recommended to write all tags in lowercase for consistency and readability.
Sharing is caring!!!!!