H1 tag and P tag on the same line?

后端 未结 5 847
一个人的身影
一个人的身影 2020-12-17 09:25

I\'m trying to place some text inside the P tag after the closing H1 tag like this:

Headline And here are the text right after....

But I can

5条回答
  •  天涯浪人
    2020-12-17 10:00

    Create a new tag in CSS with the desired attributes and values or edit an existing one (ex: .address). Then put the text you want to be inline under that tag and that's it.

    After that the code should look like this:

    containerIntro h1,
    
    containerIntro address //(in our case) 
    
    {display: inline;}
    

提交回复
热议问题