An HTML page
is made up of a series of elements, which are represented by tags. These tags
are used to define the structure and content of the page.
Here is a
basic structure of an HTML page:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- page content goes here -->
</body>
</html>
The
<!DOCTYPE html> declaration at the top of the page specifies that the
page is written in HTML5.
The
<html> element encloses the entire HTML page.
The
<head> element contains information about the page, such as the title,
which is displayed in the browser's tab or window title bar.
The
<body> element contains the content of the page, such as text, images,
and links.
Elements can
be nested inside other elements, allowing you to create a hierarchy of tags to
structure the content of the page.
For example,
you can use heading tags (<h1>, <h2>, etc.) to create headings and
paragraphs tags (<p>) to create paragraphs of text. You can also use
lists (<ul> and <ol>) and tables (<table>) to organize
content in a clear and structured way.
0 Comments