HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<main id="main">
<div class="container">
<div class="header-text">
<h1 id="title">Eddie Vedder</h1>
<p class="summary">Eddie Jerome Vedder (born Edward Louis Severson III; December 23, 1964) is an American musician, multi-instrumentalist and singer-songwriter, best known as the lead vocalist, one of three guitarists, and the primary lyricist of the American rock band Pearl Jam. </p>
<p class="summary summary-bottom">Vedder has been ranked at number 7 on a list of "Best Lead Singers of All Time", compiled by Rolling Stone.</p>
</div>
<div class="header-image" id="img-div">
<img id="image" src="" alt="">
<figcaption id="img-caption">`</figcaption>
</div>
<div class="content1">
<h2 class="quote-eddie">“I think music is the greatest art form that exists, and I think people listen to music for different reasons, and it serves different purposes. The best songs are the ones that make you feel something”. Eddie Vedder</h2>
</div>
<div class="content2">
<h2 id="tribute-info">Musical Projects:</h2>
<h3>Temple of the Dog</h3>
<p class="main-paragraphs">Temple of the Dog was an American rock supergroup that formed in Seattle, Washington in 1990. It was conceived by vocalist Chris Cornell of Soundgarden as a tribute to his friend, the late Andrew Wood, lead singer of the bands Malfunkshun and Mother Love Bone. The lineup included Stone Gossard on rhythm guitar, Jeff Ament on bass guitar (both ex-members of Mother Love Bone and later Pearl Jam), Mike McCready (Pearl Jam) on lead guitar, and Matt Cameron (Soundgarden and later Pearl Jam) on drums. Eddie Vedder appeared as a guest to provide some lead and backing vocals. </p>
<h3>Pearl Jam</h3>
<p class="main-paragraphs">Pearl Jam was formed in 1990 by Ament, Gossard, and McCready,[19] who then recruited Vedder and three different drummers in sequence.[9][25][26] The band originally took the name Mookie Blaylock, but was forced to change it when the band signed to Epic Records in 1991, instead calling their debut album Ten, after Blaylock's jersey number. </p>
<h3>Soundtrack contributions</h3>
<p class="main-paragraphs">Vedder has contributed solo material to several soundtracks and compilations, including the soundtracks for the films Dead Man Walking (1995), I Am Sam (2001), A Brokedown Melody (2004), Body of War (2007), and Reign Over Me (2007). Vedder collaborated with Pakistani musician Nusrat Fateh Ali Khan for his contributions to the Dead Man Walking soundtrack. He covered the Beatles' "You've Got to Hide Your Love Away" for the I Am Sam soundtrack. Vedder wrote "Man of the Hour" that Pearl Jam recorded for Tim Burton's Big Fish Soundtrack (2003)</p>
<h3>Into the Wild</h3>
<p class="main-paragraphs">Vedder contributed an album's worth of songs to the soundtrack for the 2007 film, Into the Wild. The soundtrack was released on September 18, 2007 through J Records. It includes covers of the Indio song "Hard Sun" and the Jerry Hannan song "Society".[49] Vedder said that having to write songs based on a narrative "simplified things". He said, "There were fewer choices. The story was there and the scenes were there."</p>
<h3>Ukulele Songs</h3>
<p class="main-paragraphs">Vedder released his second solo album titled Ukulele Songs, a collection of original songs and covers performed on the ukulele, on May 31, 2011. The first single from the album, "Longing to Belong", was released through digital retailers on March 21. A live DVD titled Water on the Road, featuring live performances from two shows in Washington, D.C. during Vedder's 2008 solo tour, was released the same day as Ukulele Songs. </p>
<h3>In film</h3>
<p class="main-paragraphs">The character of Jackson Maine in the movie 'A Star is Born' was influenced by Eddie Vedder. Bradley Cooper, who wrote the screenplay, produced, directed and starred in the film as Jackson Maine, hung out with Vedder for four or five days to get some tips from him about the character.</p>
</div>
<div class="footer">
<footer><p>Click here for more <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Eddie_Vedder">information about Eddie Vedder </a></p></footer>
</div>
</div>
</main>
body {
background-color: #f7f7f7;
font-family: "Roboto", sans-serif;
margin: 0;
text-align: center;
}
.container {
width: 90%;
max-width: 1000px;
margin: 3% auto;
display: grid;
background-color: #f7f7f7;
gap: 20px 0px;
grid-template-areas:
"header-image"
"header-text"
"content1"
"content2"
"footer";
}
/* Main header */
#title {
font-size: 50px;
margin: 100px 20px 0px;
margin-bottom: 20px;
}
.summary {
margin: 10px 0px 0px;
text-align: justify;
padding: 0% 3%;
line-height: 1.5rem;
}
.header-text {
grid-area: header-text;
background-color: #eeeeee;
}
.header-image {
grid-area: header-image;
min-width: 350px;
min-height: 700px;
background-image: url("https://raw.githubusercontent.com/aldhairescobar/Tribute-Page-FCC-/master/img/eddie.png");
background-size: cover;
background-position: center;
}
/* Quote */
.content1 {
grid-area: content1;
background-color: #929aab;
color: white;
}
.quote-eddie {
font-size: 1.2rem;
padding: 0% 3%;
line-height: 1.5rem;
}
/* main area */
.content2 {
grid-area: content2;
background-color: #eeeeee;
padding: 3% 3% 5%;
}
#tribute-info {
font-size: 1.8rem;
margin-bottom: 4rem;
}
.main-paragraphs {
text-align: justify;
line-height: 1.5;
}
/* footer */
.footer {
grid-area: footer;
background-color: #929aab;
color: white;
}
@media (min-width: 700px) {
/* Si tiene 700px o más (estos son los cambios) */
.container {
grid-template-columns: 1fr 1fr;
grid-template-rows: 700px;
grid-template-areas:
"header-text header-image"
"content1 content1"
"content2 content2"
"footer footer";
}
}
@media (max-width: 400px) {
/* Si tiene 400px o menos (estos son los cambios) */
.container {
width: 95%;
}
}
@media (max-width: 700px) {
/* Si tiene 700px o menos (estos son los cambios) */
#title {
margin-top: 35px;
}
.summary-bottom{
padding-bottom: 2.2rem;
}
}
img{
max-width: 100%;
display: block;
}
// !! 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.
Also see: Tab Triggers