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.
<div class="loading">
<h2>ロード中です...</h2>
</div>
<div class="content">
<h1>犬種の歴史・概要</h1>
<p>シベリアからカナダ北極圏にかけてのツンドラ地帯を原産地とする、社会性に富んだ性格の大型犬種。進化系統上の祖先はスピッツのそれと同系とされている。<br>
極東北極圏を中心にトナカイ遊牧や狩猟による生活を営むチュクチ族(俗に「エスキモー」と総称される民族の一つ)によって、犬ぞりなどの牽引による人荷の運搬・狩猟補助などを行う用務犬として古くから重用されてきた。<br>
シベリア地帯やアラスカ半島を訪れた探険家や毛皮交易を行う北米商人らがチュクチ族を含めてエスキモーのことを「ハスキー」と呼称していたことから、その用務犬として用いられていた当犬種もハスキーと呼ばれるようになった。<br>
アムンセン探検隊などの極地探検犬にも活用されたほか、北極圏地域で盛んになったドッグレースや犬ぞりレースで優秀な成績を挙げる犬種としても知られる。<br>
また1925年、アラスカのノーム市でジフテリアが大流行した際に、ハスキー犬チームが氷点下50度にもなる酷寒の中544 kmもの距離をリレーしながら血清輸送して多くの人命を救い、その名誉犬バルト像がニューヨーク市のセントラル・パークに建立されるなどして、大いに認知されるに至った。<br>
バランスの取れた体躯、滑らかに伸びた毛皮のイメージをもつ美しい上毛と柔らかい下毛、狼を想わせる精悍な顔貌、人間に対する融和性などから人気を呼び、1930年以降のソビエト連邦政府によるシベリア国境貿易封鎖にともなう当犬種の輸出規制にもかかわらず、単なる極寒地での用務犬にとどまることなく北アメリカ経由で改良が加えられて全世界に広まり、現在では鑑賞犬やペットとして極地系犬種の中では特に抜きん出た人気を持つ。<br>
平均的な寿命は約13〜14年で、およそ5歳前後までが人間でいう成長期・青年期にあたるといわれている。成犬では、体高約40cm〜60cm、体重約15〜30kgほどになる。<br>
上毛は黒青色または茶褐色であり顔部・腹部は白毛で隈取模様であることが多いが、全身単色毛の個体も存在する。目は青色・灰色・茶色がほとんどであるが、しばしばその遺伝的特性から左右の虹彩に異なる色をもつ個体が存在する。<br>
一般的に当犬種のドッグショーにおける出陳基準としては、左右虹彩の色違いはすべての個体が容認され、毛色は顔部・腹部に白色毛が混じっている個体であれば可とされる。<br>
精悍な顔付と屈強な体躯からくる印象とは異なり、基本的に人間に対して友好的であり適正に育成された個体は用務犬としてもペットとしても非常に適している。適度な警戒心はあるものの、他人にも友好性を示すことがあるため、番犬には向いていない。一般的には積極的に吼えることのない犬種だが、その社会性のある特性から孤立した状態に長時間置かれると、狼などと同様に仲間に呼びかけようと遠吠えする傾向がある。<br>
日本においては、佐々木倫子作の漫画『動物のお医者さん』(雑誌「花とゆめ」連載)の大ヒットで知名度が一気に上がり、バブル景気の世相を追い風に飼育者が激増し、「ハスキー犬ブーム」として社会現象を引き起こした。しかし数年後に飼いきれなくなって動物保護センターに持ち込んだり捨てたりする飼い主が多く出た[1]。後年のTVドラマ化の際にはハスキー犬が安易に飼育できる犬でない旨のテロップが毎週流された。<br>
引用:<a href="https://ja.wikipedia.org/wiki/%E3%82%B7%E3%83%99%E3%83%AA%E3%82%A2%E3%83%B3%E3%83%BB%E3%83%8F%E3%82%B9%E3%82%AD%E3%83%BC" target="_blank">ウィキペディア</a></p>
</div>
/*ローディング*/
.loading {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 10;
background-color: #00acee;
display: flex;
align-items: center;
justify-content: center;
animation: fadeOut 1.5s 2.5s forwards;
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
visibility: hidden;
}
}
h2 {
opacity: 0;
animation: logo_fade 2s 0.5s forwards;
font-size: 30px;
color: #fff;
}
@keyframes logo_fade {
0% {
opacity: 0;
}
60% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/*ここまで*/
.content {
padding: 50px 100px;
margin-bottom: 100px;
}
Also see: Tab Triggers