Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Created February 9, 2023 03:22
Show Gist options
  • Save todiadiyatmo/ab43ebd0506e9b619b54a015ab26be49 to your computer and use it in GitHub Desktop.
Save todiadiyatmo/ab43ebd0506e9b619b54a015ab26be49 to your computer and use it in GitHub Desktop.
Unit Test Content WordPress
<!-- wp:cover {"overlayColor":"ugm-secondary-bg","isDark":false} -->
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-ugm-secondary-bg-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"center","level":1} -->
<h1 class="has-text-align-center">Hero Title (H1)</h1>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<!-- /wp:paragraph -->
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"ugm-primary-bg","textColor":"ugm-secondary-bg","style":{"border":{"radius":"0px"}}} -->
<div class="wp-block-button"><a class="wp-block-button__link has-ugm-secondary-bg-color has-ugm-primary-bg-background-color has-text-color has-background wp-element-button" style="border-radius:0px">Action 1</a></div>
<!-- /wp:button -->
<!-- wp:button {"textColor":"ugm-primary-bg","style":{"border":{"radius":"0px"}},"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-ugm-primary-bg-color has-text-color wp-element-button" style="border-radius:0px">Action 2</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div></div>
<!-- /wp:cover -->
<!-- wp:cover {"customOverlayColor":"#dce8f0","isDark":false} -->
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:#dce8f0"></span><div class="wp-block-cover__inner-container"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading -->
<h2>Hero Title (H2)</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<!-- /wp:paragraph -->
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"ugm-primary-bg","style":{"border":{"radius":"0px"}}} -->
<div class="wp-block-button"><a class="wp-block-button__link has-ugm-primary-bg-background-color has-background wp-element-button" style="border-radius:0px">Action</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:image {"align":"right","id":1025,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image alignright size-full"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-300x200-1.jpg" alt="Image Alignment 300x200" class="wp-image-1025"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>The Common category includes the following blocks:<em> Paragraph, image, headings, list, gallery, quote, audio, cover, video.</em></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The paragraph block is the default block type.&nbsp; It should not have any alignment of any kind. It should just flow like you would normally expect. Nothing fancy. Just straight up text, free flowing, with love.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>This paragraph is left aligned.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"right"} -->
<p class="has-text-align-right"><em>This italic paragraph is right aligned.</em></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"dropCap":true,"fontSize":"medium"} -->
<p class="has-drop-cap has-medium-font-size"><strong>Neither of these paragraphs care about politics, but this one is bold, medium sized and has a drop cap.</strong></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">This paragraph is centered. </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">This paragraph prefers Jazz over Justin Timberlake. It also uses the small font size.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">This paragraph has something important to say:&nbsp; It has a large font size, which defaults to 36px.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"style":{"typography":{"fontSize":46}}} -->
<p style="font-size:46px">The huge text size defaults to 46px, but the size can be customized.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"style":{"color":{"background":"#cf2e2e"}},"textColor":"very-light-gray"} -->
<p class="has-very-light-gray-color has-text-color has-background" style="background-color:#cf2e2e">This paragraph is colorful, with a red background and white text (maybe). Colored blocks should have a high enough contrast, so that the text is readable. </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"style":{"color":{"text":"#1e0566"}}} -->
<p class="has-text-color" style="color:#1e0566"><strong>Below this block, you will see a single image with a circle mask applied.</strong></p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":968,"sizeSlug":"full","className":"is-style-circle-mask"} -->
<figure class="wp-block-image size-full is-style-circle-mask"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-150x150-1.jpg" alt="Image Alignment 150x150" class="wp-image-968"/></figure>
<!-- /wp:image -->
<!-- wp:heading {"level":1} -->
<h1>H1 Heading</h1>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>H2 Heading</h2>
<!-- /wp:heading -->
<!-- wp:heading {"level":3} -->
<h3>H3 Heading</h3>
<!-- /wp:heading -->
<!-- wp:heading {"level":4} -->
<h4>H4 Heading</h4>
<!-- /wp:heading -->
<!-- wp:heading {"level":5} -->
<h5>H5 Heading</h5>
<!-- /wp:heading -->
<!-- wp:heading {"level":6} -->
<h6>H6 Heading</h6>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>Ordered list</h2>
<!-- /wp:heading -->
<!-- wp:list {"ordered":true} -->
<ol><!-- wp:list-item -->
<li>The software should be licensed under the&nbsp;<a href="http://www.gnu.org/copyleft/gpl.html">GNU Public License</a>.</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>The software should be freely available to anyone to use for any purpose, and without permission.</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>The software should be open to modifications.<!-- wp:list {"ordered":true} -->
<ol><!-- wp:list-item -->
<li>Any modifications should be freely distributable at no cost and without permission from its creators.</li>
<!-- /wp:list-item --></ol>
<!-- /wp:list --></li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>The software should provide a framework for translation to make it globally accessible to speakers of all languages.</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>The software should provide a framework for extensions so modifications and enhancements can be made without modifying core code</li>
<!-- /wp:list-item --></ol>
<!-- /wp:list -->
<!-- wp:heading -->
<h2>Unordered list</h2>
<!-- /wp:heading -->
<!-- wp:list -->
<ul><!-- wp:list-item -->
<li>One</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>Two</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>Three<!-- wp:list -->
<ul><!-- wp:list-item -->
<li>Four</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list --></li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>Five</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->
<!-- wp:gallery {"columns":2,"linkTo":"none"} -->
<figure class="wp-block-gallery has-nested-images columns-2 is-cropped"><!-- wp:image {"id":769,"linkDestination":"none"} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747.jpg" alt="Brazil Beach" class="wp-image-769"/><figcaption class="wp-element-caption">Jericoacoara Ceara Brasil</figcaption></figure>
<!-- /wp:image -->
<!-- wp:image {"id":768,"linkDestination":"none"} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0513-1.jpg" alt="Huatulco Coastline" class="wp-image-768"/><figcaption class="wp-element-caption">Sunrise over the coast in Huatulco, Oaxaca, Mexico</figcaption></figure>
<!-- /wp:image -->
<!-- wp:image {"id":767,"linkDestination":"none"} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill.jpg" alt="Windmill" class="wp-image-767"/><figcaption class="wp-element-caption">Windmill shrouded in fog at a farm outside of Walker, Iowa</figcaption></figure>
<!-- /wp:image -->
<!-- wp:image {"id":770,"linkDestination":"none"} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0767.jpg" alt="Huatulco Coastline" class="wp-image-770"/><figcaption class="wp-element-caption">Coastline in Huatulco, Oaxaca, Mexico</figcaption></figure>
<!-- /wp:image -->
<!-- wp:image {"id":807,"linkDestination":"none"} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2012/06/dsc20040724_152504_532.jpg" alt="" class="wp-image-807"/></figure>
<!-- /wp:image -->
<!-- wp:image {"id":766,"linkDestination":"none"} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049.jpg" alt="Big Sur" class="wp-image-766"/><figcaption class="wp-element-caption">Beach at Big Sur, CA</figcaption></figure>
<!-- /wp:image --><figcaption class="blocks-gallery-caption wp-element-caption">images are not linked</figcaption></figure>
<!-- /wp:gallery -->
<!-- wp:quote -->
<blockquote class="wp-block-quote"><!-- wp:paragraph -->
<p>Quote</p>
<!-- /wp:paragraph --><cite>Cite</cite></blockquote>
<!-- /wp:quote -->
<!-- wp:audio {"id":821} -->
<figure class="wp-block-audio"><audio controls src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/originaldixielandjazzbandwithalbernard-stlouisblues.mp3"></audio></figure>
<!-- /wp:audio -->
<!-- wp:cover {"url":"https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/dsc04563.jpg","id":759,"dimRatio":50,"minHeight":274,"className":"is-light"} -->
<div class="wp-block-cover is-light" style="min-height:274px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span><img class="wp-block-cover__image-background wp-image-759" alt="" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/dsc04563.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Cover block with background image</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>The file block has a setting that lets us show or hide a download button with editable text: </p>
<!-- /wp:paragraph -->
<!-- wp:file {"id":1690,"href":"https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf"} -->
<div class="wp-block-file"><a id="wp-block-file--media-6bc74806-3396-4439-874f-8d8bfdc791ae" href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf">File Block PDF</a><a href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-6bc74806-3396-4439-874f-8d8bfdc791ae">Download</a></div>
<!-- /wp:file -->
<!-- wp:file {"id":1690,"href":"https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf","showDownloadButton":false} -->
<div class="wp-block-file"><a id="wp-block-file--media-efe7d139-72f4-4ec1-ac15-fd08469422ae" href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf">File Block PDF</a></div>
<!-- /wp:file -->
<!-- wp:paragraph -->
<p>Video blocks have settings for showing and hiding the playback controls. Use autoplay and playback controls responsibly. </p>
<!-- /wp:paragraph -->
<!-- wp:video {"id":1690,"tracks":[]} -->
<figure class="wp-block-video"><video controls loop src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/12/2014-slider-mobile-behavior.mov"></video><figcaption class="wp-element-caption">This is a video block caption.</figcaption></figure>
<!-- /wp:video -->
<!-- wp:paragraph -->
<p>The video block below is muted and has a poster image that displays before the video starts:</p>
<!-- /wp:paragraph -->
<!-- wp:video {"id":1690} -->
<figure class="wp-block-video"><video controls muted poster="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/dsc20050727_091048_222.jpg" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/12/2014-slider-mobile-behavior.mov"></video></figure>
<!-- /wp:video -->
<!-- wp:paragraph -->
<p>Welcome to image alignment! If you recognize this post, it is because these are blocks that have been converted from the classic <em>Markup: Image Alignment</em> post. The best way to demonstrate the ebb and flow of the various image positioning options is to nestle them snuggly among an ocean of words. Grab a paddle and let's get started. Be sure to try it in RTL mode. Left should stay left and right should stay right for both reading directions.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>On the topic of alignment, it should be noted that users can choose from the options of <em>None</em>, <em>Left</em>, <em>Right, </em>and <em>Center</em>. If the theme has added support for <em>align wide</em>,&nbsp;images can also be <em>wide</em> and <em>full width</em>. Be sure to test this page in RTL mode.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>In addition, they also get the options of the image dimensions 25%, 50%, 75%, 100% or a set width and height.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"center","id":906} -->
<figure class="wp-block-image aligncenter"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-580x300-1.jpg" alt="Image Alignment 580x300" class="wp-image-906"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The image above happens to be <em><strong>centered</strong></em>.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"left","id":904} -->
<figure class="wp-block-image alignleft"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-150x150-1.jpg" alt="Image Alignment 150x150" class="wp-image-904"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The rest of this paragraph is filler for the sake of seeing the text wrap around the 150x150 image, which is <em><strong>left aligned</strong></em>. </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we'll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it's thang. Mission accomplished!</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":907} -->
<figure class="wp-block-image"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" alt="Image Alignment 1200x400" class="wp-image-907"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"right","id":905} -->
<figure class="wp-block-image alignright"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-300x200-1.jpg" alt="Image Alignment 300x200" class="wp-image-905"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>And now we're going to shift things to the <em><strong>right align</strong></em>. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there… Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah… Just like that. It never felt so good to be right.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>And just when you thought we were done, we're going to do them all over again with captions!</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"center","id":906,"className":"size-full wp-image-906"} -->
<figure class="wp-block-image aligncenter size-full wp-image-906"><a href="https://en.support.wordpress.com/images/image-settings/"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-580x300-1.jpg" alt="Image Alignment 580x300" class="wp-image-906"/></a><figcaption class="wp-element-caption">Look at 580x300 getting some <a title="Image Settings" href="https://en.support.wordpress.com/images/image-settings/">caption</a> love.</figcaption></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The image above happens to be <em><strong>centered</strong></em>. The caption also has a link in it, just to see if it does anything funky.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"left","id":904,"className":"size-full wp-image-904"} -->
<figure class="wp-block-image alignleft size-full wp-image-904"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-150x150-1.jpg" alt="Image Alignment 150x150" class="wp-image-904"/><figcaption class="wp-element-caption">Itty-bitty caption.</figcaption></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The rest of this paragraph is filler for the sake of seeing the text wrap around the 150x150 image, which is <em><strong>left aligned</strong></em>. </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we'll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it's thang. Mission accomplished!</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"none","id":907,"className":"wp-image-907"} -->
<figure class="wp-block-image alignnone wp-image-907"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" alt="Image Alignment 1200x400" class="wp-image-907"/><figcaption class="wp-element-caption">Massive image comment for your eyeballs.</figcaption></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"right","id":905,"className":"size-full wp-image-905"} -->
<figure class="wp-block-image alignright size-full wp-image-905"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-300x200-1.jpg" alt="Image Alignment 300x200" class="wp-image-905"/><figcaption class="wp-element-caption">Feels good to be right all the time.</figcaption></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>And now we're going to shift things to the <em><strong>right align</strong></em>. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there… Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah… Just like that. It never felt so good to be right.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Imagine that we would find a use for the extra wide image! This image has the <em>wide width</em> alignment:</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"wide","id":1029} -->
<figure class="wp-block-image alignwide"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" alt="Image Alignment 1200x4002" class="wp-image-1029"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p><strong>Can we go bigger?</strong> This image has the <em>full width</em> alignment:</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"full","id":1029} -->
<figure class="wp-block-image alignfull"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" alt="Image Alignment 1200x4002" class="wp-image-1029"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>And that's a wrap, yo! You survived the tumultuous waters of alignment. Image alignment achievement unlocked! One last thing: The last item in this post's content is a thumbnail floated right. Make sure any elements after the content are clearing properly.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"align":"right","id":827,"width":160,"height":120} -->
<figure class="wp-block-image alignright is-resized"><img src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer.jpg" alt="" class="wp-image-827" width="160" height="120"/></figure>
<!-- /wp:image -->
<strong>Headings</strong>
<h1>Header one</h1>
<h2>Header two</h2>
<h3>Header three</h3>
<h4>Header four</h4>
<h5>Header five</h5>
<h6>Header six</h6>
<h2>Blockquotes</h2>
Single line blockquote:
<blockquote>Stay hungry. Stay foolish.</blockquote>
<h2>Tables</h2>
<table>
<thead>
<tr>
<th>Employee</th>
<th>Salary</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th><a href="http://example.org/">John Doe</a></th>
<td>$1</td>
<td>Because that's all Steve Jobs needed for a salary.</td>
</tr>
<tr>
<th><a href="http://example.org/">Jane Doe</a></th>
<td>$100K</td>
<td>For all the blogging she does.</td>
</tr>
<tr>
<th><a href="http://example.org/">Fred Bloggs</a></th>
<td>$100M</td>
<td>Pictures are worth a thousand words, right? So Jane x 1,000.</td>
</tr>
<tr>
<th><a href="http://example.org/">Jane Bloggs</a></th>
<td>$100B</td>
<td>With hair like that?! Enough said...</td>
</tr>
</tbody>
</table>
<h2>Definition Lists</h2>
<dl>
<dt>Definition List Title</dt>
<dd>Definition list division.</dd>
<dt>Startup</dt>
<dd>A startup company or startup is a company or temporary organization designed to search for a repeatable and scalable business model.</dd>
<dt>#dowork</dt>
<dd>Coined by Rob Dyrdek and his personal body guard Christopher "Big Black" Boykins, "Do Work" works as a self motivator, to motivating your friends.</dd>
<dt>Do It Live</dt>
<dd>I'll let Bill O'Reilly will <a title="We'll Do It Live" href="https://www.youtube.com/watch?v=O_HyZ5aW76c">explain</a> this one.</dd>
</dl>
<h2>Unordered Lists (Nested)</h2>
<ul>
<li>List item one
<ul>
<li>List item one
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ul>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ul>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ul>
<h2>Ordered List (Nested)</h2>
<ol start="8">
<li>List item one -start at 8
<ol>
<li>List item one
<ol reversed="reversed">
<li>List item one -reversed attribute</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ol>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ol>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ol>
<h2>HTML Tags</h2>
These supported tags come from the WordPress.com code <a title="Code" href="https://en.support.wordpress.com/code/">FAQ</a>.
<strong>Address Tag</strong>
<address>1 Infinite Loop
Cupertino, CA 95014
United States</address><strong>Anchor Tag (aka. Link)</strong>
This is an example of a <a title="WordPress Foundation" href="https://wordpressfoundation.org/">link</a>.
<strong>Abbreviation Tag</strong>
The abbreviation <abbr title="Seriously">srsly</abbr> stands for "seriously".
<strong>Acronym Tag (<em>deprecated in HTML5</em>)</strong>
The acronym <acronym title="For The Win">ftw</acronym> stands for "for the win".
<strong>Big Tag</strong> (<em>deprecated in HTML5</em>)
These tests are a <big>big</big> deal, but this tag is no longer supported in HTML5.
<strong>Cite Tag</strong>
"Code is poetry." --<cite>Automattic</cite>
<strong>Code Tag</strong>
This tag styles blocks of code.
<code>.post-title {
margin: 0 0 5px;
font-weight: bold;
font-size: 38px;
line-height: 1.2;
and here's a line of some really, really, really, really long text, just to see how it is handled and to find out how it overflows;
}</code>
You will learn later on in these tests that <code>word-wrap: break-word;</code> will be your best friend.
<strong>Delete Tag</strong>
This tag will let you <del cite="deleted it">strike out text</del>, but this tag is <em>recommended</em> supported in HTML5 (use the <code>&lt;s&gt;</code> instead).
<strong>Emphasize Tag</strong>
The emphasize tag should <em>italicize</em> <i>text</i>.
<strong>Horizontal Rule Tag</strong>
<hr>
This sentence is following a <code>&lt;hr /&gt;</code> tag.
<strong>Insert Tag</strong>
This tag should denote <ins cite="inserted it">inserted</ins> text.
<strong>Keyboard Tag</strong>
This scarcely known tag emulates <kbd>keyboard text</kbd>, which is usually styled like the <code>&lt;code&gt;</code> tag.
<strong>Preformatted Tag</strong>
This tag is for preserving whitespace as typed, such as in poetry or ASCII art.
<h2>The Road Not Taken</h2>
<pre><cite>Robert Frost</cite>
Two roads diverged in a yellow wood,
And sorry I could not travel both (\_/)
And be one traveler, long I stood (='.'=)
And looked down one as far as I could (")_(")
To where it bent in the undergrowth;
Then took the other, as just as fair,
And having perhaps the better claim, |\_/|
Because it was grassy and wanted wear; / @ @ \
Though as for that the passing there ( &gt; º &lt; )
Had worn them really about the same, `&gt;&gt;x&lt;&lt;´
/ O \
And both that morning equally lay
In leaves no step had trodden black.
Oh, I kept the first for another day!
Yet knowing how way leads on to way,
I doubted if I should ever come back.
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I—
I took the one less traveled by,
And that has made all the difference.
and here's a line of some really, really, really, really long text, just to see how it is handled and to find out how it overflows;
</pre>
<strong>Quote Tag</strong> for short, inline quotes
<q>Developers, developers, developers...</q> --Steve Ballmer
<strong>Strike Tag</strong> (<em>deprecated in HTML5</em>) and <strong>S Tag</strong>
This tag shows <strike>strike-through</strike> <s>text</s>.
<strong>Small Tag</strong>
This tag shows <small>smaller<small> text.</small></small>
<strong>Strong Tag</strong>
This tag shows <strong>bold<strong> text.</strong></strong>
<strong>Subscript Tag</strong>
Getting our science styling on with H<sub>2</sub>O, which should push the "2" down.
<strong>Superscript Tag</strong>
Still sticking with science and Albert Einstein's E = MC<sup>2</sup>, which should lift the 2 up.
<strong>Teletype Tag </strong>(<em>obsolete in HTML5</em>)
This rarely used tag emulates <tt>teletype text</tt>, which is usually styled like the <code>&lt;code&gt;</code> tag.
<strong>Underline Tag</strong> <em>deprecated in HTML 4, re-introduced in HTML5 with other semantics</em>
This tag shows <u>underlined text</u>.
<strong>Variable Tag</strong>
This allows you to denote <var>variables</var>.
<h3>Default</h3>
This is a paragraph. It should not have any alignment of any kind. It should just flow like you would normally expect. Nothing fancy. Just straight up text, free flowing, with love. Completely neutral and not picking a side or sitting on the fence. It just is. It just freaking is. It likes where it is. It does not feel compelled to pick a side. Leave him be. It will just be better that way. Trust me.
<h3>Left Align</h3>
<p style="text-align:left;">This is a paragraph. It is left aligned. Because of this, it is a bit more liberal in it's views. It's favorite color is green. Left align tends to be more eco-friendly, but it provides no concrete evidence that it really is. Even though it likes share the wealth evenly, it leaves the equal distribution up to justified alignment.</p>
<h3>Center Align</h3>
<p style="text-align:center;">This is a paragraph. It is center aligned. Center is, but nature, a fence sitter. A flip flopper. It has a difficult time making up its mind. It wants to pick a side. Really, it does. It has the best intentions, but it tends to complicate matters more than help. The best you can do is try to win it over and hope for the best. I hear center align does take bribes.</p>
<h3>Right Align</h3>
<p style="text-align:right;">This is a paragraph. It is right aligned. It is a bit more conservative in it's views. It's prefers to not be told what to do or how to do it. Right align totally owns a slew of guns and loves to head to the range for some practice. Which is cool and all. I mean, it's a pretty good shot from at least four or five football fields away. Dead on. So boss.</p>
<h3>Justify Align</h3>
<p style="text-align:justify;">This is a paragraph. It is justify aligned. It gets really mad when people associate it with Justin Timberlake. Typically, justified is pretty straight laced. It likes everything to be in it's place and not all cattywampus like the rest of the aligns. I am not saying that makes it better than the rest of the aligns, but it does tend to put off more of an elitist attitude.</p>
Welcome to image alignment! The best way to demonstrate the ebb and flow of the various image positioning options is to nestle them snuggly among an ocean of words. Grab a paddle and let's get started.
On the topic of alignment, it should be noted that users can choose from the options of <em>None</em>, <em>Left</em>, <em>Right, </em>and <em>Center</em>. In addition, they also get the options of <em>Thumbnail</em>, <em>Medium</em>, <em>Large</em> &amp; <em>Fullsize</em>. Be sure to try this page in RTL mode and it should look the same as LTR.
<img class="size-full wp-image-906 aligncenter" title="Image Alignment 580x300" alt="Image Alignment 580x300" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-580x300-1.jpg" width="580" height="300">
The image above happens to be <em><strong>centered</strong></em>.
<img class="size-full wp-image-904 alignleft" title="Image Alignment 150x150" alt="Image Alignment 150x150" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-150x150-1.jpg" width="150" height="150"> The rest of this paragraph is filler for the sake of seeing the text wrap around the 150x150 image, which is <em><strong>left aligned</strong></em>.
As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we'll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it's thang. Mission accomplished!
And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.
<img class="alignnone wp-image-907" title="Image Alignment 1200x400" alt="Image Alignment 1200x400" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" width="1200" height="400">
The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.
<img class="aligncenter wp-image-907" title="Image Alignment 1200x400" alt="Image Alignment 1200x400" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" width="1200" height="400">
And we try the large image again, with the center alignment since that sometimes is a problem. The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.
<img class="size-full wp-image-905 alignright" title="Image Alignment 300x200" alt="Image Alignment 300x200" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-300x200-1.jpg" width="300" height="200">
And now we're going to shift things to the <em><strong>right align</strong></em>. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there... Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently.
In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah... Just like that. It never felt so good to be right.
And just when you thought we were done, we're going to do them all over again with captions!
[caption id="attachment_906" align="aligncenter" width="580"]<img class="size-full wp-image-906 " title="Image Alignment 580x300" alt="Image Alignment 580x300" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-580x300-1.jpg" width="580" height="300"> Look at 580x300 getting some <a title="Image Settings" href="https://en.support.wordpress.com/images/image-settings/">caption</a> love.[/caption]
The image above happens to be <em><strong>centered</strong></em>. The caption also has a link in it, just to see if it does anything funky.
[caption id="attachment_904" align="alignleft" width="150"]<img class="size-full wp-image-904 " title="Image Alignment 150x150" alt="Image Alignment 150x150" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-150x150-1.jpg" width="150" height="150"> Bigger caption than the image usually is.[/caption]
The rest of this paragraph is filler for the sake of seeing the text wrap around the 150x150 image, which is <em><strong>left aligned</strong></em>.
As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we'll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it's thang. Mission accomplished!
And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.
[caption id="attachment_907" align="alignnone" width="1200"]<img class=" wp-image-907" title="Image Alignment 1200x400" alt="Image Alignment 1200x400" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" width="1200" height="400"> Comment for massive image for your eyeballs.[/caption]
The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.
[caption id="attachment_907" align="aligncenter" width="1200"]<img class=" wp-image-907" title="Image Alignment 1200x400" alt="Image Alignment 1200x400" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg" width="1200" height="400"> This massive image is centered.[/caption]
And again with the big image centered. The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.
[caption id="attachment_905" align="alignright" width="300"]<img class="size-full wp-image-905 " title="Image Alignment 300x200" alt="Image Alignment 300x200" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-300x200-1.jpg" width="300" height="200"> Feels good to be right all the time.[/caption]
And now we're going to shift things to the <em><strong>right align</strong></em>. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there... Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently.
In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah... Just like that. It never felt so good to be right.
And that's a wrap, yo! You survived the tumultuous waters of alignment. Image alignment achievement unlocked! One last thing: The last item in this post's content is a thumbnail floated right. Make sure any elements after the content are clearing properly.
<img class="alignright size-thumbnail wp-image-827" title="Camera" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer.jpg" alt="" width="160">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment