snipt

Ctrl+h for KB shortcuts

HTML

html named entity for an ellipsis

…
https://snipt.net/embed/d1303f95673ee733fc4b7f217757d922/
/raw/d1303f95673ee733fc4b7f217757d922/
d1303f95673ee733fc4b7f217757d922
html
HTML
1
2019-06-15T04:08:41
True
False
False
/api/public/snipt/3769/
html-named-entity-for-an-ellipsis
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ni">&amp;hellip;</span> </span></pre></div> </td></tr></table>
html

Bash

html 4.01 strict doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
https://snipt.net/embed/a78dbd0f552aceb8fbaf0eef59cc4c85/
/raw/a78dbd0f552aceb8fbaf0eef59cc4c85/
a78dbd0f552aceb8fbaf0eef59cc4c85
bash
Bash
2
2019-06-04T23:14:30
True
False
False
/api/public/snipt/3720/
html-401-strict-doctype-2
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>&lt;!DOCTYPE HTML PUBLIC <span class="s2">&quot;-//W3C//DTD HTML 4.01//EN&quot;</span> </span><span id="L-2"><a name="L-2"></a> <span class="s2">&quot;http://www.w3.org/TR/html4/strict.dtd&quot;</span>&gt; </span></pre></div> </td></tr></table>
doctype, html

HTML

drupal tutorial page title structure

<title>(current-page) | (site-title) - (slogan)</title>
https://snipt.net/embed/10835e4ad57769b06735778848d49105/
/raw/10835e4ad57769b06735778848d49105/
10835e4ad57769b06735778848d49105
html
HTML
1
2019-06-08T09:16:34
True
False
False
/api/public/snipt/2400/
drupal-tutorial-page-title-structure
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>(current-page) | (site-title) - (slogan)<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
drupal, html

HTML+PHP

print drupal primary links with custom class

1
2
3
4
5
<div id="navigation">
	<?php if (isset($primary_links)) : ?>
		<?php print theme('links', $primary_links, array('class' => 'nav-links primary-nav-links')) ?>
	<?php endif; ?>
</div>
https://snipt.net/embed/88fc4073a9c00645089f02d0c780fca8/
/raw/88fc4073a9c00645089f02d0c780fca8/
88fc4073a9c00645089f02d0c780fca8
html+php
HTML+PHP
5
2019-05-23T12:43:48
True
False
False
/api/public/snipt/2399/
print-drupal-primary-links-with-custom-class
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;navigation&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="cp">&lt;?php</span> <span class="k">if</span> <span class="p">(</span><span class="nb">isset</span><span class="p">(</span><span class="nv">$primary_links</span><span class="p">))</span> <span class="o">:</span> <span class="cp">?&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="cp">&lt;?php</span> <span class="k">print</span> <span class="nx">theme</span><span class="p">(</span><span class="s1">&#39;links&#39;</span><span class="p">,</span> <span class="nv">$primary_links</span><span class="p">,</span> <span class="k">array</span><span class="p">(</span><span class="s1">&#39;class&#39;</span> <span class="o">=&gt;</span> <span class="s1">&#39;nav-links primary-nav-links&#39;</span><span class="p">))</span> <span class="cp">?&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="cp">&lt;?php</span> <span class="k">endif</span><span class="p">;</span> <span class="cp">?&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
drupal, html, php

HTML

default drupal menu list items

1
2
3
4
5
<ul>
  <li>Menu Item 1</li>
  <li>Menu Item 2</li>
  <li>Menu Item 3</li>
</ul>
https://snipt.net/embed/c8b0f1e1660cc949bde57c3765540241/
/raw/c8b0f1e1660cc949bde57c3765540241/
c8b0f1e1660cc949bde57c3765540241
html
HTML
5
2019-06-01T12:42:44
True
False
False
/api/public/snipt/2381/
default-drupal-menu-list-items
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">ul</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Menu Item 1<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Menu Item 2<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Menu Item 3<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">ul</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
drupal, html

HTML

example of a list item with an anchor in html

<li><a href="url-of-item" title="title-of-item">title-of-item</a></li>
https://snipt.net/embed/d381a6162d8505483b39541691d638c9/
/raw/d381a6162d8505483b39541691d638c9/
d381a6162d8505483b39541691d638c9
html
HTML
1
2019-06-14T15:32:45
True
False
False
/api/public/snipt/2348/
example-of-a-list-item-with-an-anchor-in-html
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;url-of-item&quot;</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;title-of-item&quot;</span><span class="p">&gt;</span>title-of-item<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
html