HTML無効属性</h1> <div class="ad4"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4480737146802772" crossorigin="anonymous"></script><!-- jp.wsxdn --><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4480737146802772" data-ad-slot="8732170639" data-ad-format="auto" data-full-width-responsive="true"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> <div class="article"> <hr /> <p> <textarea>要素のdisabled属性は、<textarea>を無効にするために使用されます。無効にすると、<textarea>からテキストを選択できなくなります。</P> <h2>構文</h2> <p> 以下は構文です-</P> <pre><textarea disabled></pre> <h2>例</h2> <p> <textarea>要素-</P>のdisabled属性を実装する例を見てみましょう。 <pre><!DOCTYPE html> <html> <body> <h2>Candidate Details</h2> Student Name: <input type="text" value="David"><br> Student Id: <input type="number" value="007"><br> <p>Educational Qualification (Graduation)</p> <select> <option value="bca">B.Tech</option> <option value="btech">BCA</option> <option value="bcom">B.COM</option> <option value="bsc">B.SC</option> <option value="bba">BBA</option> </select> <p>Educational Qualification (Post-Graduation)</p> <select> <option value="mca">MCA</option> <option value="mtech">M.Tech</option> <option value="mcom">M.COM</option> <option value="msc">M.SC</option> </select></br> <p>Info:</p> <textarea rows="5" cols="30" disabled> You need to also bring the certificates for the degrees mentioned above. </textarea> </body> </html></pre> <h2>出力</h2> <p> これにより、次の出力が生成されます-</P> <p> <img loading='lazy' alt='HTML textarea 無効属性 ' src="/article/uploadfiles/202203/2022033116391639.jpg" /> </P> <p> 上記の例では、ドロップダウンリストとテキストエリアを設定しています-</P> <pre><select> <option value="mca">MCA</option> <option value="mtech">M.Tech</option> <option value="mcom">M.COM</option> <option value="msc">M.SC</option> </select></br> <p>Info:</p> <textarea rows="5" cols="30" disabled> You need to also bring the certificates for the degrees mentioned above. </textarea></pre> <p> <textarea>は、disabled属性を使用して無効になっています。つまり、訪問者はそれを編集できません-</P> <pre><textarea rows="5" cols="30" disabled> You need to also bring the certificates for the degrees mentioned above. </textarea></pre> <br> </div> <div class="ad5"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4480737146802772" crossorigin="anonymous"></script> <!-- jp.wsxdn 2 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4480737146802772" data-ad-slot="2397329591" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> adsbygoogle = window.adsbygoogle || [].push{}; </script></div> <div id="turn-page" class="f-between"> <div class="page up f-align"> <i class="prev"></i> <a class='LinkPrevArticle' href='https://jp.wsxdn.com/pn014i/ay151t/1001065057.html' >HTMLDOMスタイルのpaddingTopプロパティ </a> </div> <div class="page down f-align"> <a class='LinkNextArticle' href='https://jp.wsxdn.com/pn014i/ay151t/1001065059.html' >HTML非推奨のタグ </a> <i class="next"></i> </div> </div> <section class="bottom-list"> <ol> <li class="f-between"> <div> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001065136.html" class="t-over" title="HTMLオプション値属性 "> <span>HTMLオプション値属性 </span> </a> <p class="r-over r-over-3"> HTMLオプション値属性は、フォームがHTMLドキュメントで送信されたときにサーバーに送信されるオプションHTML要素の値を定義します。 構文 以下は構文です- <option value=”text”></option> HTMLオプション値の属性の例を見てみましょう- 例 <!DOCTYPE html> <html> <style> body { color: #000; height: 100 </p> </div> </li> <li class="f-between"> <div> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001065150.html" class="t-over" title="HTML行属性 "> <span>HTML行属性 </span> </a> <p class="r-over r-over-3"> HTML行属性は、テキストエリアの表示される高さを定義します HTMLドキュメントの要素。 構文 以下は構文です- <textarea rows=”number”></textarea> HTML行の例を見てみましょう属性- 例 <!DOCTYPE html> <html> <style> body { color: #000; height: 100vh; </p> </div> </li> </ol> </section> </article> <aside class="box1-r box4-r"> <section class="small-nav"> <ul class="f-between"> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/gd144y/' target="_self">Cプログラミング</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/qo145i/' target="_self">C ++</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/jh146b/' target="_self">Redis</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/hf147z/' target="_self">BASHプログラミング</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/mk148e/' target="_self">Python</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/lj149d/' target="_self">Java</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ay150s/' target="_self">データベース</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ay151t/' target="_self">HTML</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/pn152h/' target="_self">Javascript</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/jh153b/' target="_self">プログラミング</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/if154a/' target="_self">CSS</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ig155a/' target="_self">Ruby</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/jg156b/' target="_self">SQL</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ig157b/' target="_self">IOS</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/wu158p/' target="_self">Android</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ge159z/' target="_self">MongoDB</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/jh160b/' target="_self">MySQL</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ec161w/' target="_self">C#</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/gd165y/' target="_self">PHP</a></li> <li><a class='childclass' href='https://jp.wsxdn.com/pn014i/ig171a/' target="_self">SQL Server</a></li> </ul> </section> <div class="box1-r-list"> <div> <i></i> <span>HTML</span> </div> <ol> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001038907.html" class="r-over r-over-2" title="HTMLドロップダウン ">HTMLドロップダウン </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064278.html" class="r-over r-over-2" title="HTML<datalist>タグ ">HTML<datalist>タグ </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064295.html" class="r-over r-over-2" title="HTML<select>オートフォーカス属性 ">HTML<select>オートフォーカス属性 </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064296.html" class="r-over r-over-2" title="HTML<セクション>タグ ">HTML<セクション>タグ </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064319.html" class="r-over r-over-2" title="HTML<オプション>で選択された属性 ">HTML<オプション>で選択された属性 </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064325.html" class="r-over r-over-2" title="HTML<select>サイズ属性 ">HTML<select>サイズ属性 </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064326.html" class="r-over r-over-2" title="HTML<select>必須属性 ">HTML<select>必須属性 </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064338.html" class="r-over r-over-2" title="HTML<textarea>cols属性 ">HTML<textarea>cols属性 </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064342.html" class="r-over r-over-2" title="HTML<textarea>オートフォーカス属性 ">HTML<textarea>オートフォーカス属性 </a> </li> <li class="f-start"> <em></em> <a href="https://jp.wsxdn.com/pn014i/ay151t/1001064344.html" class="r-over r-over-2" title="HTML<optgroup> タグ ">HTML<optgroup> タグ </a> </li> </ol> </div> </aside> </section> <footer> <section> <span class="container f-center"> 著作権 © <a href="https://jp.wsxdn.com">https://jp.wsxdn.com</a> 全著作権所有 </span> </section> </footer> </body> </html>