WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45636, comment 1


Ignore:
Timestamp:
12/14/2018 11:41:46 AM (10 months ago)
Author:
subrataemfluence
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45636, comment 1

    initial v1  
    1 I was unable to reproduce the issue with the following configuration.
     1Yes, your observation is correct as far as visual representation is concerned!
    22
    3 - WP Vesion: 5.0.1
    4 - Theme: `twentyseventeen` and `twentynineteen`
    5 - Editor: Classic Editor
    6 - Other plugins: None activated
     3The reason why you are not been able to see the physical `<p></p>` tags because when we write a block of text in Gutenberg by wrapping it by tag like `<h1>`, `<h3>` etc., they will persist.
     4
     5On the other hand when no tag is specified for a block of text, that block will automatically get wrapped inside a `<p>` tag.
     6
     7Is you save the post and then go to the page and see the source of it, you will see that your text is already wrapped within a `<p>`.
     8
     9It is unnecessary to double wrap a text with the same HTML tag, like in this case, it would become `<p><p>...</p></p>`. So, in short if there is a block of text written without any specific HTML tag wrapping it, you can be rest assured that it is in the end wrapped by a `<p>` tag.