HTML para and CSS display block

I am a beginner to css and I have a question .
is the HTML <p> and the display :block in the CSS have the same effect?
Kindly share your expertise

How do i tell the p tag , take the width of the text inside you .

Well the question explains it all

Js fiddle

if you go through the fiddle , you'll see that , the only css i have specified is

 p{
    width: 4em;
  }

how do i change that to

 p{
    width: Hey P tag please take the width of the text inside you;
  }

Thank you .

Kind regards .

Gautam.

Syndicate content