free site statistics

HTML Lesson 01 – Coding with HTML

Published 4 years ago by LankaTricks
HTML Lesson 01 – Coding with HTML

This is the first HTML lesson of LankaTricks HTML tutorials. Here, Gives a simple introduction to html web development and the same basics of coding with HTML. That will be helpful for every web development beginner. Let us now turn to the lesson.

What is this HTML?

Do you think that many of the websites we visit on the Internet can be built using Word Processing software?

However, there are problems arise when establishing such websites on the Internet. Like you tried to open an article in MS Word with Notepad.

Due to these issues, the Internet required a standardized standard for articles that were linked to the Internet.

Then, It can then be read quickly by web browsers because of using a common method. The organization W3C is responsible for this.

The common standard language used for these purposes is HTML (Hyper Text Markup Language).

Another important thing is that this language is not a programming language but a markup language. As a result, these web pages are created using markup tags.

These tags simply tell the web browser what the content of the web page should look like. Although there are software we can use to create a document in HTML. But, I used Notepad for this tutorial. Because, when you code in Notepad, you have to write all the code manually, so your knowledge of HTML tags will be enhanced.

Below we will learn about some of the HTML tags properties.

  • An HTML tag is made up of a keyword rounded by these angle brackets <…>.
  • HTML tags are usually in pairs. Eg: < html > and < / html >
  • <…> for this type of tag we call the opening tag.
  • < / …> for this type of tag we call the closing tag.

Now you may think that why we have these HTML tags?

When designing HTML document, We must explain all of our parts shown to the reader’s web browser. This task can accomplish with HTML tags.

However, Most HTML tags on every web browser read the same way, but some tags may not.

I hope you have a little understanding of HTML tags now. When coding HTML, The usual way is to write the content . There are same occasion which can be change this way. We will talk about them in the right places, Now just remember it.

Basics to Know about Coding HTML

First, we need to tell the web browser to our written code is HTML. <html> tag is used for that purpose. When you open a tag you want to close it using the </html>.

<html>
  ........
  ........
</html>

Usually write HTML tags in simple letters. It’s standard. So, There is nothing wrong with using capital letters.

Everything we code in HTML should be written between the two tags of <html> and </html>.

HTML page can mainly split into two section. These are..

  • Head section
  • Body section

Often, we can see title only in head section. <title> and </title> tags use for the showing title. We can learn more about the other tags used in the head section in future lessons.

<html>
  <head>
     <title>My First Web Page</title>
  </head>
</html>

The body section is where we code the content of the web page.

<html>
  <head>
     <title>My First Web Page</title>
  </head>

  <body>
     <p>First Web page body paragraph.</p>
  </body>
</html>

This pair of <p> tags is used for making paragraph.

Now see how to save this coded file. Click File –> Save in Notepad. Then save as dialog box will look like this.

Change the Save as type property to All Files in save as dialog box. Then, add the file name where you want to add and put .html as file extension.

Now, click the Save button and save the file. then, The saved file will look like this for you.

Now open saved file by double clicking on it. Then, That HTML file open your web browser and it look like this.

Now you have successfully made the first attempt. Very easy, right?

Let’s meet again with a lesson.


– The contents we publish on this website regarding the professional and educational courses are extracted from various sources, such as newspaper advertisements, circulars, and websites. The right to this information belongs to the first owner of the information. If any alteration happens to this information, we don’t take the responsibility arising from such alteration. Instead, we do inform you as soon as possible regarding the updated information related to professional and educational courses. Also, we allow access you to gain essential knowledge related to competitive exams.

Related Posts

Maduwanwela Walawwa in Sri Lanka

Maduwanwela Walawwa in Sri Lanka

Published 9 months ago by LankaTricks

Maduwanwela Walawwa is a historical landmark in Sri Lanka. It is located in the Maduwanwela, Kolonna area between Embilipitiya and Suriyakanda in the Ratnapura District of Sabaragamuwa Province. This Walawwa is away approximately 207 km from Colombo. King Wimaladharmasuriya II (1687-1706 A.D.) gave the land of this Walawwa with a deed to the Maduwanwela Maha Mohottala...

Travel Destinations
Dharmacharya Exam Buddhist Social Philosophy Paper 2014

Dharmacharya Exam Buddhist Social Philosophy Paper 2014

Published 5 years ago by LankaTricks

  2014 Dharmacharya Exam – Buddhist Social Philosophy Paper Considering the Buddhist learning place in Sri Lanka, Daham Pasal is the best place to provide that knowledge to student. So, The vary impotent exam of Daham Pasal is dharmacharya exam and also this examination result prioritize the people to giving government job also. In This Post,…

Dharmacharya examE Thaksalawa
SLAS Exam Guide - Paripalana Sewa - Lesson 19

SLAS Exam Guide - Paripalana Sewa - Lesson 19

Published 6 years ago by LankaTricks

Most of people in Sri Lanka like to join government sector as a employee do a job in administrative positions. and There are many exams conducted by Department of examination in Sri Lanka. Among that, One of most impotent examination is the Sri Lanka Administrative Service Exam ( Paripalana Sewa Exam ). If anyone successfully…

SLAS ExamTutorials
Basics of Information and Communication Technology - Part 04

Basics of Information and Communication Technology - Part 04

Published 6 years ago by LankaTricks

Information and communication technology is vary impotent subjects in present and It will be more useful for future times. In this post  brings to you the first lesson of Ordinary level Information and communication technology subject. In this lesson you can basically learn about what is the computer and how it was make and also you…

O/L TutorialsTutorials
Advanced Level Chemistry - Exam Paper 2015

Advanced Level Chemistry - Exam Paper 2015

Published 5 years ago by LankaTricks

  Advanced Level Chemistry – Exam Paper 2015 Advanced Level Chemistry is o one of main subject student can follow under the science subject stream. In This Post, Lankatricks Website provides  you Advanced Level Chemistry – Exam Paper 2015 to study and get knowledge about what the structure and question asking pattern. Following you can…

A/L Pass PapersA/L TutorialsE Thaksalawa
Advanced Level Accounting Past Papers - A/L Accounting

Advanced Level Accounting Past Papers - A/L Accounting

Published 5 years ago by LankaTricks

Considering the Commerce Subject stream of Advanced Level exam in Sri Lanka, Accounting is the main subject that every student must follow. According to the Investopedia.com, “Accounting is the systematic and comprehensive recording of financial transactions pertaining to a business. Accounting also refers to the process of summarizing, analyzing and reporting these transactions to oversight…

A/L Pass PapersA/L Tutorials