Home >Backend Development >Golang >What elements are there in html

What elements are there in html

WBOY
WBOYOriginal
2023-05-09 10:19:372046browse

HTML is a markup language used to create web pages, and it is composed of many elements. These elements can help us create a variety of content in web pages. In this article, we'll cover some common elements in HTML. The

  1. element

element is the outermost element in an HTML file. It contains the entire HTML document.

  1. Element

The element contains all the header information, such as the title of the web page, keywords and other metadata.

  1. Element </li></ol> <p><title> element defines the title of the web page. It usually appears on a browser tab and also appears in search engine results. </p> <ol start="4"><li><body> Element</li></ol> <p><body> The element contains all web content, such as text, pictures, videos, etc. The </p> <ol start="5"><li><h1>-<h6> element </li></ol> <p><h1>-<h6> element is used to define the title of the web page. They are in descending order of size, with <h1> being the largest heading and <h6> being the smallest heading. The </p> <ol start="6"><li><p> element </li></ol> <p><p> element is used to define paragraphs. Within the <p> element, text is automatically broken to make it easier to read. </p> <ol start="7"><li><a> Elements The </a></li></ol> <p><a> element is used to create links. You can point a link to another web page, file, or anchor. </a></p> <ol start="8"><li><img> element</li></ol> <p><img> element is used to insert pictures. It contains the path to the image and some additional properties such as width and height. The </p> <ol start="9"><li><ul> and <li> elements</li></ol> <p><ul> and <li> elements are used to create an unordered list. Within the <ul> element, each list item is defined using the <li> element. The </p> <ol start="10"><li><ol> and <li> elements</li></ol> <p><ol> and <li> elements are used to create ordered lists. Within the <ol> element, each list item is defined using the <li> element. </p> <ol start="11"><li><table>, <tr>, <th>, and </th> <td> elements The <table>, <tr>, <th>, and </th> <td> elements are used to create tables. In the <table> element, each row is defined using a <tr> element, each column requires a <th> element to define the header, and each cell is defined using a </th> <td> element. 12. <form> and <input> elements The <form> and <input> elements are used to create forms. Within the <form> element, you can use the <input> element to enter text, passwords, emails, and more. Summarize HTML elements allow us to create a lot of different content within a web page. In this article, we introduced some common HTML elements, including <html>, <head>, <title>, <body>, <h1>-<h6>, <p>, <a>, <img>, <ul>, <li>, <ol>, </a><table>, <tr>, <th>, </th> <td>, <form>, and <input> . These elements provide powerful support for us to create elegant and beautiful web pages.</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table></li></ol><p>The above is the detailed content of What elements are there in html. For more information, please follow other related articles on the PHP Chinese website!</p></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>Statement:</span><div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div></div></div><div class="nphpSytBox"><span>Previous article:<a class="dBlack" title="Solution to garbled html code" href="https://m.php.cn/faq/533992.html">Solution to garbled html code</a></span><span>Next article:<a class="dBlack" title="Solution to garbled html code" href="https://m.php.cn/faq/533996.html">Solution to garbled html code</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>Related articles</h2><em><a href="https://m.php.cn/article.html" class="bBlack"><i>See more</i><b></b></a></em><div class="clear"></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><ul class="nphpXgwzList"><li><b></b><a href="https://m.php.cn/faq/419133.html" title="What is Go language? Introduction to the advantages and disadvantages of Go language" class="aBlack">What is Go language? Introduction to the advantages and disadvantages of Go language</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/419289.html" title="What does gin mean?" class="aBlack">What does gin mean?</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/421167.html" title="Why is go more performant than php?" class="aBlack">Why is go more performant than php?</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/421591.html" title="What is the go language suitable for?" class="aBlack">What is the go language suitable for?</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/422570.html" title="go language basics" class="aBlack">go language basics</a><div class="clear"></div></li></ul></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>Public welfare online PHP training,Help PHP learners grow quickly!</p></div><div class="footermid"><a href="https://m.php.cn/about/us.html">About us</a><a href="https://m.php.cn/about/disclaimer.html">Disclaimer</a><a href="https://m.php.cn/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body><!-- Matomo --><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><!-- End Matomo Code --></html>