March 2020
Beginner
660 pages
18h 28m
English
Once the Paragraph block has been added, the editor will show a cursor so that we can type in content for the block. The toolbar for the Paragraph will appear as soon as we type in the content. This toolbar allows us to align content as well as add common formatting such as Bold, Italic, and Linking. Gutenberg uses the following code to manage a Paragraph block:
<!-- wp:paragraph --><p>Sample Text</p><!-- /wp:paragraph -->
As you can see, the <!-- wp:paragraph --> opening and closing tags are used to identify the block. Within the block, the content is wrapped inside <p> tags to generate the output on the frontend.
Read now
Unlock full access