Skip to content

Instantly share code, notes, and snippets.

@gamaup
Created January 17, 2023 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gamaup/f74ee61c4e640c32a8cca55064fe196f to your computer and use it in GitHub Desktop.
Save gamaup/f74ee61c4e640c32a8cca55064fe196f to your computer and use it in GitHub Desktop.
WordPress HTML Markups
<p><strong>Headings</strong></p>
<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>
<p>Single line blockquote:</p>
<blockquote><p>Stay hungry. Stay foolish.</p></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>
<p>These supported tags come from the WordPress.com code <a title="Code" href="https://en.support.wordpress.com/code/">FAQ</a>.</p>
<p><strong>Address Tag</strong></p>
<address>1 Infinite Loop<br>
Cupertino, CA 95014<br>
United States</address>
<p><strong>Anchor Tag (aka. Link)</strong></p>
<p>This is an example of a <a title="WordPress Foundation" href="https://wordpressfoundation.org/">link</a>.</p>
<p><strong>Abbreviation Tag</strong></p>
<p>The abbreviation <abbr title="Seriously">srsly</abbr> stands for “seriously”.</p>
<p><strong>Acronym Tag (<em>deprecated in HTML5</em>)</strong></p>
<p>The acronym <acronym title="For The Win">ftw</acronym> stands for “for the win”.</p>
<p><strong>Big Tag</strong> (<em>deprecated in HTML5</em>)</p>
<p>These tests are a <big>big</big> deal, but this tag is no longer supported in HTML5.</p>
<p><strong>Cite Tag</strong></p>
<p>“Code is poetry.” —<cite>Automattic</cite></p>
<p><strong>Code Tag</strong></p>
<p>This tag styles blocks of code.<br>
<code>.post-title {<br>
margin: 0 0 5px;<br>
font-weight: bold;<br>
font-size: 38px;<br>
line-height: 1.2;<br>
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;<br>
}</code><br>
You will learn later on in these tests that <code>word-wrap: break-word;</code> will be your best friend.</p>
<p><strong>Delete Tag</strong></p>
<p>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).</p>
<p><strong>Emphasize Tag</strong></p>
<p>The emphasize tag should <em>italicize</em> <i>text</i>.</p>
<p><strong>Horizontal Rule Tag</strong></p>
<hr>
<p>This sentence is following a <code>&lt;hr /&gt;</code> tag.</p>
<p><strong>Insert Tag</strong></p>
<p>This tag should denote <ins cite="inserted it">inserted</ins> text.</p>
<p><strong>Keyboard Tag</strong></p>
<p>This scarcely known tag emulates <kbd>keyboard text</kbd>, which is usually styled like the <code>&lt;code&gt;</code> tag.</p>
<p><strong>Preformatted Tag</strong></p>
<p>This tag is for preserving whitespace as typed, such as in poetry or ASCII art.</p>
<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>
<p><strong>Quote Tag</strong> for short, inline quotes</p>
<p><q>Developers, developers, developers…</q> –Steve Ballmer</p>
<p><strong>Strike Tag</strong> (<em>deprecated in HTML5</em>) and <strong>S Tag</strong></p>
<p>This tag shows <strike>strike-through</strike> <s>text</s>.</p>
<p><strong>Small Tag</strong></p>
<p>This tag shows <small>smaller<small> text.</small></small></p>
<p><strong>Strong Tag</strong></p>
<p>This tag shows <strong>bold<strong> text.</strong></strong></p>
<p><strong>Subscript Tag</strong></p>
<p>Getting our science styling on with H<sub>2</sub>O, which should push the “2” down.</p>
<p><strong>Superscript Tag</strong></p>
<p>Still sticking with science and Albert Einstein’s E = MC<sup>2</sup>, which should lift the 2 up.</p>
<p><strong>Teletype Tag </strong>(<em>obsolete in HTML5</em>)</p>
<p>This rarely used tag emulates <tt>teletype text</tt>, which is usually styled like the <code>&lt;code&gt;</code> tag.</p>
<p><strong>Underline Tag</strong> <em>deprecated in HTML 4, re-introduced in HTML5 with other semantics</em></p>
<p>This tag shows <u>underlined text</u>.</p>
<p><strong>Variable Tag</strong></p>
<p>This allows you to denote <var>variables</var>.</p>
<h3>Default</h3>
<p>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.</p>
<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>
<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.</p>
<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>. 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.</p>
<p><img decoding="async" 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"></p>
<p>The image above happens to be <em><strong>centered</strong></em>.</p>
<p><img decoding="async" loading="lazy" 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 150×150 image, which is <em><strong>left aligned</strong></em>.</p>
<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>
<p>And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.</p>
<p><img decoding="async" loading="lazy" 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"></p>
<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>
<p><img decoding="async" loading="lazy" 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"></p>
<p>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.</p>
<p><img decoding="async" loading="lazy" 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"></p>
<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>
<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>
<p>And just when you thought we were done, we’re going to do them all over again with captions!</p>
<figure id="attachment_906" aria-describedby="caption-attachment-906" style="width: 580px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" 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"><figcaption id="caption-attachment-906" class="wp-caption-text">Look at 580×300 getting some <a title="Image Settings" href="https://en.support.wordpress.com/images/image-settings/">caption</a> love.</figcaption></figure>
<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>
<figure id="attachment_904" aria-describedby="caption-attachment-904" style="width: 150px" class="wp-caption alignleft"><img decoding="async" loading="lazy" 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"><figcaption id="caption-attachment-904" class="wp-caption-text">Bigger caption than the image usually is.</figcaption></figure>
<p>The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is <em><strong>left aligned</strong></em>.</p>
<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>
<p>And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.</p>
<figure id="attachment_907" aria-describedby="caption-attachment-907" style="width: 1200px" class="wp-caption alignnone"><img decoding="async" loading="lazy" 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"><figcaption id="caption-attachment-907" class="wp-caption-text">Comment for massive image for your eyeballs.</figcaption></figure>
<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>
<figure id="attachment_907" aria-describedby="caption-attachment-907" style="width: 1200px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" 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"><figcaption id="caption-attachment-907" class="wp-caption-text">This massive image is centered.</figcaption></figure>
<p>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.</p>
<figure id="attachment_905" aria-describedby="caption-attachment-905" style="width: 300px" class="wp-caption alignright"><img decoding="async" loading="lazy" 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"><figcaption id="caption-attachment-905" class="wp-caption-text">Feels good to be right all the time.</figcaption></figure>
<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>
<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>
<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>
<p><img decoding="async" 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="" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer.jpg 640w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" width="160"></p>
<p>The Common category includes the following blocks:<em> Paragraph, image, headings, list, gallery, quote, audio, cover, video.</em></p>
<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>
<p>This paragraph is left aligned.</p>
<p class="has-text-align-right"><em>This italic paragraph is right aligned.</em></p>
<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>
<p class="has-text-align-center">This paragraph is centered. </p>
<p class="has-small-font-size">This paragraph prefers Jazz over Justin Timberlake. It also uses the small font size.</p>
<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>
<p style="font-size:46px">The huge text size defaults to 46px, but the size can be customized.</p>
<p style="background-color:#cf2e2e" class="has-text-color has-background has-very-light-gray-color">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>
<p style="color:#1e0566" class="has-text-color"><strong>Below this block, you will see a single image with a circle mask applied.</strong></p>
<figure class="wp-block-image size-full is-style-circle-mask"><img decoding="async" 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" width="150" height="150"></figure>
<h1>H1 Heading</h1>
<h2>H2 Heading</h2>
<h3>H3 Heading</h3>
<h4>H4 Heading</h4>
<h5>H5 Heading</h5>
<h6>H6 Heading</h6>
<h2>Ordered list</h2>
<ol start="0"><li>The software should be licensed under the&nbsp;<a href="http://www.gnu.org/copyleft/gpl.html">GNU Public License</a>.</li><li>The software should be freely available to anyone to use for any purpose, and without permission.</li><li>The software should be open to modifications.<ol><li>Any modifications should be freely distributable at no cost and without permission from its creators.</li></ol></li><li>The software should provide a framework for translation to make it globally accessible to speakers of all languages.</li><li>The software should provide a framework for extensions so modifications and enhancements can be made without modifying core code</li></ol>
<h2>Unordered list</h2>
<ul><li>One</li><li>Two</li><li>Three<ul><li>Four</li></ul></li><li>Five</li></ul>
<figure class="is-layout-flex wp-block-gallery-1 wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747.jpg" alt="Brazil Beach" data-id="769" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/img_0747/" class="wp-image-769" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747.jpg 1600w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747-300x200.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747-1024x682.jpg 1024w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747-768x512.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747-1536x1023.jpg 1536w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0747-765x510.jpg 765w" sizes="(max-width: 1600px) 100vw, 1600px" width="1600" height="1066"><figcaption class="blocks-gallery-item__caption">Jericoacoara Ceara Brasil</figcaption></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0513-1.jpg" alt="Huatulco Coastline" data-id="768" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/alas-i-have-found-my-shangri-la/" class="wp-image-768" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0513-1.jpg 800w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0513-1-300x200.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0513-1-768x512.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0513-1-765x510.jpg 765w" sizes="(max-width: 800px) 100vw, 800px" width="800" height="533"><figcaption class="blocks-gallery-item__caption">Sunrise over the coast in Huatulco, Oaxaca, Mexico</figcaption></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill.jpg" alt="Windmill" data-id="767" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery//dcf-1-0/" class="wp-image-767" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill.jpg 1600w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill-300x225.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill-1024x768.jpg 1024w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill-768x576.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill-1536x1152.jpg 1536w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/windmill-680x510.jpg 680w" sizes="(max-width: 1600px) 100vw, 1600px" width="1600" height="1200"><figcaption class="blocks-gallery-item__caption">Windmill shrouded in fog at a farm outside of Walker, Iowa</figcaption></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0767.jpg" alt="Huatulco Coastline" data-id="770" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/img_0767/" class="wp-image-770" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0767.jpg 800w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0767-300x200.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0767-768x512.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/img_0767-765x510.jpg 765w" sizes="(max-width: 800px) 100vw, 800px" width="800" height="533"><figcaption class="blocks-gallery-item__caption">Coastline in Huatulco, Oaxaca, Mexico</figcaption></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2012/06/dsc20040724_152504_532.jpg" alt="" data-id="807" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/dsc20040724_152504_532-2/" class="wp-image-807" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2012/06/dsc20040724_152504_532.jpg 640w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2012/06/dsc20040724_152504_532-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" width="640" height="480"></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049.jpg" alt="Big Sur" data-id="766" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/michelle_049/" class="wp-image-766" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049.jpg 1600w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049-300x225.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049-1024x768.jpg 1024w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049-768x576.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049-1536x1152.jpg 1536w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/michelle_049-680x510.jpg 680w" sizes="(max-width: 1600px) 100vw, 1600px" width="1600" height="1200"><figcaption class="blocks-gallery-item__caption">Beach at Big Sur, CA</figcaption></figure></li></ul><figcaption class="blocks-gallery-caption">images are not linked</figcaption></figure>
<blockquote class="wp-block-quote"><p>Quote</p><cite>Cite</cite></blockquote>
<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" __idm_id__="6266881"></audio></figure>
<div class="wp-block-cover has-background-dim" style="background-image:url(https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2008/06/dsc04563.jpg);min-height:274px"><div class="wp-block-cover__inner-container">
<p class="has-text-align-center has-large-font-size">Cover block with background image</p>
</div></div>
<p>The file block has a setting that lets us show or hide a download button with editable text: </p>
<div class="wp-block-file"><a 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" download="">Download</a></div>
<div class="wp-block-file"><a href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf">File Block PDF</a></div>
<p>Video blocks have settings for showing and hiding the playback controls. Use autoplay and playback controls responsibly. </p>
<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" __idm_id__="6266882"></video><figcaption>This is a video block caption.</figcaption></figure>
<p>The video block below is muted and has a poster image that displays before the video starts:</p>
<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>
<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>
<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>
<p>In addition, they also get the options of the image dimensions 25%, 50%, 75%, 100% or a set width and height.</p>
<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" 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></div>
<p>The image above happens to be <em><strong>centered</strong></em>.</p>
<div class="wp-block-image"><figure class="alignleft"><img decoding="async" 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></div>
<p>The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is <em><strong>left aligned</strong></em>. </p>
<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>
<p>And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.</p>
<figure class="wp-block-image"><img decoding="async" 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>
<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>
<div class="wp-block-image"><figure class="alignright"><img decoding="async" 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></div>
<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>
<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>
<p>And just when you thought we were done, we’re going to do them all over again with captions!</p>
<div class="wp-block-image size-full wp-image-906"><figure class="aligncenter"><a href="https://en.support.wordpress.com/images/image-settings/"><img decoding="async" 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>Look at 580×300 getting some <a title="Image Settings" href="https://en.support.wordpress.com/images/image-settings/">caption</a> love.</figcaption></figure></div>
<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>
<div class="wp-block-image size-full wp-image-904"><figure class="alignleft"><img decoding="async" 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>Itty-bitty caption.</figcaption></figure></div>
<p>The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is <em><strong>left aligned</strong></em>. </p>
<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>
<p>And now for a <em><strong>massively large image</strong></em>. It also has <em><strong>no alignment</strong></em>.</p>
<figure class="wp-block-image alignnone wp-image-907"><img decoding="async" 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>Massive image comment for your eyeballs.</figcaption></figure>
<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>
<div class="wp-block-image size-full wp-image-905"><figure class="alignright"><img decoding="async" 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>Feels good to be right all the time.</figcaption></figure></div>
<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>
<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>
<p>Imagine that we would find a use for the extra wide image! This image has the <em>wide width</em> alignment:</p>
<figure class="wp-block-image alignwide"><img decoding="async" loading="lazy" 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" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg 1200w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-300x100.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-1024x341.jpg 1024w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-768x256.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-825x275.jpg 825w" sizes="(max-width: 1200px) 100vw, 1200px" width="1200" height="400"></figure>
<p><strong>Can we go bigger?</strong> This image has the <em>full width</em> alignment:</p>
<figure class="wp-block-image alignfull"><img decoding="async" loading="lazy" 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" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1.jpg 1200w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-300x100.jpg 300w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-1024x341.jpg 1024w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-768x256.jpg 768w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2013/03/image-alignment-1200x4002-1-825x275.jpg 825w" sizes="(max-width: 1200px) 100vw, 1200px" width="1200" height="400"></figure>
<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>
<div class="wp-block-image"><figure class="alignright is-resized"><img decoding="async" loading="lazy" src="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer.jpg" alt="" class="wp-image-827" srcset="https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer.jpg 640w, https://devel-81-v2.tongkolspace.com/ugm-theme-2022/wp-content/uploads/2010/08/manhattansummer-300x225.jpg 300w" sizes="(max-width: 160px) 100vw, 160px" width="160" height="120"></figure></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment