harian untung99play.xyz

untung99play.xyz: Learn HTML Basics for Beginners in Just 15 Minutes

Untung99 menawarkan beragam permainan yang menarik, termasuk slot online, poker, roulette, blackjack, dan taruhan olahraga langsung. Dengan koleksi permainan yang lengkap dan terus diperbarui, pemain memiliki banyak pilihan untuk menjaga kegembiraan mereka. Selain itu, Untung99 juga menyediakan bonus dan promosi menarik yang meningkatkan peluang kemenangan dan memberikan nilai tambah kepada pemain.

Berikut adalah artikel atau berita tentang Harian untung99play.xyz dengan judul untung99play.xyz: Learn HTML Basics for Beginners in Just 15 Minutes yang telah tayang di untung99play.xyz terimakasih telah menyimak. Bila ada masukan atau komplain mengenai artikel berikut silahkan hubungi email kami di [email protected], Terimakasih.

If you want to build a website, the first language that you need to learn is HTML.

In this article, we are going to go through the basics of HTML. At the end, we are going to build a basic website using only HTML.

Here’s a video you can watch if you want to supplement this article:

If you prefer video, you can watch it here

What Is HTML?

HTML, which stands for Hypertext Markup Language, is a pretty simple language. It consists of different elements which we use to structure a web page.

What is HTML?

What Are HTML Elements?

HTML elements

The element usually starts with an opening tag, which consists of the name of the element. It’s wrapped in opening and closing angle brackets. The opening tag indicates where the element begins.

Similar to the opening tag, the closing tag is also wrapped in opening and closing angle brackets. But it also includes a forward slash before the element’s name.

Everything inside the opening and closing tags is the content.

But not all elements follow this pattern. We call those that don’t empty elements. They only consist of a single tag or an opening tag that cannot have any content. These elements are typically used to insert or embed something in the document.

For example, the element is used to embed an image file, or the element is used to insert an input onto the page.

In the example above, the element only consists of one tag that does not have any content. This element is used to insert an image file from Unsplash in the document.

How to Nest HTML Elements

Elements can be placed inside other elements. This is called Nesting. In the example above, inside the element we have an element and an or unordered list element. And Similarly inside the element, there are 3

  • or list item elements.

    Basic nesting is quite straight-forward to understand. But when the page gets larger, nesting can become complicated.

    Therefore, before working with HTML, think about the layout structure you would like to have. You can draw it out on a piece of paper or in your mind. It will help a lot.

    What are HTML Attributes?

    Elements also have attributes, which contain extra information about the element that will not appear in the content.

    In the example above, the element has 2 attributes: src or source to specify the path of the image, and width to specify the width of the image in pixels.

    With this example, you can see the following characteristics of attributes:

    • There is a space between attributes and the element name
    • Attributes are added in the opening tag
    • Elements can have many attributes
    • Attributes usually have a name and a value: name=“value”

    But not every attribute has the same pattern. Some can exist without values, and we call them Boolean Attributes.

    In this example, if we want to disable the button, all we have to do is pass a disabled attribute without any values. This means that the presence of the attribute represents the true value, otherwise, the absence represents the false value.

    Common HTML elements

    There are in total more than 100 elements. But 90% of the time you will only use around 20 of the most common. I have put them into 5 groups:

    Section elements

    These elements are used to organize the content into different sections. They are usually self-explanatory, for example,

    usually represents a group of the introduction and navigation section, represents the section that contains navigation links, and so on.

    Text content

    These elements are used to organize content or text blocks. They are important to accessibility and SEO. They tell the browser the purpose or structure of the content.


    These elements can be used together to create forms that users can fill out and submit. Forms might be the trickiest part of HTML.

    Images and Links


    These elements are used to insert an image or create a hyperlink.



    These elements are used to add a break to the webpage.

    You can find all the elements on developer.mozilla.org. But for beginners, you just need to know the most common ones.

    Block-level vs inline HTML elements

    By default, an element can be either block-level or an inline element.

    Block-level elements are the elements that always start on a new line and take up the full width available.

    Inline elements are the elements that do not start on a new line and it only take up as much width as necessary.

    Block level vs. Inline HTML elements

    Two elements that represent block-level and inline elements, respectively, are and . In this example, you can see that the elements takes 3 lines, whereas the element only takes up 1 line.

    But the question is: how do we know which ones are block-level elements and which ones are inline elements? Well, unfortunately you need to remember them. The easiest way is to remember which are inline elements – and the rest are block elements.

    If we look back at the most common HTML elements, inline elements include: , , .

    This is a paragraph.

    The purpose of comments is to include notes in the code to explain your logic or simply to organize your code.

    HTML comments are wrapped in the special markers: and they are ignored in the browser.

    How to use HTML entities

    What if you want to show the text: the

    tag defines a paragraph.

    , but the browser interprets

    as an opening tag for a new element? In this case, we can use HTML entities like in the following example:


    tag defines a paragraph.


    define a paragraph.

    How to use emoji in HTML

    In the modern web, we can display emoji in HTML pretty easily, like this: 👻

    😀 Grinning Face.

    🎂 Birthday

    Common beginner mistakes in HTML

    Tags/Element names are cAse-inSensitive. This means that they can be written in lowercase or uppercase, but it is recommended that you write everything in lowercase: