<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ED105</author_name>
  <author_url>https://blog.hatena.ne.jp/ED105/</author_url>
  <blog_title>43号線を西へ東へ</blog_title>
  <blog_url>https://driveon43.com/</blog_url>
  <categories>
    <anon>HTML&amp;CSS</anon>
    <anon>このブログについて</anon>
  </categories>
  <description>長いCSSコードやPythonコードなどを折りたたんで隠したり、FAQのタイトルをクリックすれば解説が表示されたりするHTMLタグがディテイルズタグ「&lt;details&gt;〜&lt;/details&gt;」。 Detailsタグの例 内容が折りたたまれて、隠されています。 &lt;details&gt; は2014年に正式導入されたHTML5のタグだが、現在ほぼ全てのブラウザで使うことができるらしい。積極的に使っていこうと思う。 昨年コードを折りたたみたいと調べたときはJavaScriptを使ったやつしか見つけられなかったのだが、私の検索技術が上がったのだろうか。とにかく忘れないうちにメモしておく。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdriveon43.com%2Fentry%2F2024%2F05%2F05%2F152038&quot; title=&quot;コード部分を折りたたむ【detailsタグ】の使い方 - 43号線を西へ東へ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-05 15:20:38</published>
  <title>コード部分を折りたたむ【detailsタグ】の使い方</title>
  <type>rich</type>
  <url>https://driveon43.com/entry/2024/05/05/152038</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
