Html documents are defined by Html elements.The page heading texts, the paragraph texts, the images, and the navigation links are all elements of the web page. A single page can contain hundreds or thousands of elements. Every Html page should have a bare minimum of four critical elements: the html, head, title, and body elements. An element consists of three essential pieces: an opening tag, the content, and a closing tag. Some Html elements might display correctly even if you forget the end tag. But don't forget the end tag, cause Many Html elements will produce unexpected results and/or errors if you forget the end tag. Html elements with no content are called empty elements.
There are many different documents on the web, and a browser can only display an Html page 100% correctly if it knows the Html type and version used. Before an opening <html> tag, an XHTML document can contain the optional XML declaration, and it should always contain a DOCTYPE declaration indicating which version of XHTML it uses.
"Html tags" and "Html elements" are often used to describe the same thing. <html> is the element that begins and ends each and every web page. Its describe documents as Html document andhold each web element nicely in position and serves the role of book cover.
The <title> element adds a title to a web page. Web page titles are displayed at the top of any browser window or at the top of browser tabs. This element is a child of the <head> element.
The <body> element appears after the <head> element and contains the part of the Web page that actually see in the main browser window, which contains the visual elements like headings, paragraphs, pictures, tables etc.
<title> My first page </title>
<h1> This is my first heading </h1>
<p> This is my first paragraph. </p>