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.
<main id="main">
<head><style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap');
</style>
<header>
<nav>
<ul>
<li>
<a href="#over-view"> OVERVIEW </a> </li></ul>
<ul>
<li>
<a href ="#tribute-info">TIMELINE</a>
</li> </ul>
<ul>
<li>
<a href="#block-quotes"> QUOTES </a> </li> </ul>
<ul>
<li>
<a href="#tribute-link"> RESOURCES </a> </li></ul> </nav> </header></head>
<h1 id="title">Dr. Elizabeth Blackwell</h1>
<p> The First Modren Female Doctor In United State Of America.</p>
<div id="img-div">
<img
id="image" src="https://www.ohsu.edu/sites/default/files/2019-06/Blackwell.png" alt="Dr. Elizabeth blackwell"/>
<figcaption id="img-caption"> <strong> Dr. Elizabeth Blackwell in her late ages. </strong> </figcaption> </div>
<body> <p id="over-view">Elizabeth Blackwell was the first woman in America to be awarded a medical degree. She pioneered the education of women in medicine, opening her own medical college for women. She was the first woman to be admitted to the British Medical Register, enabling her to practice medicine in the UK as well as in the USA.</p>
<img src="https://cdn.britannica.com/21/194221-050-F26400BB/Illustration-students-lecture-New-York-Infirmary-Womans-April-16-1870.jpg" alt="Illustration of medical students attending a lecture at the Woman's Medical College of the New York Infirmary, founded by Elizabeth and Emily Blackwell"/> <figcaption =img> <strong>
"Illustration of medical students attending a lecture at the Woman's Medical College of the New York Infirmary, founded by Elizabeth and her sister Emily Blackwell."</strong> </figcaption>
<section id="tribute-info"
<h3 id="headline"><strong> Below is a TimeLine of Dr. Blackwell's life:</strong></h3></section>
<ul>
<li>
<strong> 1821 </strong> Eilzabeth was born in England to Samule and Hannah Blackwell.</li>
<li>
<strong> 1832 </strong> Elizabeth's family moved to New York when she was 11 years old.</li>
<li>
<strong> 1839 </strong> Elizbeth took a teaching job in Kentucky to make money to pay for medical school.</li>
<li>
<strong> 1845 </strong>Elizabeth tried to enter medical school, no one would take her because she was a woman.So she moved to North Carolina where she studied under a local doctor.</li>
<li>
<strong> 1847 </strong>Geneva College in New York finally agreed to accept Elizabeth as a student. She moved to New York right away.</li>
<li>
<strong> 1848 </strong> Elizabeth was called a pioneer for women. This was because of her determination to be a doctor.</li>
<li>
<strong> 1849 </strong> Elizabeth became the first woman to graduate from medical school. No hospital would hire her, though, so she moved to Paris to practice medicine there.</li>
<li>
<strong> 1857 </strong> Elizabeth returned to New York but still no one would hire her.So She decided to open her own practice for women and children.</li>
<li>
<strong> 1861 </strong>During the Civil War, Elizabeth trained many women to work as nurses for the wounded soldiers. President Lincoln praised the work of the women during the war. </li>
<li>
<strong> 1868 </strong> Elizabeth earned a good reputation during the war, and she was finally accepted among the people. She opened her own college to train women in the medical field.</li>
<li>
<strong> 1869 </strong> Elizabeth traveled with Florence Nightingale to England, where she opened up another college for women. She was the first woman on the medical register in England.</li>
<li>
<strong> 1871 </strong>
Elizabeth wrote a book called The Religion of Health. She talked about cleanliness and being healthy.</li>
<li>
<strong> 1875 </strong> Elizabeth worked hard and became a professor of gynecology at the London School of Medicine.</li>
<li>
<strong> 1907 </strong> Elizabeth retired from teaching and practicing medicine when she had an accident that put her in bad health.</li>
<li>
<strong> 1910 </strong> Elizabeth died at the age of 89 in England. She faced a lot of trials and tribulations in order to fulfill her dreams. But she never gave up, and she will always be remembered as a pioneer of women.</li>
</ul>
<p id="block-quotes">
<h3 id="quotes"> Dr. Blackwell's best quotes: </h3>
"The excuse or toleration of cruelty upon any living creature by a woman is a deadly sin against the grandest force in nature - maternal love ... In not a single instance known to science has the cure of any human disease resulted necessarily from this fallacious method of research."
-- Elizabeth Blackwell </p>
<p>
"A blank wall of social and professional antagonism faces the woman physician that forms a situation of singular and painful loneliness, leaving her without support, respect or professional counsel."
-- Elizabeth Blackwell </p>
<p> "If society will not admit of woman's free development, then society must be remodeled".
-- Elizabeth Blackwell</p>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
<h3> Click on the link to learn more about Dr. Blackwell
<a id="tribute-link"
href="https://en.wikipedia.org/wiki/Elizabeth_Blackwell"
target="_blank">Learn More </a></h3>
</main>
header{ background: #f2f6f7;}
header::after {
content:'';
display: table;
clear: both;}
nav{
width: 100vw;
float: top;
display:flex;
}
nav ul{
margin: 0, 2vw;
padding:0;
list-style: none;
}
body{
margin: 0;}
nav li{
margin-right: 25px;
padding-top: 15px;
position: relative;
}
nav a{
color: #444;
text-decoration: none;
text-transform: uppercase;
font-size: 20px;
}
nav a:hover{
color:#000
}
nav a:before{
content: '';
display: block;
height: 5px;
background-color: #444;
position: absolute;
top: 0;
width: 0%;
transition: all ease-out-in 200ms;
}
nav a:hover:before{ width:100%}
html {
font-size: 28px;
}
body {
font-family: 'Libre Baskerville', serif;
background: #f2f6f7;
color: black;
text-align: center;
font-size: 20px;
line-height: 1.6;
margin: 0; }
h1 {
font-size: 20px;
margin-bottom: 0;}
@media (max-width: 460vw)
h1 { font-size: 20px;
line-height: 1.2;}
img {
max-width: 100%;
height: auto;
margin: 0 auto;
display: block;}
#img-div {
background: #bee6e4;
padding: 10px;
margin: 0;
}
#img-caption {
margin: 15px 0 5px 0;
font-size: 16px;
}
@media (max-width: 100%;) {
#img-caption: {
font-size: 1.4rem;
}
}
#headline {
margin: 50px 0;
text-align: center;
background: #f2f6f7; }
ul {
max-width: auto;
line-height: 1.6;
margin: 0 auto 50px auto;
text-align: left;6;
}
li {
margin: 16px 0; }
document.getElementsByTagName("h1")[0].style.fontSize = "6vw";
Also see: Tab Triggers