HTML Lesson 01 – Coding with HTML

Published 1 weeks ago by Sinlix
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.


Tagged:

Related Posts

SLAS Exam Guide Tutorial - Lesson 01

SLAS Exam Guide Tutorial - Lesson 01

Published 1 weeks ago by LankaTricks

This is the SLAS (Sri Lanka Administrative Service) Exam tutorials which were published on this Dinamini Sri Lankan news paper. There are thousands of people enter in to Sri Lanka Administrative service by referring these tutorials.

SLAS ExamTutorials
What is Banking Law and Banking

What is Banking Law and Banking

Published 1 weeks ago by LankaTricks

In this article give you same best introduction about “What is Banking Law and Banking” and related concepts. Before knowing about banking law should know that what the mean of law and what the mean of bank. It can be help to understand the banking law correctly.

Tutorials
Basic Introduction to Insurance and Principles of Insurance

Basic Introduction to Insurance and Principles of Insurance

Published 1 weeks ago by LankaTricks

When we are going to learn about Insurance, we can identify various types of concepts related to insurance. Among that, the term “Risk” is a very basic, and the most important concept we must learn before learning about insurance because almost all the times insurance are dealing with this risks...

Tutorials
General Knowledge - Part 1

General Knowledge - Part 1

Published 1 weeks ago by LankaTricks

General knowledge - Part 1 consists of 30 questions with answers that are related to various topics, including geography, history, civics, innovations, intelligence, arts, and science. These help to enhance your general knowledge and develop your intellectual abilities...

General Knowledge - Part 2

General Knowledge - Part 2

Published 1 weeks ago by LankaTricks

General knowledge - Part 2 consists of 30 questions with answers that are related to various topics, including geography, history, civics, innovations, intelligence, arts, sports, and science. These help to enhance your general knowledge and develop your intellectual abilities.

General Knowledge - Part 3

General Knowledge - Part 3

Published 1 weeks ago by LankaTricks

General knowledge - Part 3 consists of 30 questions with answers that are related to various topics, including geography, history, civics, innovations, intelligence, arts, sports, and science. These help to enhance your general knowledge and develop your intellectual abilities.

General Knowledge - Part 4

General Knowledge - Part 4

Published 1 weeks ago by LankaTricks

General knowledge - Part 4 consists of 30 questions with answers that are related to details of Sri Lanka. These help to enhance your general knowledge and develop your intellectual abilities.