Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>
<head>
  <title>Example Site - Frequently Asked Questions(FAQ)</title>
	<meta name="description" content="This is text from the page's Meta Description">
</head>
<body>

	
	<!-- BEGIN STRUCTURED DATA -->
	<script type="application/ld+json">
		{
			"@context": "https://schema.org",
			"@type": "FAQPage",
			"mainEntity": [{
				"@type": "Question",
				"name": "What is the return policy?",
				"acceptedAnswer": {
					"@type": "Answer",
					"text": "Most unopened items in new condition and returned within <strong>90 days</strong> will receive a refund or exchange. Some items have a modified return policy noted on the receipt or packing slip. Items that are opened or damaged or do not have a receipt may be denied a refund or exchange. Items purchased online or in-store may be returned to any store.<br /><p>Online purchases may be returned via a major parcel carrier. <a href='http://example.com/returns'> Click here </a> to initiate a return.</p>"
				}
			}, {
				"@type": "Question",
				"name": "How long does it take to process a refund?",
				"acceptedAnswer": {
					"@type": "Answer",
					"text": "We will reimburse you for returned items in the same way you paid for them. For example, any amounts deducted from a gift card will be credited back to a gift card. For returns by mail, once we receive your return, we will process it within 4–5 business days. It may take up to 7 days after we process the return to reflect in your account, depending on your financial institution's processing time."
				}
			}, {
				"@type": "Question",
				"name": "What is the policy for late/non-delivery of items ordered online?",
				"acceptedAnswer": {
					"@type": "Answer",
					"text": "Our local teams work diligently to make sure that your order arrives on time, within our normaldelivery hours of 9AM to 8PM in the recipient's time zone. During  busy holiday periods like Christmas, Valentine's and Mother's Day, we may extend our delivery hours before 9AM and after 8PM to ensure that all gifts are delivered on time. If for any reason your gift does not arrive on time, our dedicated Customer Service agents will do everything they can to help successfully resolve your issue. <br/> <p><a href='https://example.com/orders/'>Click here</a> to complete the form with your order-related question(s).</p>"
				}
			}, {
				"@type": "Question",
				"name": "When will my credit card be charged?",
				"acceptedAnswer": {
					"@type": "Answer",
					"text": "We'll attempt to securely charge your credit card at the point of purchase online. If there's a problem, you'll be notified on the spot and prompted to use another card. Once we receive verification of sufficient funds, your payment will be completed and transferred securely to us. Your account will be charged in 24 to 48 hours."
				}
			}, {
				"@type": "Question",
				"name": "Will I be charged sales tax for online orders?",
				"acceptedAnswer": {
					"@type": "Answer",
					"text":"Local and State sales tax will be collected if your recipient's mailing address is in: <ul><li>Arizona</li><li>California</li><li>Colorado</li></ul>"}
				}]
			}
		</script>
		<!-- END STRUCTURED DATA -->


	
		<div id="collection-title"><a target="_blank" href="https://codepen.io/collection/DNvPJE/"><svg id="codepen-logo" height="24" width="24" viewBox="0 0 128 128" version="1.1" aria-hidden="true"><path fill="#fff" d="M100 34.2c-.4-2.6-3.3-4-5.3-5.3-3.6-2.4-7.1-4.7-10.7-7.1-8.5-5.7-17.1-11.4-25.6-17.1-2-1.3-4-2.7-6-4-1.4-1-3.3-1-4.8 0-5.7 3.8-11.5 7.7-17.2 11.5L5.2 29C3 30.4.1 31.8 0 34.8c-.1 3.3 0 6.7 0 10v16c0 2.9-.6 6.3 2.1 8.1 6.4 4.4 12.9 8.6 19.4 12.9 8 5.3 16 10.7 24 16 2.2 1.5 4.4 3.1 7.1 1.3 2.3-1.5 4.5-3 6.8-4.5 8.9-5.9 17.8-11.9 26.7-17.8l9.9-6.6c.6-.4 1.3-.8 1.9-1.3 1.4-1 2-2.4 2-4.1V37.3c.1-1.1.2-2.1.1-3.1 0-.1 0 .2 0 0zM54.3 12.3L88 34.8 73 44.9 54.3 32.4V12.3zm-8.6 0v20L27.1 44.8 12 34.8l33.7-22.5zM8.6 42.8L19.3 50 8.6 57.2V42.8zm37.1 44.9L12 65.2l15-10.1 18.6 12.5v20.1zM50 60.2L34.8 50 50 39.8 65.2 50 50 60.2zm4.3 27.5v-20l18.6-12.5 15 10.1-33.6 22.4zm37.1-30.5L80.7 50l10.8-7.2-.1 14.4z"></path></svg>Collection: "Structured-Data-JSON-LD"</a></div>
		<h2>Test this page's embeded schemas:</h2>
		<ul>
			<li>
				<a target="_blank" href="https://search.google.com/test/rich-results?view=search-preview&id=jaYFrmUJmNTLsNHnby6dVw">Open in Rich Results test tool</a>
			</li>	
		</ul>
		
		<hr>
	
		<a target="_blank" href="https://github.com/JayHoltslander/Structured-Data-JSON-LD"><svg id="github-logo" height="32" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg><span id="repo-name">Structured-Data-JSON-LD</span></a><a class="github-button" href="https://github.com/JayHoltslander/Structured-Data-JSON-LD" data-icon="octicon-star" data-size="large" aria-label="Star JayHoltslander/Structured-Data-JSON-LD on GitHub">Star</a><a class="github-button" href="https://github.com/JayHoltslander/Structured-Data-JSON-LD/subscription" data-icon="octicon-eye" data-size="large" aria-label="Watch JayHoltslander/Structured-Data-JSON-LD on GitHub">Watch</a>
	
	</body>
</html>
              
            
!

CSS

              
                body {padding: 2em;}
a {text-decoration: none;}
#github-logo {position:relative; float:left; margin:0 0.5em; top: -2px;}
#codepen-logo {position:relative; float:left; margin:0; top: -1px;}
.github-button {padding-top:20px;}
#repo-name {position:relative; top: -5px; font-size:1.2em; font-weight:bold;margin-right:1em; color:#000;}
#collection-title {
	background-color: #000;
	padding: 0.5em;
	a {
		color: #fff;
		font-weight: bold;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console