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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
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.
If the stylesheet 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 CSS 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.
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.
<head><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"></head>
<div class="container-fluid">
<ul class="nav nav-tabs" role="navigation">
<li role="presentation" class="active"><a href="#header">B.C.</a></li>
<li role="presentation"><a href="#AboutMe">About Me</a></li>
<li role="presentation"><a href="#portfolio">Portfolio</a></li>
<li role="presentation"><a href="#contact">Contact</a></li>
</ul>
<div id="header">
<img id="header-pc" src="http://www.iconsdb.com/icons/preview/deep-pink/website-design-3-xxl.png">
<h1 class="text-center white-text">Front-end Developer</h1>
<h4 class="text-center head-intro white-text">This is a story of a 19-year-old enthusiatic web developer and designer.</h4>
</div>
<div id="AboutMe">
<h1 class="white-text text-center heading">About Me</h1>
<hr>
<div class="row">
<img id="icon" align="middle" src="https://specials-images.forbesimg.com/imageserve/5877b97b4bbe6f1f20eacdcf/416x416.jpg?background=000000&cropX1=171&cropX2=567&cropY1=106&cropY2=502" alt="icon of the author">
<div class"col-xs-12"><h4 class="white-text about-text">Front-End Developer and UX/UI designer, with practical experience in project management, branding strategy, and creative direction; devoted to functional programming and information architecture. The objective of designing a site is to ensure that when the users open up the site they see the information in a format that is easy to read and relevant. This is further complicated by the fact that users now use a large variety of devices with varying screen sizes and resolutions thus forcing the designer to take into consideration these aspects when designing the site. They need to ensure that their site comes up correctly in different browsers (cross-browser), different operating systems (cross-platform) and different devices (cross-device), which requires careful planning on the side of the developer.</h4></div>
</div>
</div>
<div id="portfolio">
<h1 class="white-text text-center heading">Portfolio</h1>
<hr>
<div class="row">
<div class="col-md-4 col-md-offset-1 col-xs-12"><img id="port" src="http://www.pestworld.org/media/1030/300x200.gif"></div>
<div class="col-md-4 col-md-offset-2 col-xs-12"><img id="port" src="http://www.pestworld.org/media/1030/300x200.gif"></div>
<div class="col-md-4 col-md-offset-1 col-xs-12"><img id="port" src="http://www.pestworld.org/media/1030/300x200.gif"></div>
<div class="col-md-4 col-md-offset-2 col-xs-12"><img id="port" src="http://www.pestworld.org/media/1030/300x200.gif"></div>
</div>
</div>
<div id="contact">
<h1 class="white-text text-center heading">Contact</h1>
<hr>
<div class="row">
<div class="col-xs-8">
<form>
<input class ="form-control" type="text" placeholder="Enter your name" required>
<h1></h1>
<input class ="form-control" type="text" placeholder="Email Address" required>
<h1></h1>
<input class ="form-control" type="text" placeholder="Phone Number" required>
<h1></h1>
<input class ="form-control" type="text" placeholder="Message" required>
<h1></h1>
<button type="submit" class="btn btn-primary">Submit <i class="fa fa-paper-plane"></i></button>
</form>
</div>
<div class="col-xs-4">
<div class="row row-bottom">
<h4 class="text-center white-text">Around the web</h4>
<div class="col-md-4 col-xs-12"><a href="#"><img class="icon icons8-Facebook-Filled" width="50" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACAUlEQVRoQ+2a/zEEMRTHv9eBDlABHaADVwEdoAIloAJUgArowF0FqMCogPnubG52Vzb7knjx7iaZyT+3+fV5P5J3eZlhvJwAOASw39ZAU/VPCwCsjwCefLPNPD8eA7gCsKO+vLQJ3gFctFCrEYYgBDhPG794r+sWqJm4C8IPZ8WXkzfhjRO8A6E5PeSN+W+95zQzB/Jm2CemJESf2SXIKYDbqdbGv88JcgeAW+06l3uCvBo4J3KFuCDId+4oFvpXkEwtMMygbzLs4K7DstWaOCMKhkas29J5SmvkCwDPrBfhAsVmXxqkObyEEGxmEmSZsDuaBGHEynguppgEOYrwDQdrEsT338ctmGHSZU68V9LZQyCf7fYbY3a9tlZAxCY0RlpBEmwgZFrmNRJa/JQsGLLQd0RF27RyQBhrPYso2suHbLUGJssB4W0Ob3VExbJGom51LIMwQj4QqcO4aUUdktoa6Qp0rbffCiL1DdeumlasxAYX5sPu2WdZ1UjViF8C1bTqrpXgG12hjXWvprWRpsUb8b0Mk5F21QwalyVTb5ogTeqtVGpaE6RJhrIw2SJOqkhtadBOC+SDV60lHwxogfQeDFB4UX/2E7SiAfLrCYdblybMX4OsILh43+B0fgJp+0yCUpsu9AneefVSeCEpEYiVD89KnDMhMKbt3MMzbw7yB39HdZJ4Xf20AAAAAElFTkSuQmCC" target"_blank"></a></div>
<div class="col-md-4 col-xs-12"><a href="#"><img class="icon icons8-LinkedIn-Filled" width="50" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACSUlEQVRoQ+2a+zUEMRTGv62ADqwKUAEqYCtABagAFaACVLBUQAd2K0AFSuB8c5I92cjjzoxNMuSeM3/sTl6/3EdukhnBL0cA9gBsqydQdOWvZgD4PAJ4cvU2cvx5COAawHjlw+vWwTuAcwW1aMEGIcBZt/aT17pRQE3HJghfnCYfTr8Ob/XEaxCa07Rfm9lqT2hmGuStYJ+IzRB9ZpMgxwDuYqULfz8hyD0AhtohywNBXgtYJ/pO4owgX4JW5gAuAbyoslwo+XtLUDdJEQkIIbi6u4SrbREwEpB9QxM2TDFhWwLiSmM00DqAzyS2E+lEArKjEjZXUzQ5BovsIgG5Uo7tGiwd/iI7hcq1JFGrSQOsARfjHxyXRCN6/IxQZvj1RbIsCmoDkmWA0k7/FUgo/HLCTB+Tlv0AwP0PTZUmS2EoZ8bAh4nsmlQbUh+RDk63F+qf0KEoaK5PTGYPpDAS0/pNEG6jqQmpiDPz1CBSALOcKJ8bAgh95jk2A0MAIUNUKzlAzHMz7rfpBwwAIYmmQqlBfGnNiQLywUTNKzUI141dx2hpOsyyfcJTT570eCU1SChBbRPmfwBVEGNKuqQoLhOpGsmVa/kctmqkasSyjers1oRUH6k+Un0kfIXR20dim5Y2HbQpay+MferOWVm8wY9tNzO+b67eijrD7TgZzWUohVvOjY6N5K7Gw76xBhmyVpY+GOCs/olPOLR5DAlm8R2KXtltG6eZEahUn6FP8Oh16eIpFLsJxIcXOrmvoHlFrj88s2/OGkV8AyQioZK+jIogAAAAAElFTkSuQmCC" target"_blank"></a></div>
<div class="col-md-4 col-xs-12"><a href="#"><img class="icon icons8-Flickr-Filled" width="50" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACPklEQVRoQ+2agTEEMRSG/6sAFaACVIAKUAE60AEqQQV0wFWAClABKmC+m2Qnt3Zuk81bk7vJm7lh2P297/1JvOxmohWJyYpwqAvkUtKxpN1CIV8kPUi6DvNrgzwXDNCuK0B7/ochyJUk3PiWxPdQvxfmypakM5cnqeEKuc4NLe9G88vCIMJ0fNEbV0JHftyV2wU60a4p85fCN2Z0gSzLSuYLP8u3ghQwf6ojBZgwl0J1pDoyUgXq0KKwB5L23VffHdMmPEmauq8pBuToDXJkXdKNa+8XJUqjeS7pq4fGQi8ZhMrfS6LzjAk65hNJONUVVnpJIFSO5iwWwicODHuFtjOWekkgOMFucUjcumEW3pujx7DFaR/RIEzExyEEwT2HwQJgrRcN4jcvOSzhJs1aLxqEJZWlNidYknGCsNaLBvmUxOTMCSb7hhOw1osGIYm1HAr3IMMXw1ovGsR6KFjrRYNYT05rvWgQ6+XSWi8ahOnBP6GjgfPkzj1MC2+31EsCYaLSM20mwny4R69dLYqVXhII+dPkUclYGCBoaxY1jRZ6ySDA4Ay9U98wYzhdRLbxuXqDQPzIYsL6T3tjxfLKJyVy9LJAUpIc+9oKMnaFU/WrI6kVG/v66sjYFU7Vr46kVmzs63sdWYaXoTxne3OV+vMOkSZvJ3x3PXZJM/T9Ju3VH3DoOjCAPhfSAJZ4YODUNaY0sp0HBgDwrmQU699ubdzgL3a9U8cN9hMMsxIDAPYzs6MbPpblcEBvQVcG5BcwHMczLc8kEQAAAABJRU5ErkJggg==" target"_blank"></a></div>
</div>
<div class="row">
<div class="col-md-4 col-xs-12"><a href="#"><img class="icon icons8-GitHub-Filled" width="50" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADrElEQVRoQ+2Zj5ENQRCHfxcBInAXASJwIkAEiAARIAJEwEWACBABIkAEiID6tra3ZvftbPfMzq5XSle9KuV2evub7uk/syf6R+SkIcdlSTclXZd0Lum0/6Wv+CaJ3wdJnyV9lPSzhQ1rQTD+tqRHPUCNTQC9kPRuDVQtCAAPewD+3ULwDEAva4BqQAB4KqkVwHQTAEI/QGEpASHm36wIobBR/YOE3N3+TLlroyB3JL3a0As5Q/HOA0lvPZIIyP0ewtO15d+Beb30Ag/kGCDM/kWYJRDCiTNxTMKZmQ2zHAgH+9NfOBPepnFmbswlgBwIEFToYxSyGTAjmQOhSj9fIPjVtx4GSgjyu1pJ/b0PFwsZDKWNubSg73FfPIdHpiAUua9OSOUOHRtAIbNein5q2kehnz7MejGep5pPxUsy6D1L9U9BUPzE2Vkv01U6ZrQM4B+Oomf9xnWPpUZFvDFd08LonI7fjvKRV1IQz52mdw+P8C4PhGeGME+NimaqKzXdaaHrIqGFyiGDGUh0IYtv9YNRoW1Fj5MM3gdXdBtrICVV/CD1BV9Y8phXAlJdXbU3kEi2YjE5n/rRZDxdICNCvFpiy7vsZSDkfOZtT0Ypz3t45d+pLwxxnjD3nxsIRZD+yhNaAw7YHhI9J3juzEAiqQ7j90q9tlFhu/6D7BFbwaLYRYp5hCy01G2a3XsUQ3tXtLaRSU9Ls1Z2QtvAQ9HaNspa0fR7IYmebA/hsuFe4EUjkGhBRC9zAClvS6EUUBIiMiqIUTeiGO/Rb20p9FnUkYiMWpTowTLFuJ0WegvhIrAkfEdNIwZRsa/NWEaTyDzNDhGCNpvjGWBahRnhBETUE5j6xS5JIoNV2pbgOQBSYLtBrwUCgENNx1t6MT47WOU6TjzFmbCOdw7GPIrnop8FuBuwi4iaEOU2ZwCPXj5gIIfKBAX837RjBoKdjUg0veZ0ZS8fWLA0B7TufEtmjimM3a0Nc1HJBd0WxTA6c0xB3As6WzCXwQ4uxSLx4zzDtMmlR4kMmSpdtHSJDcy0kSRjcVZajrrRmQO7CSngDzLk0qCUm9CafIVNdrMEJHuD40180Us77PJ05cInClL9ocdeHIXZEmT1pzeDIcyoG0vD11YgLkRpONBKUMRy10atQchOREPo1qbm5fYdZOqdGl1s5tyYXdIhdFFT+3KqMkD8ACp+cXLy06JI0bWPRSW1pRok7bnI69SXNUIIoaO2g14Nssb4pmtrQ6upES2U/QGfysUzRsYlUwAAAABJRU5ErkJggg==" target"_blank"></a></div>
<div class="col-md-4 col-xs-12"><a href="#"><img class="icon icons8-Twitter-Filled" width="50" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADPElEQVRoQ+2Z/XHUMBTENxVAB4QKQiogqQCoIFBBoAKSCiAVBCoIdAAVABVAKgAqgPndSBmdLOtJtmTf3EQz98fZkp5Wu+9D8oH2pB3sCQ7dA9k1Ju8ZacjIoaRHkh5K+uPm/Vo7/1qMsOhzSS8lASRuAPok6VLSrwwoxjLX9xjIEx7W7kZl/+eSrt0CSoZeOEBhXwC8dRtxHAPh5U9JryR9KLEwoc9rSe8mjGM9/NiEE0lsOO2ze7YVfkMjG5QTDOaGICOYaNX+Ollu/CqU1hdJTwMrLZmB7W8VcrLAAgJm2Gx85CQE8jthqBUYZHFmra7w/Q8nTwAgMZg+DoH8G5mI6AEgHxoL7d11wyCb1KttNjsEQpgjnqca7xiA/Gpba98I7V9JwrezPpJaMOy8MWJ7PI7wSahs3bZkHzLy3iWpEoNo3kpWfp6aeUts0+c0VkcIxOeR0snoh9QARTwf86EeQAYVSfwgDsG1oBhPSKRW8sB6SMsEAiss5EENgkxfXyel6qmpJsghRMKtlioaKQNuplpZYBxskwxHgVBnIQP0Tke034qZlvhMIHFCRBYtJdEKzF3uCCfM1VqtDLeehzxGJByV1tQSu/VCrfmSlXnICJEAOe2iX3hwyYjFyzhq9Yj51g7XvP/oqt3BmFT4nZMUaxY1pe8Ld5YvAoLEAHM0xVLHMVsnwpKE6Pv0qJHm4ByVVcpHYkPkEfyGbL92EHicOz6M3WuR2cPzO/8HZcGc7a0cm2XDYoTqdW0WPN4sGxaQXUmQyZKkxtnpu3YovnU3JebFh3X3u3YoHhxpx3zLAsI4wBC5uHResiWLwzlA/FiiFn7zbAE0ZpSq9ZHUmv0NH7mlB0vJg5O1eSXSSs0BAOQ2ODtbBo33XIfCvOnccxlBVsirR3KsllMIpoQRyhSyPAz0OvpWOXaKVYBwox1ncJ6x6PCjykzVJIcjJe6GZ3+LAQg6p9Jtde1fApiSHJuw3KTFV6ZM3BOQBwCIaofOIU75CAxBN79WhytCKvdk3OY3BeDBWc6Or/DzvlIKjIVzkcHCqde6LL42asWM+oSYYprF576LN/GHsajVbfIlJ7akteRaZtnaGyD/ATD+irOlq17qAAAAAElFTkSuQmCC" target"_blank"></a></div>
<div class="col-md-4 col-xs-12"><a href="#"><img class="icon icons8-Gmail-Filled" width="50" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACh0lEQVRoQ+2ZgTEEMRSG/6sAFdABKqADdEAFqMCpABXQATqgAnRABaiA+W6SnVzsJrm9zd7eyZu5GXPzkrz//e//N7dGWpEYrQgOFSBDY7IwUhjJ1AF/tC4k7ZtPpiM72fZJEp9Lu5sL5EXSTifH9LfJq6RdjrNAxpJgw413SUeSSB5C0OR7SVteMbAytkBCbACyonBBiGgyddTFM1KwQH4iBcIK7MBSn0H3YSE28iMLBIE/SFoLVPllunLTE5JTc9564LxvSYcI3xU7C+4kHUQKBfCJJIDlCOqABZobikdJx7YOC+RW0rn58sx0IsYOYADVZdBdaomxgF6uTd4VjXU14roUMwk725EqybENmAcQhVMQHQ7Fm8lBs66LVRpxxe66FKiZ1VDQANjhAdUmGCFY8G3V3wttMi2E72K1QEikKIqjyBQjYE0bmw7ZqgVSCdqABbSvn0YgbIKYN8xuqUYA5TQg9hBlLCgoZqtTgpb02aCfIBAw+HexVCOAnSabZlQZ2VDAghW0m9f0vJsZCJumGoE7nqxDA3Vj4QNC0LhX3cO3UyD24Lr7mV8U48moETFbJWdybwpQlQUI5yE6LHizjV05az6MrcacLxsQakk1giasvqBDPckKxB7MwwwRh24EbpEIGvOA0dToBYgVNNeW2I0gJOiFM+IWEDKCmKAHBaTOCFIFPTggrhHwd3XlThVETV5vGpmjxqSlBcjQXqkWRgojSdKdPamMVhmt2acmacX/GS1eFtTdWJdhtKZeYjfdVpcByNS/FRjQJlaShndBSfyumbxS8jsOM/wO31tQYanHMk78vq9eVAxtdFKB/MkrQFq3LtPCwkimxrbetjDSunWZFv4C2PihMwPeTx8AAAAASUVORK5CYII=" target"_blank"></a></div>
</div>
</div>
</div>
</div>
<div id="footer">
<h5 class="text-center white-text">B.C. © 2017. All Rights Reversed/// The navigation bar is not changed to three line menu in extra small devices.</h5>
</div>
</div>
#header{
background-color: #1F357F;
height: auto;
padding: 90px;
margin-bottom: 0px;
border-radius: 2%;
}
.head-text{
color: white;
}
.head-intro{
padding: 15px;
}
#AboutMe{
background-color: #FF8260;
margin-left: 10%;
margin-right: 10%;
margin-top: 0px;
border-radius: 2%;
}
#portfolio{
background-color: #82B45D;
margin-left: 10%;
margin-right: 10%;
margin-top: 0px;
border-radius: 2%;
padding-bottom: 20px;
}
#contact{
background-color: #4662FF;
margin-left: 10%;
margin-right: 10%;
margin-top: 0px;
border-radius: 2%;
}
.white-text{
color: white;
}
#icon{
width: 200px;
height: auto;
border-radius: 50%;
display: block;
margin: 0 auto;
}
.about-text{
line-height: 200%;
padding-left: 50px;
padding-right: 50px;
}
.heading{
padding-top: 20px;
}
#port{
height: auto;
display: block;
margin: 0 auto;
padding-top: 10px;
padding-botton: 10px;
}
#header-pc{
width: 200px;
height: auto;
display: block;
margin: 0 auto;
}
form{
padding-left: 20px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
.row-bottom{
padding-bottom:10px;
}
#footer{
background-color: #1F357F;
height: auto;
padding: 5px;
margin-top: 20px;
}
.icon{
display: block;
margin: 0 auto;
}
Also see: Tab Triggers