When we make a
website, of course we must master first the basics of HTML .
Without mastering it, then you will have difficulty in making a website. One of orders
HTML bases that are often used
is a tag. For those of you who are not familiar with tags in HTML, then
consider the following explanation.
Understanding HTML Tags
When we create a programming language so that it can appear in a web browser, we must "notify" this web browser with language that can be understood. For example, when you want to display a text must be made in large to small sizes or change the letters according to the commands given. Well, the right term to describe the command is said to be tagged.
Basically the tag is on
an HTML is written in pairs. The tag pair is named
opening tag and closing tag. One characteristic of this tag is
there are square brackets "<” dan “>". The easiest example is as
From the example above we can
explain that the above is an example to bring up the text "Heading 1". Symbol
" indicates the opening tag whose object is "p". Code "p" here
is a tag for a paragraph. While the last tag, which is "
this is a pair of opening tags or what we call closing tags.
These closing tags have something in common with the opening tag only behind the object added with a slash "/". If this closing tag is not written, then the web browser cannot read it and assume we have not finished giving an order. Therefore, this is very important. If we describe in our language, then the purpose of this tag is a web browser can show the Heading on the first page.
Example of an HTML Tag
Examples of HTML tags are very many and the number can be more than hundreds. But there are the main HTML tags that you need to know about. The main tags are as follows.
The first tag type is . This type of HTML tag will always be placed first when we start coding. the purpose of this tag is to determine the type of document to be created. Therefore, when you first create a website, do not forget to always make this tag first.
The next tag is
HTML itself. This tag is created for you who will make a page
HTML based. This can be different if you create a document with
another extension. For example, if you want to create a PHP document, then
we replace "" with . even that has differences
with HTML tags in general, For clarity, you should also learn codes
PHP and its functions .
In accordance with the meaning of
these words, namely the title. The purpose of the tag is the programmer makes
the title of the page that was created. This title will later become a
the main title of the website to be made. Therefore, you have to decide
the exact title for the website created.
This tag is very important in making websites. Without this tagthe website will be difficult to manage. Similar to a structure in humans, this tag is used to form a "body" on a website. With this tag, we can find out which parts are placed above, the middle, and also the bottom.
After the existence of the body in
the previous point, then we need to make "his head". This tag always
placed above or usually below . This tag
used for information at the beginning of the website. For example, like
title, opening image, and various other kinds of information.
When we make paragraphs
the long one, of course we need to fill in one blank line. If we use
"Enter" function when using the Word application, then in HTML, we must
using the tag
. The tag function
itself is indeed as
substitute enter when we type words in HTML. How to use it
It's easy enough, just write this tag at the end of a word or sentence. Even though you
continued writing continuously, but when seen in a web browser, said earlier
will be given space like a new paragraph.
That is the definition of HTML tags
and some examples that you need to understand. From the explanation above, we
can conclude that the tags in an html is a very part
important in making a website. Without HTML tags, the website does not
can be made according to what we have seen so far. if you often see
attractive appearance of a website, it is inseparable from
the role of HTML. Hopefully this article can make readers more knowledgeable.