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.
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<div class="firstLine">
<h1>Joanne</br>Chen</h1>
</div>
<div class="avator">
<img src="https://hexschool.github.io/webLayoutTraining1st/week1/photo.png" alt="Joanne Chen" >
</div>
<!-- 個人資料 -->
<div class="information">
<div class="titleLine">
<h2 class="secondTitle">個人資料<span class="title">PROFILE</span></h2>
</div>
<p>
陳久安 Joanne Chen <br>1997- <br>應屆畢業生/接案設計師/UI 設計實習生
</p>
<p>
UI 設計修行中/立志當斜槓青年<br> 獨立接案,內容涵蓋: <br>品牌規劃、視覺設計、編輯設計、標準字、物件及印刷品設計等。
</p>
</div>
<!-- 學歷 -->
<div class="education">
<div class="titleLine">
<h2 class="secondTitle">學歷<span class="title">EDUCATION</span></h2>
</div>
<p>
國立六角師範大學 視覺設計學系 學士學位 | 2016-2020</br>
國立六腳高級中學 美術班 | 2013-2016
</p>
</div>
<!-- skill block -->
<div class="skill">
<h2 class="secondTitle">技能 <span class="titleSpan">SKILLS</span></h2>
<hr>
<br>
<div class="skillItem">
<ul>
<li>Adobe Photosh</li>
<li>Adobe Illustrator</li>
<li>Adobe XD</li>
<li>Adobe Indesign</li>
<li>C4D</li>
<li>Adobe Premiere</li>
<li>語言:中文、英文</li>
</ul>
</div>
</div>
<!-- 工作經驗 -->
<div class="titleLine">
<h2 class="secondTitle">工作經驗<span class="title">EXPERIENCE</span></h2>
</div>
<div class="workExperience">
<div class="workContent">
<h3>六角學院 視覺設計實習生 | 2019/07-2020/06</h3>
<div class="logo">
<img src="https://raw.githubusercontent.com/hexschool/webLayoutTraining1st/13f2e6e6b718b6abafb62ce7a672d42fc39eaeae/week1/Group%201.svg" alt="Group">
</div>
<p>
在六角學院長達一年的實習中,前期藉由公司課程掌握 HTML, CSS, Adobe XD,設計給學員使用的名片設計教材,並參與六角週年活動,設計各式周邊商品及活動網路宣傳圖。後期進入 UI 設計範疇,設計六角共筆部落格 - W3HexSchool、六角發案服務網介面設計、供給學員的教 案- RWD官方網站設計,並設計各式網頁活動宣傳圖。
</p>
<div class="workList">
<h3>獨立接案 Hao Jun 酒標設計 | 2019</h3>
<h3>獨立接案 Exulans 酒標設計 | 2019</h3>
<h3>獨立接案 桃園平鎮市民健走活動提案 | 2019</h3>
<h3>Simtree 興趣咖啡 工讀生 | 2018-2019</h3>
</div>
<div class="logo">
<img src="https://github.com/hexschool/webLayoutTraining1st/blob/master/week1/simtree.png?raw=true" alt="simtree">
</div>
<p>擔任外場及吧台服務生,學習咖啡相關知識。</p>
</div>
</div>
</div>
<div class="footer">
<h2 class="secondTitle">聯絡方式<span class="titleSpan">CONTACT METHOD</span></h2>
<hr>
<div class="content">
<p><a href="">Mail:xxxd@hexschool.com</a></p>
<p><a href="">Phone:0910123456</a></p>
<p>Kaohsiung, Taiwan</p>
<p>作品連結:<a href="">https://www.behance.net/xxxdddddd</a></p>
</div>
<div class="imgLogo">
<a href=""><img src="https://raw.githubusercontent.com/hexschool/webLayoutTraining1st/13f2e6e6b718b6abafb62ce7a672d42fc39eaeae/week1/facebook.svg" alt="facebook"></a>
<a href=""><img src="https://raw.githubusercontent.com/hexschool/webLayoutTraining1st/13f2e6e6b718b6abafb62ce7a672d42fc39eaeae/week1/instagram-alt.svg" alt="instagram"></a>
<a href=""><img src="https://raw.githubusercontent.com/hexschool/webLayoutTraining1st/13f2e6e6b718b6abafb62ce7a672d42fc39eaeae/week1/line.svg" alt="line"></a>
</div>
</div>
</body>
</html>
body{
font-family:'SF Pro Text',Arial;
}
.container{
width:1200px;
margin:0 auto;
margin-top: 40px;
}
h1{
font-size: 80px;
}
.firstLine{
border-bottom: 3px solid black;
padding-bottom: 24px;
}
.titleLine{
border-bottom:1px solid black;
padding-bottom: 8px;
}
.secondTitle{
font-size:32px;
font-weight:bold;
}
.title{
font-size:24px;
margin-left:20px;
color: #A00404;
}
.avator img{
padding:48px 0px;
}
.information p{
line-height: 36px;
margin-bottom: 24px;
}
.education p{
line-height: 36px;
margin-bottom: 24px;
}
.skill{
background-color: #415165;
color:white;
padding: 24px 0px;
margin-bottom: 24px;
}
.skill h2{
text-align: center;
}
.skill hr{
width:996px;
}
.skillItem{
margin:0 auto;
width: 200px;
line-height: 36px;
border-left: 1px solid #96A9C4;
padding-left:24px;
}
.workExperience{
width: 642px;
}
.workExperience h3{
margin-top: 16px;
font-size:24px;
font-weight:bold;
}
.logo img{
margin: 8px 0px;
}
.workExperience p{
line-height:36px;
}
.workList h3{
font-size:24px;
font-weight:bold;
margin: 32px 0px;
}
.workContent {
border-left:1px solid #96A9C4;
padding-left: 24px;
margin-bottom: 76px;
}
.footer{
background-color: #415165;
text-align:center;
}
.footer h2{
padding-top: 24px;
color: white;
}
.footer h2 .titleSpan{
font-size: 24px;
margin-left: 16px;
}
.footer hr{
width: 1200px;
}
.content{
margin-top:32px;
}
.content p{
color:white ;
margin-bottom:16px;
}
.imgLogo img{
margin-left:24px;
}
.imgLogo{
padding-bottom:48px;
}
.skill h2 .titleSpan{
font-size: 24px;
margin-left: 16px;
}
.content a{
color:white;
text-decoration:none;
}
.skillItem li{
line-height:1;
margin-bottom:20px;
}
Also see: Tab Triggers