Jump to content

Add p tag


sandy1028

Recommended Posts

Hi,

 

In the below text, please tell me how to add the '<p>' tags.

 

[NEW]
Dear Carolyn: My husband and I divorced after 42 years. It didn't take long
for him to find a replacement, but I was happy for him at the time.<
them and let my grandchildren dig through her purse as if she were their
grandmother.<
[OLD]
Dear Carolyn: My husband and I divorced after 42 years. 
my grandchildren dig through her purse<

 

 

The output should look,as below.

 

[NEW]
<p>Dear Carolyn: My husband and I divorced after 42 years. It didn't take long
for him to find a replacement, but I was happy for him at the time.[b]<p></p>[/b]
them and let my grandchildren dig through her purse as if she were their
grandmother.</p>
[OLD]
[b]<p>[/b]Dear Carolyn: My husband and I divorced after 42 years. 
my grandchildren dig through her purse[b]</p>[/b]

 

 

Link to comment
https://forums.phpfreaks.com/topic/172781-add-p-tag/
Share on other sites

Your post is confusing for me. :-\ What are you trying to make?  :shy:

 

Anyway, let me try - maybe this:

 

<p><strong>Dear Carolyn</strong>: My husband and I divorced after <strong>42 years</strong>. It didn't take long for him to find a replacement, but I was happy for him at the time. <p>...them and let my <strong>grandchildren</strong> dig through her purse as if she were their grandmother.</p>

 

Output:  ;)

Dear Carolyn: My husband and I divorced after 42 years. It didn't take long for him to find a replacement, but I was happy for him at the time.

 

...them and let my grandchildren dig through her purse as if she were their grandmother.

 

I mean, if you could explain better that would help. ::)

Link to comment
https://forums.phpfreaks.com/topic/172781-add-p-tag/#findComment-910742
Share on other sites

Well I am not sure about that - I don't think so. Browser are rendering it just fine. W3 says:

 

The STRONG element indicates strong emphasis, typically rendered in bold. For example:

 

<strong>STOP</strong>, or I'll say "<strong>STOP</strong>" again!

 

Anyway, you may replace strong with B - it seems <strong> emphasis more. I don't have my glasses so can't see the different :o

 

Link to comment
https://forums.phpfreaks.com/topic/172781-add-p-tag/#findComment-910761
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.