To display a website content is very simple. Firstly, we have to understand that there are a number of elements (or tags) in HTML, i.e. used for defining or describing the website contents.
HTML document always starts with <html> element, and end with </html>. Let us begin writing one simple message on the browser using HTML. Open your notepad and write the following:
<html>
<head><title>My First Page!</title></head>
<body>
<p>Welcome to my page!</p>
</body>
</html>
The HTML document is structured in two section, head and body where each section is represented with <head>…</head> and <body>…</body>. The contents of the website should be enclosed in the body section. To write a text, we use paragraph element, which is represented by <p>… </p>.
Close and save your file as “anyname.html”. Then double click on the file and you will see your message is displayed on the browser.