Skip to main content

Command Palette

Search for a command to run...

Understanding HTML Tags and Elements : Defined and Explained

Published
3 min read

What is HTML ?

HTML stands for Hyper Text Markup Language. It is standard language and use create beautiful and effective web pages. HTML is markup language mean it’s content provides structure and meaning. Web browser (like Chrome, Firefox) read to HTML code like text, images, links, tables, and form after that show user friendly page.

HTML is webpage skeleton. It decide where show heading, button, paragraph and images in web page.

Features of HTML :-

  1. Create web page structure.

  2. Support Hyperlinks.

  3. Support Media.

  4. Support Forms and Input Elements.

  5. Browser Friendly.

Structure of HTML :-

Why we use it ?

We are HTML use because it is basic language of making website or webpage. We are scroll who website on internet then all of website structure create using HTML. It tell browser where and how show text, image, link, video, form on website. Therefore HTML is foundation of web development. It is first step of making website.

why we use HTML : -

  1. Create website.

  2. Provide structure.

  3. Create link.

  4. Show images and videos.

  5. Make forms.

  6. Work in every browser.

  7. Base of Web Development.

What an HTML tag ?

HTML Tag is special keyword who write in <> angle bracket. It tell browser how to show the content in website. Each tag own work like <h1> is make heading, <p> is make paragraph, etc. all tag define fix work.

HTML mean instructor of browser.

Opening tag, Closing tag, and Content

Most of HTML element made contribute three parts.

  1. Opening tag :- It show where tag start.

  2. Content :- It consist who user display.

  3. Closing tag :- element ending.

What an HTML element means

HTML Element is complete unit or block of webpage. who describe of browser how show the content in webpages. An HTML element is made up of three parts.

Self-Closing (Void) elements

Self-closing element who are element which have not closing tag and content. This is only for write in one tag and it instruct the browser.

Block-level vs inline elements

Elements divided into two categories in HTML. There are two type Block-level element and Inline elements.

Block level elements start new line and capture complete available width. and inline elements start same line and capture width according to need.

Simple Real-life Example

Block element = Room (complete width)

Inline element = Chair (according to need)

Conclusion

HTML is most important used full language. Create beautiful, attractive and engaging web page using HTML language. It is Foundation of webpage. It provide structure of webpage and browser completely understand HTML language.