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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div id="main">
  <h1 id="title">
Programming language <br>Java</h1>
  <div>Java is a programming language and computing platform first released by Sun Microsystems in 1995.</div>
  <div id="img-div">
    <img id="image" src="http://www.londonacademyofit.co.uk/learning-blog/images/1010/java-oracle.png" alt "pic from flickr">
    <div id="img-caption">
      Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, Java is everywhere!
    </div>
  </div>
<div id="tribute-info">
  <ul>
      <h3 id="headline">Here's a time line of Java:</h3>
      <li><b>JDK 1.0</b> - The first version was released on January 23, 1996. The first stable version, JDK 1.0.2, is called Java 1.</li>
      <li><b>JDK 1.1</b> - Major additions in the release on February 19, 1997 included:
an extensive retooling of the AWT event model
inner classes added to the language JavaBeans
JDBC RMI reflection which supported Introspection only, no modification at runtime was possible. JIT (Just In Time) compiler on Microsoft Windows platforms, produced for JavaSoft by Symantec
Internationalization and Unicode support originating from Taligent</li>
      <li><b>JDK 1.2</b> - Codename Playground. The release on December 8, 1998 and subsequent releases through J2SE 5.0 were rebranded retrospectively Java 2 and the version name "J2SE" (Java 2 Platform, Standard Edition) replaced JDK to distinguish the base platform from J2EE (Java 2 Platform, Enterprise Edition) and J2ME (Java 2 Platform, Micro Edition). This was a very significant release of Java as it tripled the size of the Java platform to 1520 classes in 59 packages. Major additions included: strictfp keyword the Swing graphical API was integrated into the core classes Sun's JVM was equipped with a JIT compiler for the first time
Java plug-in Java IDL, an IDL implementation for CORBA interoperability Collections framework</li>
      <li><strong>JDK 1.3</strong> - Codename Kestrel. The most notable changes in the May 8, 2000 release were: HotSpot JVM included (the HotSpot JVM was first released in April 1999 for the J2SE 1.2 JVM) RMI was modified to support optional compatibility with CORBA
Java Naming and Directory Interface (JNDI) included in core libraries (previously available as an extension) Java Platform Debugger Architecture (JPDA) JavaSound
Synthetic proxy classes</li>
      <li><strong>JDK 1.4</strong> - Codename Merlin. The February 6, 2002 release was the first release of the Java platform developed under the Java Community Process as JSR 59. Major changes included: Language changes
assert keyword (specified in JSR 41)
Library improvements Regular expressions modeled after Perl regular expressions
Exception chaining allows an exception to encapsulate original lower-level exception
Internet Protocol version 6 (IPv6) support
Non-blocking I/O (Java) (named NIO) specified in JSR 51) Logging API (specified in JSR 47)
Image I/O API for reading and writing images in formats like JPEG and PNG Integrated XML parser and XSLT processor (JAXP) (specified in JSR 5 and JSR 63) Integrated security and cryptography extensions (JCE, JSSE, JAAS)
Java Web Start included (Java Web Start was first released in March 2001 for J2SE 1.3) (specified in JSR 56) Preferences API (java.util.prefs) Public support and security updates for Java 1.4 ended in October 2008. Paid security updates for Oracle customers ended in February 2013.</li>
      <li><strong>Java 1.5</strong> - Codename Tiger. The release on September 30, 2004 was originally numbered 1.5, which is still used as the internal version number. The number was changed to "better reflect the level of maturity, stability, scalability and security of the J2SE".This version was developed under JSR 176. J2SE 5.0 entered its end-of-public-updates period on April 8, 2008; updates are no longer available to the public as of November 3, 2009. Updates were available to paid Oracle customers until May 2015. Tiger added a number of significant new language features: Generics: provides compile-time (static) type safety for collections and eliminates the need for most typecasts (type conversion) (specified by JSR 14)
Metadata: also called annotations; allows language constructs such as classes and methods to be tagged with additional data, which can then be processed by metadata-aware utilities (specified by JSR 175)
Autoboxing/unboxing: automatic conversions between primitive types (such as int) and primitive wrapper classes.
</li>
      <li><b>Java 1.6</b> - Codename Mustang. As of the version released on December 11, 2006, Sun replaced the name "J2SE" with Java SE and dropped the ".0" from the version number.Internal numbering for developers remains 1.6.0. This version was developed under JSR 270. During the development phase, new builds including enhancements and bug fixes were released approximately weekly. Beta versions were released in February and June 2006, leading up to a final release that occurred on December 11, 2006.
Major changes included in this version:
Support for older Win9x versions dropped; unofficially, Java 6 Update 7 was the last release of Java shown to work on these versions of Windows.[citation needed] This is believed[by whom?] to be due to the major changes in Update 10. Dramatic performance improvements for the core platform and Swing.
</li>
      <li><b>Java 1.7</b> - Java 7 (codename Dolphin) is a major update that was launched on July 7, 2011 and was made available for developers on July 28, 2011. The development period was organized into thirteen milestones; on June 6, 2011, the last of the thirteen milestones was finished. On average, 8 builds (which generally included enhancements and bug fixes) were released per milestone. The feature list at the OpenJDK 7 project lists many of the changes.</li>
      <li><b>Java 1.8</b> - ava 8 (codename: Spider) was released on March 18, 2014 and included some features that were planned for Java 7 but later deferred. Work on features was organized in terms of JDK Enhancement Proposals (JEPs). JSR 335, JEP 126: Language-level support for lambda expressions (officially, lambda expressions; unofficially, closures) under Project Lambda and default methods (virtual extension methods)which allow the addition of methods to interfaces without breaking existing implementations. Java 8 is not supported on Windows XP but as of JDK 8 update 25, it can still be installed and run under Windows XP. Previous updates of JDK 8 could be run under XP, but had to be installed after a forced installation by directly unzipping files from the installation executable. From October 2014, Java 8 was the default version to download (and then again the download replacing Java 9) from the official website."Oracle will not post further updates of Java SE 8 to its public download sites for commercial use after January 2019".</li>
      <li><B>Java 1.9</B> - At JavaOne 2011, Oracle discussed features they hoped to release for Java 9 in 2016. Java 9 should include better support for multi-gigabyte heaps, better native code integration, a different default garbage collector (G1, for "shorter response times") and a self-tuning JVM. In early 2016, the release of Java 9 was rescheduled for March 2017, later again postponed four more months to July 2017, and changed again to be finally available on September 21, 2017, due to controversial acceptance of the current implementation of Project Jigsaw by Java Executive Committee, which led Oracle to fix some open issues and concerns, and to refine some critical technical questions. In the last days of June 2017, Java Community Process expressed nearly unanimous consensus on the proposed Module System scheme.</li>
      
    <blockquote>
      <p>"The computer programmer is a creator of universes for which he alone is the lawgiver. No playwright, no stage director, no emperor, however powerful, has ever exercised such absolute authority to arrange a stage or field of battle and to command such unswervingly dutiful actors or troops."</p>
      <div>Joseph Weizenbaum</div><br>
    </blockquote>
    <h3>Some more information about Java <a id="tribute-link" href="https://en.wikipedia.org/wiki/Java_(programming_language)" target="_blank">Wikipedia </a>.</h3>
  </div>
</div>
  
  
              
            
!

CSS

              
                html,body{
  font-family:"Verdana", Helvetica, sans-serif;
  text-align:center;
  min-width:260px;
  color:gray;
  
}
#main{
  margin:5px;
  padding:5px;
  border:30px solid;
  border-radius:50px;
  
}
img{
  max-width: 100%; 
  display: block; 
  height: auto;
  margin: auto;
}
#img-div{
  margin:-5px;
  margin-top:10px;
  width:100%;
    
}
#img-caption{
  margin:15px;
}
#headline{
  margin-top:50px;
  text-align:left;
}
ul{
  max-width:850px;
  margin:0 auto;
  text-align:left;
}
li{
  margin: 10px;
}
blockquote{
  font-style: italic;
}
              
            
!

JS

              
                
              
            
!
999px

Console