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 URLs 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 its URL and the proper URL extension.
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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
<body id="main">
<div>
<h1 id="title">IT Career Improvement</h1>
<div class="background">
</br><p id="description">As you may be aware, career improvement is of the upmost importance. We all know the saying "If you are ever stagnant, your moving backwards". Our goal is to constantly help you grow and learn more and help strengthen you to be better and better. </p>
</div>
<form id="survey-form" action=mailto:rob84044@gmail.com method="post" enctype="text/plain">
<div id="ContactData" class="background" align="center">
<fieldset id="contact-info" class="col">
<div id="Name-Div">
<h3>1. Personal Contact Information</h3>
<label id="name-label" for="name">Name</label>
<input type="text" placeholder="Full Name" id="name" minlength="5" maxlength="25" size="25" autocomplete="name" autofocus required>
</br></br>
</div>
<div id="email-Div">
<label id="email-label" for="email">Email</label>
<input type="email" placeholder="Email" id="email" minlength="7" maxlength="50" size="25" autocomplete="email" placeholder="Enter Email Here" required>
</div>
</br>
<div id="phone-Div">
<label id="number-label" for="Phone Number">Phone Number</label>
<input type="tel" placeholder="XXX-XXX-XXXX" max="10" size="15" autocomplete="tel" required>
</div>
</fieldset>
</div>
<div id="Employment-Level-Data" class="background" align="center">
<fieldset id="Current-Job" >
<h3>2. Career Information</h3>
<div id="yearsOfExp">
<label id="YearsOfExperience" for="YearsOfExperience">Years of Work Experience</label>
<input id="number" type="number" placeholder="1" min="1" max="10" size="3" required>
</div>
</br>
<select id="dropdown" name="Current-Job-Level" required>
<option value="" disabled selected>Select Current Job Level</option>
<option value="Entry-Level">Entry Level IT (Service/Help Desk)</option>
<option value="Mid-Level">Mid Level IT(Infrastructure, DevOps, Management)</option>
<option value="High-Level">High Level IT(Senior level developer, Systems Admin)</option>
</select>
</br></br>
<select id="dropdown" name="What Industry Are You In" required>
<option value="" disabled selected>Select Industry</option>
<option value="Educational-IT">Educational IT</option>
<option value="Government-IT">Government IT</option>
<option value="Public-Sector-IT">Public Sector IT</option>
<option value="Entertainment-IT">Entertainment IT</option>
<option value="Medical-IT">Medical IT</option>
<option value="Transportation-IT">Transportation IT</option>
</select>
</fieldset>
</div>
<div id="Level-Of-Interest" class="background">
<fieldset>
<h3>3. Gauging Interest Level</h3>
<label for="I have little interest in bettering my professional skill Set"><input type="radio" name="interest" value="I have little interest in bettering my professional skill Set" checked>I have little interest in bettering my professional skill Set</label></br></br>
<label for="I have some interest in bettering my professional skill Set"><input type="radio" name="interest" value="I have some interest in bettering my professional skill Set"> I have some interest in bettering my professional skill Set</label></br></br>
<label for="I have a lot interest in bettering my professional skill Set"><input type="radio" name="interest" value="I have a lot interest in bettering my professional skill Set"> I have a lot interest in bettering my professional skill Set</label>
</fieldset>
</div>
<div class="background">
<fieldset>
<h3>4. Level Of Education</h3>
<label for="No post-secondary education"><input type="radio" name="education" Value="No post-secondary education" checked> No post-secondary education</label></br></br>
<label for=" I have some college Experience"><input type="radio" name="education" Value="I have some college Experience"> I have some college Experience</label></br></br>
<label for="I have a college degree"><input type="radio" name="education" Value="I have a college degree"> I have a college degree</label>
</fieldset>
</div>
<div id="Type-Of-Learning" class="background">
<fieldset>
<h3>5. How Would You Like To Learn</h3>
<label><input type="checkbox" value="1" name="typelearning" Value="I would be interested in In-Person education" checked> I would be interested in In-Person education</label></br></br>
<label><input type="checkbox" value="2" name="typelearning" Value="I would be interested in online-learning">I would be interested in online-learning</label></br></br>
<label><input type="checkbox" value="3" name="typelearning" Value="I would be interested in a hybrid learning environment"> I would be interested in a hybrid learning environment</label><br>
</div>
<div id="Final-Section" class="background">
<fieldset id="QuestionsAndComments">
<h3>6. Questions, Comments, Concerns</h3>
<textarea id="QuestionsAndComments" name="QuestionsAndComments" rows="10" wrap="hard" cols="50" placeholder="If you would like to include anything else please include it here." form="survey-form"></textarea>
</fieldset>
<input id="submit" type="submit" value="Submit">
</div>
</form>
</div>
</body>
#main {
background-image: url("https://media.cntraveler.com/photos/5ab2dd0960926f53f6fec0d2/16:9/w_1440,c_limit/George-Peabody-Library-E665TT.jpg") ;
background-size: cover;
background-repeat: no-repeat;
background-color: lightgreen;
}
#survey-form{
Border-style: ;
Border-color: ;
Border-width: ;
}
#name,
#email{
Width: 200px;
}
#description{
font-size: 2em;
font-weight: 800;
margin: 0 auto 0 auto;
width: 20em;
}
.background{
background-color: black;
padding: .6%;
text-align: center;
margin: 1% auto 1% auto;
width: 45%;
color: tan;
background-style: solid;
border-color: tan;
}
#title{
margin-left: auto;
margin-right: auto;
text-align: center;
width: 12em;
font-weight: 700;
font-size: 9em;
color: white;
padding: 1%;
text-shadow: 2px 25px 20px black;
}
h3{
padding: 0;
text-shadow: 9px 9px 15px black;
font-size: 2em;
align: center;
}
Also see: Tab Triggers