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.

+ add another resource


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


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.


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.


                <script type="text/javascript" src=""></script>
<script type="text/javascript">

$('#tabs div').hide();
$('#tabs div:first').show();
$('#tabs ul li:first').addClass('active');
$('#tabs ul li a').click(function(){ 
$('#tabs ul li').removeClass('active');
var currentTab = $(this).attr('href'); 
$('#tabs div').hide();
return false;
<div id="tabs">
      <li><a href="#tab-1">التبويب الرابع</a></li>
      <li><a href="#tab-2">التبويب الثالث</a></li>
      <li><a href="#tab-3">التبويب الثانى</a></li>
      <li><a href="#tab-4">التبويب الأول</a></li>
    <div id="tab-1">
    المحتوى الرابع
    <div id="tab-2">
      المحتوى الثالث
    <div id="tab-3">
    المحتوى الثانى
    <div id="tab-4">
     المحتوى الأول


                <style type="text/css">
* {
	margin: 0;
	padding: 0;
#tabs {
	font-size: 90%;
	margin: 20px ;
#tabs ul {
	background: #fff;
	width: 500px;
	padding-top: 4px;
#tabs li {
	margin-right: 8px;
	list-style: none;
* html #tabs li {
	display: inline;
#tabs li, #tabs li a {
	float: left;
#tabs ul {
	border-top:2px #FFFF66 solid;
	background: #FFFFCC;
#tabs ul a {
	color: #333333;
#tabs div {
	background: #FFFFCC;
	clear: both;
	padding: 15px ;
	min-height: 200px;
#tabs div h3 {
	margin-bottom: 12px;
#tabs div p {
	line-height: 150%;
#tabs ul li a {
	text-decoration: none;
	padding: 8px;
	color: #000;
	font-weight: bold;