Skip to main content

Building Blocks of HTML

HTML is necessary for creating any webpage that you find on the internet. It presents text, images, links, forms and similar items using tags in a special system. For either beginners or those who plan to become web developers, it's important to learn how HTML forms the base of web pages.

The most important components of an HTML document are:

  • Tags
  • Attributes
  • Elements

It's important to understand how the two are joined to affect a webpage's design and content.

1) HTML Tags

Tags make HTML possible. They set out the way content should behave or look when displayed on the internet. Most of the time, the tags used in HTML pair a start tag and an end tag.

Syntax

  1. <tagname>Content goes here</tagname>  

The tag at the start of a content section, such as <p>, marks the beginning of its layout or purpose. This tag indicates the ending of a paragraph: </p>. What's inside the tags is the content that gets altered.

Some tags, though, are self-closing or do not need content-they have functions, even without any content inside. These are tags, for example, <br> for new lines and <img> for photos.

Comments

Popular posts from this blog

HyperText Markup Language

HTML stands for HyperText Markup Language . It is used to structure the content on the web by using various elements (commonly known as tags). These HTML elements define the different sections of a web page, such as headings, paragraphs, links to other webpages, listings, images, tables, etc. These elements tell the browser about the content and formatting to display. HTML is HyperText + Markup Language. Where, HyperText  refers to the way in which Web pages (HTML documents) are linked together. Thus, the link available on a webpage is called "HyperText". Markup Language , which means you use HTML to simply "mark up" a text document with tags that tell a Web browser how to structure it to display. What is an HTML Element? < tag_name > content </ tag_name > < h1 > It is top-level heading </ h1 > <h1>  is the start tag. " It is top-level heading " is the content, which is placed inside the start and end tags. </h1>  is th...