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.
<article lang="zh">
<h1>MNBL女子决赛.昔加末攀高峰夺冠</h1>
<p>(吉隆坡<span class="u-upright">29</span>日讯)国手陈慧晶昨晚在第一届大马全国篮球联赛(MNBL)女子决赛中爆发,全场轰进<span class="u-upright">18</span>分<span class="u-upright">4</span>篮板,带领昔加末篮球公会以<span class="u-upright">60</span>比<span class="u-upright">51</span>击败吉隆坡高峰集团,以大热姿态在第一座MNBL奖杯上留名。</p>
<h2>陈慧晶夺生涯首个<span class="u-upright">MVP</span></h2>
<p>陈慧晶在初赛与半决赛并不是特别抢眼,岂知来到决赛却成为了球队的致胜功臣。身高<span class="u-upright">177</span>公分的陈慧晶此役<span class="u-upright">14</span>投<span class="u-upright">8</span>中,命中率高达<span class="u-upright">57%</span>,尤其最后一节更是独得<span class="u-upright">8</span>分,顶住了高峰队的反扑。凭藉决赛的精彩演出,陈慧晶也因此当选决赛<span class="u-upright">MVP</span>(最有价值球员),生涯首次获得这一项荣誉。</p>
<p>对于陈慧晶的表现,昔加末主帅戴正钧也赞不绝口,他说:「陈慧晶在这一场比赛的发挥是大家有目共睹的。而除了我们的<span class="u-upright">MVP</span>(陈慧晶),汪秀婷、邱嫊媚也在关键时刻投进了几个三分球,我们才能够在紧要关头将比分扩大。」</p>
<h2>多次靠三分球扩大比分</h2>
<p>昔加末靠三分球抛离对手的纠缠,本场比赛就出现了好多次,像第三节高峰队追至<span class="u-upright">20</span>比<span class="u-upright">26</span>时,邱嫊媚就轰进三分球;然后在<span class="u-upright">22</span>比<span class="u-upright">31</span>时,汪秀婷也射出一记三分弹;来到比赛最后<span class="u-upright">5</span>分钟高峰以<span class="u-upright">45</span>比
<span
class="u-upright">53</span>咬紧比分时,邱嫊媚又适时出手命中三分球,让高峰队多次努力无功而返。</p>
<p>除了陈慧晶,邱嫊媚与彭燕燕在此役也各射下<span class="u-upright">8</span>分,汪秀婷和钟佩金各得<span class="u-upright">7</span>分,彭慧萍虽然只得<span class="u-upright">5</span>分,但却抢下全场最高的<span class="u-upright">10</span>个篮板。</p>
<p>高峰队的陈巧婷此役的发挥也极为出色,射下<span class="u-upright">23</span>分<span class="u-upright">8</span>篮板,但却无法带领球队取胜。此外叶佛仪取得<span class="u-upright">10</span>分<span class="u-upright">5</span>篮板、李秀雯<span class="u-upright">8</span>分<span class="u-upright">6</span>篮板、伊查蒂
<span
class="u-upright">7</span>分<span class="u-upright">6</span>篮板等。</p>
<h2>雷升龙:发挥输对手<span class="u-upright">5%</span></h2>
<p>高峰队主帅雷升龙表示,高峰队其实在本场决赛发挥得不错,只是昔加末的表现更为出色、防守也比他们更为严谨。</p>
<p>雷升龙说:「我们和昔加末其实都属于同样水平的队伍,胜负关键就要看双方球员的临场表现,而在这一方面我们在决赛中输了<span class="u-upright">5%</span>。」</p>
<h2>盼队伍增多赛期拉长</h2>
<p>另一方面,戴正钧也谈到了MNBL的崛起。戴教练认为MNBL的主办对大马篮运来说是一个正面的发展,美中不足的是第一届的队伍少了些。他说:「但有了第一届就代表好的开始,希望以后参赛队伍会增加,赛期也拉长些。」</p>
</article>
body {
writing-mode: vertical-rl;
font-size: 1.2em;
line-height: 1.7;
}
article {
height: 25em;
text-align: justify;
margin-top: auto;
margin-bottom: auto;
}
h1 {
font-size: 141%;
font-weight: 700;
}
h2 {
font-size: 115%;
font-weight: 700;
}
p {
margin-left: 0.75em;
}
.u-upright {
text-combine-upright: all;
}
Also see: Tab Triggers