cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <div class="jumbotron">
  <h1><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/2000px-Google_2015_logo.svg.png" width="133">  SERP Snippet</h1>
  <p>Use this tool when crafting your Title and Meta descriptions, you can see a preview of your site's snippet on Search Engine Results Page (SERPs).

  <div>URL: <input type="url" name="url" placeholder="http://www.site.com/slug-less-than-5-words" style="width: 315px;" placeholder="Add comments:" onkeyup="document.getElementById('urlSlug').innerHTML = this.value"></div>
  <div>SEO Title: <input type="text" id="title" name="title" style="width: 315px;" placeholder="Titles truncated after approx. 70 characters" onkeyup="titleCheckPreview()">
  <div>Meta Description: <input type="text" id="description" name="description" style="width: 315px;" placeholder="Descriptions truncated after approx. 150 characters" onkeyup="metaCheckPreview()"></div>
  <div><strong><mark>SERP Preview:
    <div id="seoTitle"></div>
    <div id="urlDomain"></div>
    <div id="urlSlug"></div>
    <div id="metaDescription"></div>      </div>
              // On keyUp, check & preview Title
function titleCheckPreview(){

// Title character count more than 70
function checkTitleLength() {
 var strTextTitle = title.value;
 strTextTitle = strTextTitle.replace(/^\s+|\s+$/g,"");

 if(strTextTitle.length > 70) {
  title.style.backgroundColor = "#F88379";
 } else {
  title.style.backgroundColor = "#ffffff";

// Title SERP Preview
function previewTitle(){
  var inputBox = document.getElementById('title');
  document.getElementById('seoTitle').innerHTML = inputBox.value;

// On keyUp, check & preview Meta Description
function metaCheckPreview(){

// Meta Description count more than 150
function checkMetaLength() {
 var strTextMeta = description.value;
 strTextMeta = strTextMeta.replace(/^\s+|\s+$/g,"");

 if(strTextMeta.length > 150) {
  description.style.backgroundColor = "#F88379";
 } else {
  description.style.backgroundColor = "#ffffff";

// Meta Description SERP Preview
function previewMeta(){
  var inputBox = document.getElementById('description');
  document.getElementById('metaDescription').innerHTML = inputBox.value;

Loading ..................