Swapna Kumar Panda ๎จ€ Profile picture
Mar 10 โ€ข 18 tweets โ€ข 3 min read
๐ŸŸฆ All inline & block-level elements in HTML / CSS

Check inside the ๐Ÿงต for

โœง Interesting details about inline & block-level
โœง Link to high resolution image

โ‡ฉ HTML elements can be categorized as either "block-level
๐Ÿ“‹ Table of Contents

โžŠ Introduction
โž‹ inline-level
โžŒ block-level
โž Changing Element Level
โžŽ List of inline-level elements
โž List of block-level elements
โž Link to High Resolution Image
๐Ÿšฅ Disclaimer

โ‘ I have compiled these information with all sincerity. But in case you find any omissions or, wrong representations, ๐Ÿ’ฌ me.

โ’ If you have any suggestions or, feedbacks, share those with me. I am eager to hear from you.
โžŠ Introduction

โ‘ HTML elements can be categorised as either "block-level" elements or "inline-level" elements.

โ’ Since this is a presentational characteristic, it is now-a-days specified by CSS in the Flow Layout.
โž‹ inline-level

โ‘ An inline element does not start on a new line and only takes up as much width as necessary.

โ’ Generally, inline elements may contain only data and other inline elements.

โ‘ inline elements can't contain block elements inside.
โžŒ block-level

โ‘ A block-level element always starts on a new line.

โ’ It takes up the full width available (stretches out to the left and right as far as it can).

โ‘ It may contain inline elements and (sometimes) other block-level elements.
โž Changing Element Level

โ‘ You can change the visual presentation of an element using the CSS display property.

โ’ By changing the value of display from "inline" to "block", you can tell the browser to render the inline element in a block box, and vice versa.
โ‘ However, doing this will not change the category and the content model of the element.

โ’ It means by changing the value of display from "inline" to "block" won't still allow you to put block-level elements inside it.
โžŽ List of inline-level elements

โ a
โ abbr
โ acronym
โ audio
โ b
โ bdi
โ bdo
โ big
โ br
โ button
โ canvas
โ cite
โ code
โ data
โ datalist
โ del
โ dfn
โ em
โ embed
โ i
โ iframe
โ img
โ input
โ ins
โ kbd
โ label
โ map
โ mark
โ meter
โ noscript
โ object
โ output
โ picture
โ progress
โ q
โ ruby
โ s
โ samp
โ script
โ select
โ slot
โ small
โ span
โ strong
โ sub
โ sup
โ svg
โ template
โ textarea
โ time
โ u
โ tt
โ var
โ video
โ wbr
โž List of block-level elements

โ address
โ article
โ aside
โ blockquote
โ details
โ dialog
โ dd
โ div
โ dl
โ dt
โ fieldset
โ figcaption
โ figure
โ footer
โ form
โ h1
โ h2
โ h3
โ h4
โ h5
โ h6
โ header
โ hgroup
โ hr
โ li
โ main
โ nav
โ ol
โ p
โ pre
โ section
โ table
โ ul
๐ŸŒ† Link to High Resolution Image

If you liked this one, give a โญ๏ธ to this GitHub repo to support my work.

โœง Direct Link:
github.com/swapnakpanda/Iโ€ฆ
End of ๐Ÿงต

Are you into Web Development? Check out my "Moment" section for the regular contents (threads, infographics, resources) I post to make your learning easier.

If your are interested in such contents, Follow Me โœ…

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Swapna Kumar Panda ๎จ€

Swapna Kumar Panda ๎จ€ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @swapnakpanda

Mar 9
๐Ÿ™ Should we use Semantic HTML?

โœ˜ <div> โžœ <header> โœ“
โœ˜ <div> โžœ <nav> โœ“
โœ˜ <div> โžœ <section> โœ“
โœ˜ <div> โžœ <article> โœ“
โœ˜ <div> โžœ <aside> โœ“
โœ˜ <div> โžœ <main> โœ“
โœ˜ <div> โžœ <summary> โœ“
โœ˜ <div> โžœ <footer> โœ“

โ‡ฉ
We will discuss about

โžŠ What is Semantic HTML?
โž‹ Examples of Semantic Elements
โžŒ Benefits of using Semantic HTML
โžŒ.โž€ Improve site's SEO positioning
โžŒ.โž Help your site more accessible
โžŒ.โž‚ Closer to natural language, easier to maintain
โž Should we not use "div"?
โžŠ What is Semantic HTML?

โ Semantic HTML adds essential meaning to the web page rather than just presentation.

โ This lets web browsers, search engines, screen readers, RSS readers, and ultimately users understand it in a better way.
Read 14 tweets
Mar 8
Memorise JavaScript Array Methods in 11 Steps

โ‡ฉ
๐Ÿ“‹ TOC

โžŠ Static Methods
โž‹ Accepts -ve Index
โžŒ Returns Boolean
โž Returns Index
โžŽ Returns new Array
โž Modifies Existing Array
โž Iterates through entire Array
โž‘ Iterates Partially
โž’ Checks Elements "as it is"
โž“ Checks Elements custom way
โžŠโžŠ Accepts a callback
โžŠ Static Methods

โ of()
โ from()
โ isArray()
Read 15 tweets
Mar 7
10 HTML Tags and Attributes for SEO

โ‡ฉ
๐Ÿ“‹ Table of Contents

We will discuss about

โžŠ <title>
โž‹ <meta name = "description" >
โžŒ <h1> to <h6>
โž <img alt="...">
โžŽ <a rel="nofollow">
โž <meta name = "robots" >
โž <link rel = "canonical" >
โž‘ <meta name = "viewport" >
โž’ Open Graph Tags
โž“ Twitter Card Tags
๐Ÿ” Introduction

โ‘ When search engines crawl a website, it goes through all the HTML documents.

โ’ Various HTML tags and, attributes help search engine to determine what your content is about and, how to categorise it.

โ‘ So all these may affect how your website performs.
Read 16 tweets
Mar 6
๐Ÿ“ฆ CSS Cheat Sheet : Box Model

โ Properties
โ Values

โœง Link to High Resolution image in the next tweet We will describe about 33 CSS Properties as part of CSS Box
๐Ÿ™ High Resolution Image

โฌ’ If you liked this one, give a โญ๏ธ to this GitHub repo to support my work.

โฌ“ Direct Link:
github.com/swapnakpanda/Iโ€ฆ
๐Ÿšฅ Disclaimer

โฌ” I have compiled these information with all sincerity. But in case you find any omissions or, wrong representations, ๐Ÿ’ฌ me.

โฌ• I purposely omitted "border-radius" properties from this list. I don't consider those in Box Model. What is your opinion on this?
Read 4 tweets
Mar 5
JavaScript Interview Questions

โ‡ฉ
Series: โžŒ
Level: Beginner
Topics:

โžŠ Functions - Basics
โž‹ Function Scope
โžŒ Function Arguments
โž Anonymous Functions
โžŽ Higher Order Function & Callbacks
โž Closure
โž IIFE
โž‘ Arrow Functions
๐Ÿšฅ Disclaimer

โฌ– The questions covered here are mostly conceptual.
โฌ˜ I never claim only these type of questions are/should be asked during interviews.
โฌ— For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
Read 17 tweets
Mar 4
50+ CSS Problems for Practice

โ‡ฉ
Series: โžŠ
Level of Difficulty: Easy to Medium

Topics:
โžŠ CSS Selectors
โž‹ Background
โžŒ Border
โž Margin
โžŽ Padding
โž Outline
โž Text
โž‘ Position
โž’ Overflow
โž“ Height/Width
๐Ÿ’ญ Intention behind this Practice Series

โฌ˜ I believe anyone can strengthen his skills in HTML and CSS only by practicing.

โฌ— In CSS, there are so many properties and values. It's impossible to memorize everything.

โฌ™ By practicing a lot, you can definitely master it.
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(