my first page!

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.  

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.