want to create a carousel with a image and text
– Josh
@Nishant: Then use, say, <span>. <p> is meant for paragraphs.
– Steve Harrison
@Nishant: When you have to force a tag to behave a certain way (such as making it display: inline; rather than display: block;), it's a good indication that you might be using the wrong tag...
– Steve Harrison
The <p> paragraph tag is meant for specifying paragraphs of text. If you don't want the text to start on a new line, I would suggest you're using the <p> tag incorrectly. Perhaps the <span> tag more closely fits what you want to achieve...?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
<span>
.<p>
is meant for paragraphs. – Steve Harrisondisplay: inline;
rather thandisplay: block;
), it's a good indication that you might be using the wrong tag... – Steve Harrison