---
title: "Discussion on \"Html Basics---1\" | Hashnode"
description: "Discussion on \"Html Basics---1\". Inline vs block element\nthere are two types of elements inline and block. Inline are those which occupy only the space needed by them.\nEx: <a>,<em>,<textarea>,etc.\nwhereas block elements occupy the whole block.\nEx:<hr>,<p>,<div>,etc.\nAdding images, a..."
url: "https://hashnode.com/posts/html-basics-1/63e461f33079859fdddd9d57"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Html Basics---1](https://prateekpathak.hashnode.dev/html-basics-1?utm_source=hashnode&utm_medium=feed)

Inline vs block element there are two types of elements inline and block. Inline are those which occupy only the space needed by them. Ex: <a>,<em>,<textarea>,etc. whereas block elements occupy the whole block. Ex:<hr>,<p>,<div>,etc. Adding images, a...

Feb 9, 2023 · 1 min read · prateekpathak.hashnode.dev  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#htmlbasics](https://hashnode.com/tag/htmlbasics)

## Written by

[Prateek Pathak](https://hashnode.com/@prateekpathak)

@prateekpathak

  
[View profile](https://hashnode.com/@prateekpathak)

i am a learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
