MENU

HTMLパーサライブラリhtml.parser: HTML文書の解析に欠かせないPython標準モジュール

html.parser詳細 アイキャッチ
html.parser詳細

1990年代後半から開発が進められたPythonのhtml.parserは、HTML文書を構造化データとして読み解くのに重要な役割を果たしている。この記事では、html.parserの歴史と特徴に焦点を当てつつ、その利用法や内部メカニズムを探る。

目次

この記事の目次

  1. HTML文書の構造解析
  2. HTMLパーサライブラリの進化
  3. html.parserとその他のパーサライブラリとの比較
  4. パーサの詳細設定とカスタマイズ
  5. まとめ

HTML文書の構造解析

HTML文書の構造解析

html.parserはHTML文書を解析するためのツールであり、その基本的な機能はタグとテキストの区別や構造の再現にあり。具体的には、や<body>といったマークアップ要素を抽出し、それをPythonオブジェクトとして扱うことができる。</p> <p>このメカニズムによって、ユーザーはWebページから必要なデータだけを取り出すことが可能になり、それらを利用した様々なアプリケーション開発が容易になる。</p> <h2>HTMLパーサライブラリの進化</h2> <figure class="wp-block-image"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-parser-s2.png" alt="HTMLパーサライブラリの進化" class="lazyload" ><noscript><img decoding="async" src="https://serverside.jp/wp-content/uploads/2026/06/html-parser-s2.png" alt="HTMLパーサライブラリの進化" ></noscript></figure> <p>html.parserはPython 2.2から導入され、その後も継続的に改善されてきた。開発初期の頃は基本的な機能のみだったが、時間と共に複雑さや柔軟性を増し、より広範な用途に利用可能になった。「読み込み」段階では、対象となるHTMLドキュメントを一括で取り込む。次に「解析」というステップで、その文書の構造的要素を抽出する。最後に、「イベントハンドリング」プロセスを通じて特定のタグや属性に対してユーザー定義のアクションを設定できるようになる。</p> <h2>html.parserとその他のパーサライブラリとの比較</h2> <figure class="wp-block-image"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-parser-s3.png" alt="html.parserとその他のパーサライブラリとの比較" class="lazyload" ><noscript><img decoding="async" src="https://serverside.jp/wp-content/uploads/2026/06/html-parser-s3.png" alt="html.parserとその他のパーサライブラリとの比較" ></noscript></figure> <p>html.parserはPythonの標準ライブラリとして提供されるため、インストール不要で利用可能である一方、その機能範囲はそれほど広くない。これに対し、第三_party_ライブラリのBeautifulSoup4はHTML5規格にも対応しており、高度なデータ抽出能力を有する。html.parserとBeautyfulSoup4は、それぞれ異なる特長を持つが、どちらもWebスクレイピングやデータ解析などにおいて重要な役割を果たすものと言えるだろう。</p> <h2>パーサの詳細設定とカスタマイズ</h2> <figure class="wp-block-image"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-parser-s4.png" alt="パーサの詳細設定とカスタマイズ" class="lazyload" ><noscript><img decoding="async" src="https://serverside.jp/wp-content/uploads/2026/06/html-parser-s4.png" alt="パーサの詳細設定とカスタマイズ" ></noscript></figure> <p>html.parserは詳細なカスタマイズが可能で、ユーザーは自身に必要な機能のみを追加したり既存機能を置き換えたりできる。例えば、特定のタグだけを取り出すフィルターを作成することができ、更にはHTMLエンティティ("<",">","&"など)をプレーンテキストとして取り扱うことも可能だ。また、このパーサはデフォルトではXML形式の文書も処理できるよう設計されており、その柔軟性を活かして多様な用途に応用されることがある。</p> <h2>まとめ</h2> <p>html.parserはPythonでHTMLを解析する際に使用される重要なライブラリである。開発者にとっては既存の文書を効率よく処理し、必要な情報だけを抽出するために有用であり、今後も幅広く活用され続けるであろう。</p> <p class="notice"><small>※本記事はIT用語辞典の手書きドラフトです。公開前に最新情報・出典を確認のうえ加筆修正してください。</small></p> <div class="post-views content-post post-64427 entry-meta load-static"> <span class="post-views-icon dashicons dashicons-chart-bar"></span> <span class="post-views-label">Post Views:</span> <span class="post-views-count">1</span> </div> </div> <div class="p-articleFoot"> <div class="p-articleMetas -bottom"> <div class="p-articleMetas__termList c-tagList"> <a class="c-tagList__link hov-flash-up" href="https://serverside.jp/tag/h/" data-tag-id="30"> H </a> <a class="c-tagList__link hov-flash-up" href="https://serverside.jp/tag/it%e7%94%a8%e8%aa%9e%e9%9b%86/" data-tag-id="49"> IT用語集 </a> <a class="c-tagList__link hov-flash-up" href="https://serverside.jp/tag/%e5%9f%ba%e7%a4%8e%e7%9f%a5%e8%ad%98/" data-tag-id="50"> 基礎知識 </a> </div> </div> </div> <div class="c-shareBtns -bottom -style-block"> <div class="c-shareBtns__message"> <span class="__text"> よかったらシェアしてね! </span> </div> <ul class="c-shareBtns__list"> <li class="c-shareBtns__item -facebook"> <a class="c-shareBtns__btn hov-flash-up" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F" title="Facebookでシェア" onclick="javascript:window.open(this.href, '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=800,width=600');return false;" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-facebook" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -twitter-x"> <a class="c-shareBtns__btn hov-flash-up" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F&text=HTML%E3%83%91%E3%83%BC%E3%82%B5%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAhtml.parser%3A+HTML%E6%96%87%E6%9B%B8%E3%81%AE%E8%A7%A3%E6%9E%90%E3%81%AB%E6%AC%A0%E3%81%8B%E3%81%9B%E3%81%AA%E3%81%84Python%E6%A8%99%E6%BA%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB" title="X(Twitter)でシェア" onclick="javascript:window.open(this.href, '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600');return false;" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-twitter-x" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -hatebu"> <a class="c-shareBtns__btn hov-flash-up" href="//b.hatena.ne.jp/add?mode=confirm&url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F" title="はてなブックマークに登録" onclick="javascript:window.open(this.href, '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=1000');return false;" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-hatebu" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -pocket"> <a class="c-shareBtns__btn hov-flash-up" href="https://getpocket.com/edit?url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F&title=HTML%E3%83%91%E3%83%BC%E3%82%B5%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAhtml.parser%3A+HTML%E6%96%87%E6%9B%B8%E3%81%AE%E8%A7%A3%E6%9E%90%E3%81%AB%E6%AC%A0%E3%81%8B%E3%81%9B%E3%81%AA%E3%81%84Python%E6%A8%99%E6%BA%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB" title="Pocketに保存" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-pocket" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -line"> <a class="c-shareBtns__btn hov-flash-up" href="https://social-plugins.line.me/lineit/share?url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F&text=HTML%E3%83%91%E3%83%BC%E3%82%B5%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAhtml.parser%3A+HTML%E6%96%87%E6%9B%B8%E3%81%AE%E8%A7%A3%E6%9E%90%E3%81%AB%E6%AC%A0%E3%81%8B%E3%81%9B%E3%81%AA%E3%81%84Python%E6%A8%99%E6%BA%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB" title="LINEに送る" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-line" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -copy"> <button class="c-urlcopy c-plainBtn c-shareBtns__btn hov-flash-up" data-clipboard-text="https://serverside.jp/html-parser/" title="URLをコピーする"> <span class="c-urlcopy__content"> <svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-copy c-shareBtns__icon -to-copy" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M38,5.5h-9c0-2.8-2.2-5-5-5s-5,2.2-5,5h-9c-2.2,0-4,1.8-4,4v33c0,2.2,1.8,4,4,4h28c2.2,0,4-1.8,4-4v-33 C42,7.3,40.2,5.5,38,5.5z M24,3.5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S22.9,3.5,24,3.5z M38,42.5H10v-33h5v3c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1v-3h5L38,42.5z"/><polygon points="24,37 32.5,28 27.5,28 27.5,20 20.5,20 20.5,28 15.5,28 "/></svg> <svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-copied c-shareBtns__icon -copied" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M38,5.5h-9c0-2.8-2.2-5-5-5s-5,2.2-5,5h-9c-2.2,0-4,1.8-4,4v33c0,2.2,1.8,4,4,4h28c2.2,0,4-1.8,4-4v-33 C42,7.3,40.2,5.5,38,5.5z M24,3.5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S22.9,3.5,24,3.5z M38,42.5H10v-33h5v3c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1v-3h5V42.5z"/><polygon points="31.9,20.2 22.1,30.1 17.1,25.1 14.2,28 22.1,35.8 34.8,23.1 "/></svg> </span> </button> <div class="c-copyedPoppup">URLをコピーしました!</div> </li> </ul> </div> <div class="c-shareBtns -fix -style-block"> <ul class="c-shareBtns__list"> <li class="c-shareBtns__item -facebook"> <a class="c-shareBtns__btn hov-flash-up" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F" title="Facebookでシェア" onclick="javascript:window.open(this.href, '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=800,width=600');return false;" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-facebook" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -twitter-x"> <a class="c-shareBtns__btn hov-flash-up" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F&text=HTML%E3%83%91%E3%83%BC%E3%82%B5%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAhtml.parser%3A+HTML%E6%96%87%E6%9B%B8%E3%81%AE%E8%A7%A3%E6%9E%90%E3%81%AB%E6%AC%A0%E3%81%8B%E3%81%9B%E3%81%AA%E3%81%84Python%E6%A8%99%E6%BA%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB" title="X(Twitter)でシェア" onclick="javascript:window.open(this.href, '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600');return false;" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-twitter-x" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -hatebu"> <a class="c-shareBtns__btn hov-flash-up" href="//b.hatena.ne.jp/add?mode=confirm&url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F" title="はてなブックマークに登録" onclick="javascript:window.open(this.href, '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=1000');return false;" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-hatebu" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -pocket"> <a class="c-shareBtns__btn hov-flash-up" href="https://getpocket.com/edit?url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F&title=HTML%E3%83%91%E3%83%BC%E3%82%B5%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAhtml.parser%3A+HTML%E6%96%87%E6%9B%B8%E3%81%AE%E8%A7%A3%E6%9E%90%E3%81%AB%E6%AC%A0%E3%81%8B%E3%81%9B%E3%81%AA%E3%81%84Python%E6%A8%99%E6%BA%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB" title="Pocketに保存" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-pocket" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -line"> <a class="c-shareBtns__btn hov-flash-up" href="https://social-plugins.line.me/lineit/share?url=https%3A%2F%2Fserverside.jp%2Fhtml-parser%2F&text=HTML%E3%83%91%E3%83%BC%E3%82%B5%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAhtml.parser%3A+HTML%E6%96%87%E6%9B%B8%E3%81%AE%E8%A7%A3%E6%9E%90%E3%81%AB%E6%AC%A0%E3%81%8B%E3%81%9B%E3%81%AA%E3%81%84Python%E6%A8%99%E6%BA%96%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB" title="LINEに送る" target="_blank" role="button" tabindex="0"> <i class="snsicon c-shareBtns__icon icon-line" aria-hidden="true"></i> </a> </li> <li class="c-shareBtns__item -copy"> <button class="c-urlcopy c-plainBtn c-shareBtns__btn hov-flash-up" data-clipboard-text="https://serverside.jp/html-parser/" title="URLをコピーする"> <span class="c-urlcopy__content"> <svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-copy c-shareBtns__icon -to-copy" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M38,5.5h-9c0-2.8-2.2-5-5-5s-5,2.2-5,5h-9c-2.2,0-4,1.8-4,4v33c0,2.2,1.8,4,4,4h28c2.2,0,4-1.8,4-4v-33 C42,7.3,40.2,5.5,38,5.5z M24,3.5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S22.9,3.5,24,3.5z M38,42.5H10v-33h5v3c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1v-3h5L38,42.5z"/><polygon points="24,37 32.5,28 27.5,28 27.5,20 20.5,20 20.5,28 15.5,28 "/></svg> <svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-copied c-shareBtns__icon -copied" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M38,5.5h-9c0-2.8-2.2-5-5-5s-5,2.2-5,5h-9c-2.2,0-4,1.8-4,4v33c0,2.2,1.8,4,4,4h28c2.2,0,4-1.8,4-4v-33 C42,7.3,40.2,5.5,38,5.5z M24,3.5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S22.9,3.5,24,3.5z M38,42.5H10v-33h5v3c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1v-3h5V42.5z"/><polygon points="31.9,20.2 22.1,30.1 17.1,25.1 14.2,28 22.1,35.8 34.8,23.1 "/></svg> </span> </button> <div class="c-copyedPoppup">URLをコピーしました!</div> </li> </ul> </div> <div id="after_article" class="l-articleBottom"> <ul class="p-pnLinks -style-normal"> <li class="p-pnLinks__item -prev"> <a href="https://serverside.jp/html-mojiyu-ru/" rel="prev" class="p-pnLinks__link"> <span class="p-pnLinks__title">HTMLモジュール詳細:Pythonでのウェブコンテンツ生成</span> </a> </li> <li class="p-pnLinks__item -next"> <a href="https://serverside.jp/html-shadow-dom/" rel="next" class="p-pnLinks__link"> <span class="p-pnLinks__title">HTML Shadow DOM: 独自DOM空間を実現する技術</span> </a> </li> </ul> <section class="l-articleBottom__section -author"> <h2 class="l-articleBottom__title c-secTitle"> この記事を書いた人 </h2> <div class="p-authorBox"> <div class="p-authorBox__l"> <img alt='編集長のアバター' src='https://secure.gravatar.com/avatar/6ac01dbe43b7af7cbe537a7b0efb65d9e90813539515501bc5ccf362678c9bdf?s=100&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/6ac01dbe43b7af7cbe537a7b0efb65d9e90813539515501bc5ccf362678c9bdf?s=200&d=mm&r=g 2x' class='avatar avatar-100 photo' height='100' width='100' loading='lazy' decoding='async'/> <a href="https://serverside.jp/author/ownf8363/" class="p-authorBox__name hov-col-main u-fz-m"> 編集長 </a> </div> <div class="p-authorBox__r"> </div> </div> </section> <section class="l-articleBottom__section -related"> <h2 class="l-articleBottom__title c-secTitle">関連記事</h2><ul class="p-postList p-relatedPosts -type-card"><li class="p-postList__item"> <a href="https://serverside.jp/html-templates/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML Templates アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-templates-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-templates-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-templates-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-templates-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-templates.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-templates-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTMLテンプレート: レイアウトと再利用性を高める</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-template/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML Template詳細 アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-template-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-template-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-template-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-template-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-template.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-template-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTMLテンプレート: ドキュメント構造の再利用性を高める手法</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-svg/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML SVG詳細 アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-svg-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-svg-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-svg-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-svg-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-svg.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-svg-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTML SVG詳細:Webページ内の矢量化グラフィックス</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-slot/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML Slot アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-slot-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-slot-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-slot-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-slot-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-slot.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-slot-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTML Slot: コンポーネント間のコンテンツ共有</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-shadow-dom/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML Shadow DOM詳細 アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-shadow-dom-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-shadow-dom-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-shadow-dom-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-shadow-dom-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-shadow-dom.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-shadow-dom-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTML Shadow DOM: 独自DOM空間を実現する技術</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-mojiyu-ru/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="html モジュール詳細 アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-mojiyu-ru-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-mojiyu-ru-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-mojiyu-ru-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-mojiyu-ru-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-mojiyu-ru.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-mojiyu-ru-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTMLモジュール詳細:Pythonでのウェブコンテンツ生成</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-loader/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML Loader アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-loader-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-loader-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-loader-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-loader-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-loader.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-loader-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTML Loader: Webページ解析ツール</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> <li class="p-postList__item"> <a href="https://serverside.jp/html-injection/" class="p-postList__link"> <div class="p-postList__thumb c-postThumb"> <figure class="c-postThumb__figure"> <img width="300" height="158" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="HTML Injection アイキャッチ" class="c-postThumb__img u-obf-cover lazyload" sizes="(min-width: 600px) 320px, 50vw" data-src="https://serverside.jp/wp-content/uploads/2026/06/html-injection-300x158.png" data-srcset="https://serverside.jp/wp-content/uploads/2026/06/html-injection-300x158.png 300w, https://serverside.jp/wp-content/uploads/2026/06/html-injection-1024x538.png 1024w, https://serverside.jp/wp-content/uploads/2026/06/html-injection-768x403.png 768w, https://serverside.jp/wp-content/uploads/2026/06/html-injection.png 1200w" data-aspectratio="300/158" ><noscript><img src="https://serverside.jp/wp-content/uploads/2026/06/html-injection-300x158.png" class="c-postThumb__img u-obf-cover" alt=""></noscript> </figure> </div> <div class="p-postList__body"> <div class="p-postList__title">HTML Injection: クライアントサイドでの攻撃手法</div> <div class="p-postList__meta"><div class="p-postList__times c-postTimes u-thin"> <time class="c-postTimes__posted icon-posted" datetime="2026-06-04" aria-label="公開日">2026年6月4日</time></div> </div> </div> </a> </li> </ul></section> </div> <section id="comments" class="l-articleBottom__section -comment"> <h2 class="l-articleBottom__title c-secTitle"> コメント </h2> <div class="p-commentArea"> <div id="respond" class="comment-respond"> <h3 class="p-commentArea__title -for-write"><i class="icon-pen"></i> コメントする <small><a rel="nofollow" id="cancel-comment-reply-link" href="/html-parser/#respond" style="display:none;">コメントをキャンセル</a></small></h3><form action="https://serverside.jp/wp-comments-post.php" method="post" id="commentform" class="comment-form"><p class="comment-form-comment"><label for="comment">コメント <span class="required">※</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required></textarea></p><p class="comment-form-author"><label for="author">名前 <span class="required">※</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required /></p> <p class="comment-form-email"><label for="email">メール <span class="required">※</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" autocomplete="email" required /></p> <p class="comment-form-url"><label for="url">サイト</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" autocomplete="url" /></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">次回のコメントで使用するためブラウザーに自分の名前、メールアドレス、サイトを保存する。</label></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="コメントを送信" /> <input type='hidden' name='comment_post_ID' value='64427' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p></form> </div><!-- #respond --> </div> </section> </article> </main> <aside id="sidebar" class="l-sidebar"> <div id="block-2" class="c-widget widget_block widget_search"><form role="search" method="get" action="https://serverside.jp/" class="wp-block-search__button-outside wp-block-search__text-button wp-block-search" ><label class="wp-block-search__label" for="wp-block-search__input-1" >検索</label><div class="wp-block-search__inside-wrapper" ><input class="wp-block-search__input" id="wp-block-search__input-1" placeholder="" value="" type="search" name="s" required /><button aria-label="検索" class="wp-block-search__button wp-element-button" type="submit" >検索</button></div></form></div><div id="block-3" class="c-widget widget_block"><div class="wp-block-group"><div class="wp-block-group__inner-container"><h2 class="wp-block-heading">最近の投稿</h2><ul class="wp-block-latest-posts__list wp-block-latest-posts"><li><a class="wp-block-latest-posts__post-title" href="https://serverside.jp/html-templates/">HTMLテンプレート: レイアウトと再利用性を高める</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://serverside.jp/html-template/">HTMLテンプレート: ドキュメント構造の再利用性を高める手法</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://serverside.jp/html-svg/">HTML SVG詳細:Webページ内の矢量化グラフィックス</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://serverside.jp/html-slot/">HTML Slot: コンポーネント間のコンテンツ共有</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://serverside.jp/html-shadow-dom/">HTML Shadow DOM: 独自DOM空間を実現する技術</a></li> </ul></div></div></div><div id="block-4" class="c-widget widget_block"><div class="wp-block-group"><div class="wp-block-group__inner-container"><h2 class="wp-block-heading">最近のコメント</h2><div class="no-comments wp-block-latest-comments">表示できるコメントはありません。</div></div></div></div><div id="block-5" class="c-widget widget_block"><div class="wp-block-group"><div class="wp-block-group__inner-container"><h2 class="wp-block-heading">アーカイブ</h2><ul class="wp-block-archives-list c-listMenu wp-block-archives"><li><a href="https://serverside.jp/2026/06/">2026年6月<span class="post_count"></span></a></li></ul></div></div></div><div id="block-6" class="c-widget widget_block"><div class="wp-block-group"><div class="wp-block-group__inner-container"><h2 class="wp-block-heading">カテゴリー</h2><ul class="wp-block-categories-list c-listMenu wp-block-categories-taxonomy-category wp-block-categories"> <li class="cat-item cat-item-6"><a href="https://serverside.jp/category/ai%e3%83%bb%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e3%83%bb%e3%83%87%e3%83%bc%e3%82%bf%e3%82%b5%e3%82%a4%e3%82%a8%e3%83%b3%e3%82%b9/">AI・機械学習・データサイエンス</a> </li> <li class="cat-item cat-item-10"><a href="https://serverside.jp/category/os%e3%83%bb%e3%82%bd%e3%83%95%e3%83%88%e3%82%a6%e3%82%a7%e3%82%a2/">OS・ソフトウェア</a> </li> <li class="cat-item cat-item-12"><a href="https://serverside.jp/category/web%e3%83%bb%e3%83%95%e3%83%ad%e3%83%b3%e3%83%88%e3%82%a8%e3%83%b3%e3%83%89%e3%83%bb%e3%83%90%e3%83%83%e3%82%af%e3%82%a8%e3%83%b3%e3%83%89/">Web・フロントエンド・バックエンド</a> </li> <li class="cat-item cat-item-9"><a href="https://serverside.jp/category/%e3%82%ac%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%83%bb%e3%83%8f%e3%83%bc%e3%83%89%e3%82%a6%e3%82%a7%e3%82%a2/">ガジェット・ハードウェア</a> </li> <li class="cat-item cat-item-8"><a href="https://serverside.jp/category/%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%b3%e3%83%bb%e3%83%a2%e3%83%90%e3%82%a4%e3%83%ab/">スマートフォン・モバイル</a> </li> <li class="cat-item cat-item-5"><a href="https://serverside.jp/category/%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%83%bb%e8%aa%8d%e8%a8%bc/">セキュリティ・認証</a> </li> <li class="cat-item cat-item-11"><a href="https://serverside.jp/category/%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%83%bb%e3%83%87%e3%83%bc%e3%82%bf%e7%ae%a1%e7%90%86/">データベース・データ管理</a> </li> <li class="cat-item cat-item-4"><a href="https://serverside.jp/category/%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%83%bb%e3%82%a4%e3%83%b3%e3%83%95%e3%83%a9%e3%83%bb%e3%82%af%e3%83%a9%e3%82%a6%e3%83%89/">ネットワーク・インフラ・クラウド</a> </li> <li class="cat-item cat-item-7"><a href="https://serverside.jp/category/%e3%83%93%e3%82%b8%e3%83%8d%e3%82%b9it%e3%83%bbdx%e3%83%bbsaas/">ビジネスIT・DX・SaaS</a> </li> <li class="cat-item cat-item-3"><a href="https://serverside.jp/category/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e3%83%bb%e9%96%8b%e7%99%ba%e8%a8%80%e8%aa%9e/">プログラミング・開発言語</a> </li> </ul></div></div></div></aside> </div> <footer id="footer" class="l-footer"> <div class="l-footer__inner"> <div class="l-footer__foot"> <div class="l-container"> <p class="copyright"> <span lang="en">©</span> IT用語辞典. </p> </div> </div> </div> </footer> <div class="p-fixBtnWrap"> <button id="pagetop" class="c-fixBtn c-plainBtn hov-bg-main" data-onclick="pageTop" aria-label="ページトップボタン" data-has-text=""> <i class="c-fixBtn__icon icon-chevron-up" role="presentation"></i> </button> </div> <div id="search_modal" class="c-modal p-searchModal"> <div class="c-overlay" data-onclick="toggleSearch"></div> <div class="p-searchModal__inner"> <form role="search" method="get" class="c-searchForm" action="https://serverside.jp/" role="search"> <input type="text" value="" name="s" class="c-searchForm__s s" placeholder="検索" aria-label="検索ワード"> <button type="submit" class="c-searchForm__submit icon-search hov-opacity u-bg-main" value="search" aria-label="検索を実行する"></button> </form> <button class="c-modal__close c-plainBtn" data-onclick="toggleSearch"> <i class="icon-batsu"></i> 閉じる </button> </div> </div> <div id="index_modal" class="c-modal p-indexModal"> <div class="c-overlay" data-onclick="toggleIndex"></div> <div class="p-indexModal__inner"> <div class="p-toc post_content -modal"><span class="p-toc__ttl">目次</span></div> <button class="c-modal__close c-plainBtn" data-onclick="toggleIndex"> <i class="icon-batsu"></i> 閉じる </button> </div> </div> </div><!--/ #all_wrapp--> <div class="l-scrollObserver" aria-hidden="true"></div><script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/swell_child/*","/wp-content/themes/swell/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> <script> document.addEventListener('DOMContentLoaded', function() { var setPh = function() { document.querySelectorAll('.asl_w input.orig, .asl_w input[type=search], .asl_w input[name="s"]').forEach(function(i) { i.placeholder = '10,716件から検索'; }); }; setPh(); setTimeout(setPh, 500); setTimeout(setPh, 1500); }); </script> <script id="swell_script-js-extra"> var swellVars = {"siteUrl":"https://serverside.jp/","restUrl":"https://serverside.jp/wp-json/wp/v2/","ajaxUrl":"https://serverside.jp/wp-admin/admin-ajax.php","ajaxNonce":"dca56b65de","isLoggedIn":"","useAjaxAfterPost":"","useAjaxFooter":"","usePvCount":"1","isFixHeadSP":"1","tocListTag":"ol","tocTarget":"h3","tocPrevText":"\u524d\u306e\u30da\u30fc\u30b8\u3078","tocNextText":"\u6b21\u306e\u30da\u30fc\u30b8\u3078","tocCloseText":"\u6298\u308a\u305f\u305f\u3080","tocOpenText":"\u3082\u3063\u3068\u898b\u308b","tocOmitType":"ct","tocOmitNum":"15","tocMinnum":"2","tocAdPosition":"before","offSmoothScroll":"","psNum":"5","psNumSp":"2","psSpeed":"1500","psDelay":"5000"}; //# sourceURL=swell_script-js-extra </script> <script id="swell_script-js" src="https://serverside.jp/wp-content/themes/swell/build/js/main.min.js?ver=2.10.0"></script> <script id="wp-hooks-js" src="https://serverside.jp/wp-includes/js/dist/hooks.min.js?ver=7496969728ca0f95732d"></script> <script id="wp-i18n-js" src="https://serverside.jp/wp-includes/js/dist/i18n.min.js?ver=781d11515ad3d91786ec"></script> <script id="wp-i18n-js-after"> wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } ); //# sourceURL=wp-i18n-js-after </script> <script id="swv-js" src="https://serverside.jp/wp-content/plugins/contact-form-7/includes/swv/js/index.js?ver=6.1.6"></script> <script id="contact-form-7-js-translations"> ( function( domain, translations ) { var localeData = translations.locale_data[ domain ] || translations.locale_data.messages; localeData[""].domain = domain; wp.i18n.setLocaleData( localeData, domain ); } )( "contact-form-7", {"translation-revision-date":"2025-11-30 08:12:23+0000","generator":"GlotPress\/4.0.3","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=1; plural=0;","lang":"ja_JP"},"This contact form is placed in the wrong place.":["\u3053\u306e\u30b3\u30f3\u30bf\u30af\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u9593\u9055\u3063\u305f\u4f4d\u7f6e\u306b\u7f6e\u304b\u308c\u3066\u3044\u307e\u3059\u3002"],"Error:":["\u30a8\u30e9\u30fc:"]}},"comment":{"reference":"includes\/js\/index.js"}} ); //# sourceURL=contact-form-7-js-translations </script> <script id="contact-form-7-js-before"> var wpcf7 = { "api": { "root": "https:\/\/serverside.jp\/wp-json\/", "namespace": "contact-form-7\/v1" } }; //# sourceURL=contact-form-7-js-before </script> <script id="contact-form-7-js" src="https://serverside.jp/wp-content/plugins/contact-form-7/includes/js/index.js?ver=6.1.6"></script> <script id="wd-asl-ajaxsearchlite-js-before"> window.ASL = typeof window.ASL !== 'undefined' ? window.ASL : {}; window.ASL.wp_rocket_exception = "DOMContentLoaded"; window.ASL.ajaxurl = "https:\/\/serverside.jp\/wp-admin\/admin-ajax.php"; window.ASL.backend_ajaxurl = "https:\/\/serverside.jp\/wp-admin\/admin-ajax.php"; window.ASL.asl_url = "https:\/\/serverside.jp\/wp-content\/plugins\/ajax-search-lite\/"; window.ASL.rest_url = "https:\/\/serverside.jp\/wp-json\/"; window.ASL.detect_ajax = true; window.ASL.media_query = 4785; window.ASL.version = 4785; window.ASL.pageHTML = ""; window.ASL.additional_scripts = []; window.ASL.script_async_load = false; window.ASL.init_only_in_viewport = true; window.ASL.font_url = "https:\/\/serverside.jp\/wp-content\/plugins\/ajax-search-lite\/css\/fonts\/icons2.woff2"; window.ASL.highlight = {"enabled":false,"data":[]}; window.ASL.analytics = {"method":false,"tracking_id":"","event":{"focus":{"items":[]},"search_start":{"items":[]},"search_end":{"items":[]},"magnifier":{"items":[]},"return":{"items":[]},"facet_change":{"items":[]},"result_click":{"items":[]}}}; window.ASL.statistics = {"enabled":false,"uid":0}; window.ASL.cache = {"enabled":false,"type":"super_file","list":[],"url":"https:\/\/serverside.jp\/wp-content\/cache\/asp\/results\/"}; //# sourceURL=wd-asl-ajaxsearchlite-js-before </script> <script id="wd-asl-ajaxsearchlite-js" src="https://serverside.jp/wp-content/plugins/ajax-search-lite/js/min/plugin/merged/asl.min.js?ver=4785"></script> <script id="wp-statistics-tracker-js-extra"> var WP_Statistics_Tracker_Object = {"requestUrl":"https://serverside.jp/wp-json/wp-statistics/v2","ajaxUrl":"https://serverside.jp/wp-admin/admin-ajax.php","hitParams":{"wp_statistics_hit":1,"source_type":"post","source_id":64427,"search_query":"","signature":"326241280459a05391b77ff8dec935f5","endpoint":"hit"},"option":{"dntEnabled":false,"bypassAdBlockers":false,"consentIntegration":{"name":null,"status":[]},"isPreview":false,"userOnline":false,"isWpConsentApiActive":false},"isLegacyEventLoaded":"","customEventAjaxUrl":"https://serverside.jp/wp-admin/admin-ajax.php?action=wp_statistics_custom_event&nonce=68a60449af","onlineParams":{"wp_statistics_hit":1,"source_type":"post","source_id":64427,"search_query":"","signature":"326241280459a05391b77ff8dec935f5","action":"wp_statistics_online_check"},"jsCheckTime":"60000"}; //# sourceURL=wp-statistics-tracker-js-extra </script> <script id="wp-statistics-tracker-js" src="https://serverside.jp/wp-content/plugins/wp-statistics/assets/js/tracker.js?ver=14.16.8"></script> <script id="swell_lazysizes-js" src="https://serverside.jp/wp-content/themes/swell/assets/js/plugins/lazysizes.min.js?ver=2.10.0"></script> <script id="swell_set_fix_header-js" src="https://serverside.jp/wp-content/themes/swell/build/js/front/set_fix_header.min.js?ver=2.10.0"></script> <script id="clipboard-js" src="https://serverside.jp/wp-includes/js/clipboard.min.js?ver=2.0.11"></script> <script id="swell_set_urlcopy-js" src="https://serverside.jp/wp-content/themes/swell/build/js/front/set_urlcopy.min.js?ver=2.10.0"></script> <!-- JSON-LD @SWELL --> <script type="application/ld+json">{"@context": "https://schema.org","@graph": [{"@type":"Organization","@id":"https:\/\/serverside.jp\/#organization","name":"IT用語辞典","url":"https:\/\/serverside.jp\/","logo":{"@type":"ImageObject","url":"https:\/\/serverside.jp\/wp-content\/uploads\/2026\/06\/logo.png","width":1241,"height":763}},{"@type":"WebSite","@id":"https:\/\/serverside.jp\/#website","url":"https:\/\/serverside.jp\/","name":"IT用語辞典 | ITの専門用語を、わかりやすく。"},{"@type":"WebPage","@id":"https:\/\/serverside.jp\/html-parser\/","url":"https:\/\/serverside.jp\/html-parser\/","name":"HTMLパーサライブラリhtml.parser: HTML文書の解析に欠かせないPython標準モジュール | IT用語辞典","description":"1990年代後半から開発が進められたPythonのhtml.parserは、HTML文書を構造化データとして読み解くのに重要な役割を果たしている。この記事では、html.parserの歴史と特徴に焦点を当てつつ、その利用法や内部メカニズムを","isPartOf":{"@id":"https:\/\/serverside.jp\/#website"}},{"@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/serverside.jp\/html-parser\/"},"headline":"HTMLパーサライブラリhtml.parser: HTML文書の解析に欠かせないPython標準モジュール","image":{"@type":"ImageObject","url":"https:\/\/serverside.jp\/wp-content\/uploads\/2026\/06\/html-parser.png"},"datePublished":"2026-06-04T19:50:53+0900","dateModified":"2026-06-04T19:50:53+0900","author":{"@type":"Person","@id":"https:\/\/serverside.jp\/html-parser\/#author","name":"編集長","url":"https:\/\/serverside.jp\/"},"publisher":{"@id":"https:\/\/serverside.jp\/#organization"}}]}</script> <!-- / JSON-LD @SWELL --> </body></html>