kidolikid.paste.lol / html-introduction · 4 months ago·

The HyperText Markup Language or HTML is the standard markup language for Web pages. For example:

<!DOCTYPE html>
<html>
<head>
<title>Is Title</title>
</head>
<body>

<h1>Is Heading</h1>
<p>This part is paragraph.</p>

</body>
</html>

1. <!DOCTYPE html> defines that this document is an HTML5 document.
2. <html> element is the root element of an HTML page.
3. <head> element contains meta information about the HTML page.
4. <title> element specifies a title for the HTML page (browser's title bar or in the page's tab).
5. <body> element defines the document's body, a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, and more.
6. <h1> element defines a large heading.
7. <p> element defines a paragraph.

An HTML element is defined by a start tag, content, and an end tag. For example:

<h1>About Us</h1>