HTML Is The Standard Markup Language For Web Pages
HTML Is The Standard Markup Language For Web Pages
HTML Is The Standard Markup Language For Web Pages
Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
What is HTML?
HTML is the standard markup language for creating Web pages.
</body>
</html>
Example Explained
The <!DOCTYPE html> declaration defines this document to be HTML5
The <html> element is the root element of an HTML page
The <head> element contains meta information about the document
The <title> element specifies a title for the document
The <body> element contains the visible page content
The <h1> element defines a large heading
The <p> element defines a paragraph
HTML Tags
HTML tags are element names surrounded by angle brackets:
The HTML element is everything from the start tag to the end tag:
<br>
HTML elements with no content are called empty elements. Empty elements do
not have an end tag, such as the <br> element (which indicates a line break).
</body>
</html>
Example Explained
The <html> element defines the whole document.
<html>
<body>
</body>
</html>
Inside the <body> element is two other HTML elements: <h1> and <p>.
<body>
</body>