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

              
                <article id="main">
		<h1 id="title">Alexander Graham Bell</h1>
		<div>A scientist and inventor of the telephone</div>
		<div id="img-div">
			<img id="image"			src="https://www.biography.com/.image/t_share/MTI3NTk5NjI3MTIwNzEyMTU4/alexander-graham-bell-photojpg.jpg"
				alt="A picture of Graham Bell">
			<div id="img-caption">Portrait photo of Bell from biography.com</div>
		</div>
		<div id="tribute-info">
			<ul>
				<h3>A timeline of Alexander Graham Bell's life</h3>
				<li>
					<strong>1847</strong> - Born in Edinburg, Scotland to Professor Alexander Melville and Eliza Grace Symonds. His father was a famous elocutionist or speech expert and teacher
				</li>
				<li>
					<strong>1959</strong> - At the age of 12, invented a machine that could clean wheat grains and removes the husks - his first machine. His mother began to lose her hearing same year, so he learned a manual finger language and also developed a technique to communicate clearly with her. His preoccupation with his mother's deafness led him to study acoustics.
				</li>
				<li>
					<strong>1863</strong> - became interested in speech machines when his father took him to see an "automation machine" that imitated the sound of the human voice. He translated a German book by another famous scientist, Baron Wolfgang von Kempelen, so that he could build a machine with the help of his brother, Melville
				</li>
				<li>
					<strong>1865</strong> his family moved to London but Aleck, as he was called, stayed in Scotland and became a teacher of elocution and music when he was 16
				</li>
				<li>
					<strong>1866</strong> joins his older brother Melville as a student at the University of Edinburgh. He suffered illness from exhaustion and his health kept him bedridden most of the time. His younger brother Edward was also sick with tuberculosis
				</li>
				<li>
					<strong>1867</strong> younger brother, Edawrd Charles Bell, dies of tuberculosis and his family moves to Canada
				</li>
				<li>
					<strong>1870</strong> older brother, Alexander Melville Bell, also dies of complications due to tuberculosis
				</li>
				<li>
					<strong>1871</strong> - Moves to Boston, Massachusetts, United States to teach others his method of Visible Speech System, to help the deaf and speech-impaired people. The "Visible Speech" is a system of phonetic symbols for the deaf to make them understand easily
				</li>
				<li>
					<strong>1872</strong> -  opened a school in Boston called the "Vocal Physiology and Mechanics of Speech for deaf students. Helen Keller was one of his famous students.
				</li>
				<li>
					<strong>1874</strong> - starts experimenting on the phone autograph, a machine that helps plot sound waves. In the summer of this year he came up with the idea of a telephone. He hired an assistant named Thomas Watson same year
				</li>
				<li>
					<strong>1875</strong> - proves that telephone works with the help of his assistant, Thomas Watson, whose accidental pluck of one of the metal reeds in the autograph machine showed that a telephone could transmit sounds
				</li>
				<li>
						<strong>1877</strong> - marries Mabel Hubbard
				</li>
				<li>
					<strong>1881</strong> - made other inventions like the phonograph, the metal detector, a metal jacket that helped people breathe, and an audiometer that helped detect hearing problems among 18 patents given in his name
				</li>
				<li>
					<strong>1915</strong> - for the first time ever, Bell called up Watson from across the continent. 38 years before this call, Bell and Watson had talked on the phone. This one was much better and the quality was clear and crisp to hear - the first trans-Atlantic phone call
				</li>
				<li>
					<strong>1922</strong> - dies of complications arising from diabetes, at his private estate in Cape Breton, Nova Scotia, Canada at age 75. He was survived by his wife Mabel, 2 daughters, Elsie and Marian and 9 grandchildren
				</li>
			</ul>
			<blockquote>
				<p>The day will come when the man at the telephone will be able to see the distant person to whom he is speaking.
				</p>
				<div>-- Alexander Graham Bell</div>
			</blockquote>
			<h3>
				To know more about Graham Bell, check his <a id="tribute-link" href="http://www.softschools.com/timelines/alexander_graham_bell_timeline/129/" target="_blank">comprehensive timeline</a> or <a id="tribute-link" href="https://en.wikipedia.org/wiki/Alexander_Graham_Bell" target="_blank">wikipedia entry</a>.
			</h3>
		</div>
	</article>
<!-- <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> -->

              
            
!

CSS

              
                body {
    background-color: #211;
    font-family: Helvetica, monospace, sans-serif;
    font-size: 1.2em;
    text-align: center;
    color: #114;
}

#main {
    background-color: #ddd;
    margin: 2em;
    padding: 1em;
    border-radius: 5px;
}

#title {
    margin: 1em auto;
}

#img-div {
    background-color: #eee;
    border-radius: 1%;
    padding: 1em;
    margin: 1em auto;
}

#image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1em auto;
}

ul>h3, ul>li  {
    text-align: left;
    margin: 1em 0;
}

blockquote {
    font-style: italic;
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console