Markup Language: Not a programming language, but a markup language is HTML. It is made up of tags that "mark up" content on a webpage according to specific guidelines.
Structure of an HTML Document:
A simple HTML document contains distinct tags that instruct the browser on how to understand the information and a well defined structure. The principal elements consist of:
DOCTYPE Declaration
The browser is informed that the page adheres to the HTML5 specification (the most recent iteration of HTML) by the declaration.
<!DOCTYPE html>
HTML Document Structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a simple HTML document.</p>
</body>
</html>
<html>: The root of an HTML document is the <html> element. It contains all other HTML elements contained within.
<head>: Metadata (information about the HTML content) such as the title, character set, and external resources (such CSS or JavaScript files) are contained in the <head> element.
<title>: describes the webpage title that appears in the browser tab.
0 Comments