<i id="i00sc"></i>

    \n
    \n

    frame tag in HTML <\/h2>\n

    Frame 1 <\/h1>\n<\/div>\n<\/body>\n<\/html><\/pre>\n

    Frame2.html<\/h5>\n

    Code:<\/strong><\/p>\n

    \n\n\n frame tag Example <\/title>\n<style>\nbody {\ntext-align: center ;\nbackground-color: rgb(120, 120, 120, 0.30 ) ;\n}\n.results {\nborder : green 1px solid;\nbackground-color : aliceblue;\ntext-align : left;\npadding-left : 20px;\nheight : 300px;\nwidth : 95%;\n}\n<\/style>\n<\/head\n<body>
    <h1><a href="http://www.miracleart.cn/">国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂</a></h1>\n<div   id="377j5v51b"   class = \"results\">\n<h2> frame tag in HTML <\/h2>\n<h1> Frame 2 <\/h1>\n<\/div>\n<\/body>\n<\/html><\/pre>\n<h5>Main.html<\/h5>\n<p><strong>Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<meta name = \"viewport\" content=\n\"width = device-width, initial-scale = 1.0\">\n<title>\nframe tag in HTML\n<\/title>\n<frameset cols = \"50%, 50%\" >\n<frame src = \"frame1.html\" >\n<frame src = \"frame2.html\" >\n<\/frameset>\n<\/head>\n<body>\n<\/body>\n<\/html><\/pre>\n<p><strong>Output<\/strong>: Here, we have used the cols attribute to specify them as a column, and the width of each frame has been set to 50%.<\/p>\n<p><img  src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/000\/172543872555381.png\" alt=\"Frame Tag in HTML\" ><\/p>\n<h4>Example #2 – Align frames Vertically<\/h4>\n<p>There are Four files frame1, frame2,frame3, and main.<\/p>\n<h5>Frame1.html<\/h5>\n<p><strong>Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<title> Frame tag Example <\/title>\n<style>\nbody {\ntext-align: center ;\nbackground-color: rgb(120, 120, 120, 0.30 ) ;\n}\n.results {\nborder : green 1px solid;\nbackground-color : aliceblue;\ntext-align : left;\npadding-left : 20px;\nheight : 300px;\nwidth : 95%;\n}\n<\/style>\n<\/head\n<body>\n<div   id="377j5v51b"   class = \"results\">\n<h2> frame tag in HTML <\/h2>\n<h1> Frame 1 <\/h1>\n<\/div>\n<\/body>\n<\/html><\/pre>\n<h5>Frame2.html<\/h5>\n<p><strong style=\"font-size: 16px\">Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<title> frame tag Example <\/title>\n<style>\nbody {\ntext-align: center ;\nbackground-color: rgb(120, 120, 120, 0.30 ) ;\n}\n.results {\nborder : green 1px solid;\nbackground-color : aliceblue;\ntext-align : left;\npadding-left : 20px;\nheight : 300px;\nwidth : 95%;\n}\n<\/style>\n<\/head\n<body>\n<div   id="377j5v51b"   class = \"results\">\n<h2> frame tag in HTML <\/h2>\n<h1> Frame 2 <\/h1>\n<\/div>\n<\/body>\n<\/html><\/pre>\n<h5>Frame3.html<\/h5>\n<p><strong>Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<title> Frame tag Example <\/title>\n<style>\nbody {\ntext-align: center ;\nbackground-color: rgb(120, 120, 120, 0.30 ) ;\n}\n.results {\nborder : green 1px solid;\nbackground-color : aliceblue;\ntext-align : left;\npadding-left : 20px;\nheight : 300px;\nwidth : 95%;\n}\n<\/style>\n<\/head\n<body>\n<div   id="377j5v51b"   class = \"results\">\n<h2> frame tag in HTML <\/h2>\n<h1> Frame 3 <\/h1>\n<\/div>\n<\/body>\n<\/html><\/pre>\n<h5>Main.html<\/h5>\n<p><strong>Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<meta name = \"viewport\" content=\n\"width = device-width, initial-scale = 1.0\">\n<title>\nframe tag in HTML\n<\/title>\n<frameset rows = \"30%, 30%, 30%\" >\n<frame src = \"frame1.html\" >\n<frame src = \"frame2.html\" >\n<frame src = \"frame3.html\" >\n<\/frameset>\n<\/head>\n<body>\n<\/body>\n<\/html><\/pre>\n<p><strong>Output: <\/strong>Here, we have used the cols attribute over the frameset tag to divide the frames horizontally, and the height has been mentioned in percentage.<\/p>\n<p><img  src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/000\/172543872987740.png\" alt=\"Frame Tag in HTML\" ><\/p>\n\n\n<h4>Example #3 – Navigating different frames using links<\/h4>\n<p>For this example, three files, frame1.html, frame2.html, and frame3.html, are the same.<\/p>\n<p>We will be using a name attribute with a frame tag.<\/p>\n<h5>Main.html<\/h5>\n<p><strong>Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<meta name = \"viewport\" content=\n\"width = device-width, initial-scale = 1.0\">\n<title>\nframe tag in HTML\n<\/title>\n<frameset cols = \"30%, * \" >\n<frame src = \"menu.html\" name = \"menu\" >\n<frame name = \"frame\" >\n<\/frameset>\n<\/head>\n<body>\n<\/body>\n<\/html><\/pre>\n<h5>menu.html<\/h5>\n<p><strong>Code:<\/strong><\/p>\n<pre><!DOCTYPE html>\n<html>\n<head>\n<title> Frame tag Example <\/title>\n<style>\nbody {\ntext-align: center ;\nbackground-color: rgb(120, 120, 120, 0.30 ) ;\n}\n.results {\nborder : green 1px solid;\nbackground-color : aliceblue;\ntext-align : center;\nheight : 300px;\nwidth : 95%;\n}\n<\/style>\n<\/head\n<body>\n<div   id="377j5v51b"   class = \"results\">\n<h2> Menu <\/h2>\n<a href = \"frame1.html\" target = \"frame\"> Frame 1 <\/a> <\/br> <\/br>\n<a href = \"frame2.html\" target = \"frame\"> Frame 2 <\/a> <\/br> <\/br>\n<a href = \"frame3.html\" target = \"frame\"> Frame 3 <\/a>\n<\/div>\n<\/body>\n<\/html><\/pre>\n<p>Here In the frameset tag, we have divided two frames into a width of 30% for the first frame and the remaining all width for the second frame. The first frame will list out the menu in the form of hyperlinks. For the second frame, we have assigned a name for it, and in the menu.html, we have set the target as the frame name for every link. So, this link will direct the frame, and the content will be displayed on the same frame.<\/p>\n<p><strong>Output:<\/strong><\/p>\n<p><img  src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/000\/172543873319898.png\" alt=\"Frame Tag in HTML\" ><\/p>\n<strong>Note:<\/strong> <frame> tag is not supported in a HTML5, instead <iframe> tag can be used."}	</script>
    	
    <meta http-equiv="Cache-Control" content="no-transform" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <script>var V_PATH="/";window.onerror=function(){ return true; };</script>
    </head>
    
    <body data-commit-time="2023-12-28T14:50:12+08:00" class="editor_body body2_2">
    	<link rel="stylesheet" type="text/css" href="/static/csshw/stylehw.css">
    <header>
        <div   id="377j5v51b"   class="head">
            <div   id="377j5v51b"   class="haed_left">
                <div   id="377j5v51b"   class="haed_logo">
                    <a href="http://www.miracleart.cn/" title="" class="haed_logo_a">
                        <img src="/static/imghw/logo.png" alt="" class="haed_logoimg">
                    </a>
                </div>
                <div   id="377j5v51b"   class="head_nav">
                    <div   id="377j5v51b"   class="head_navs">
                        <a href="javascript:;" title="Community" class="head_nava head_nava-template1">Community</a>
                        <div   class="377j5v51b"   id="dropdown-template1" style="display: none;">
                            <div   id="377j5v51b"   class="languagechoose">
                                <a href="http://www.miracleart.cn/article.html" title="Articles" class="languagechoosea on">Articles</a>
                                <a href="http://www.miracleart.cn/faq/zt" title="Topics" class="languagechoosea">Topics</a>
                                <a href="http://www.miracleart.cn/wenda.html" title="Q&A" class="languagechoosea">Q&A</a>
                            </div>
                        </div>
                    </div>
    
                    <div   id="377j5v51b"   class="head_navs">
                        <a href="javascript:;" title="Learn" class="head_nava head_nava-template1_1">Learn</a>
                        <div   class="377j5v51b"   id="dropdown-template1_1" style="display: none;">
                            <div   id="377j5v51b"   class="languagechoose">
                                <a href="http://www.miracleart.cn/course.html" title="Course" class="languagechoosea on">Course</a>
                                <a href="http://www.miracleart.cn/dic/" title="Programming Dictionary" class="languagechoosea">Programming Dictionary</a>
                            </div>
                        </div>
                    </div>
    
                    <div   id="377j5v51b"   class="head_navs">
                        <a href="javascript:;" title="Tools Library" class="head_nava head_nava-template1_2">Tools Library</a>
                        <div   class="377j5v51b"   id="dropdown-template1_2" style="display: none;">
                            <div   id="377j5v51b"   class="languagechoose">
                                <a href="http://www.miracleart.cn/toolset/development-tools" title="Development tools" class="languagechoosea on">Development tools</a>
                                <a href="http://www.miracleart.cn/toolset/website-source-code" title="Website Source Code" class="languagechoosea">Website Source Code</a>
                                <a href="http://www.miracleart.cn/toolset/php-libraries" title="PHP Libraries" class="languagechoosea">PHP Libraries</a>
                                <a href="http://www.miracleart.cn/toolset/js-special-effects" title="JS special effects" class="languagechoosea on">JS special effects</a>
                                <a href="http://www.miracleart.cn/toolset/website-materials" title="Website Materials" class="languagechoosea on">Website Materials</a>
                                <a href="http://www.miracleart.cn/toolset/extension-plug-ins" title="Extension plug-ins" class="languagechoosea on">Extension plug-ins</a>
                            </div>
                        </div>
                    </div>
    
                    <div   id="377j5v51b"   class="head_navs">
                        <a href="http://www.miracleart.cn/ai" title="AI Tools" class="head_nava head_nava-template1_3">AI Tools</a>
                    </div>
    
                    <div   id="377j5v51b"   class="head_navs">
                        <a href="javascript:;" title="Leisure" class="head_nava head_nava-template1_3">Leisure</a>
                        <div   class="377j5v51b"   id="dropdown-template1_3" style="display: none;">
                            <div   id="377j5v51b"   class="languagechoose">
                                <a href="http://www.miracleart.cn/game" title="Game Download" class="languagechoosea on">Game Download</a>
                                <a href="http://www.miracleart.cn/mobile-game-tutorial/" title="Game Tutorials" class="languagechoosea">Game Tutorials</a>
    
                            </div>
                        </div>
                    </div>
                </div>
            </div>
                        <div   id="377j5v51b"   class="head_search">
                    <input id="key_words"  onkeydown="if (event.keyCode == 13) searchs('en')" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value="">
                    <a href="javascript:;" title="search"  onclick="searchs('en')"><img src="/static/imghw/find.png" alt="search"></a>
                </div>
                    <div   id="377j5v51b"   class="head_right">
                <div   id="377j5v51b"   class="haed_language">
                    <a href="javascript:;" class="layui-btn haed_language_btn">English<i class="layui-icon layui-icon-triangle-d"></i></a>
                    <div   class="377j5v51b"   id="dropdown-template" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                                                    <a href="javascript:setlang('zh-cn');" title="簡體中文" class="languagechoosea">簡體中文</a>
                                                    <a href="javascript:;" title="English" class="languagechoosea">English</a>
                                                    <a href="javascript:setlang('zh-tw');" title="繁體中文" class="languagechoosea">繁體中文</a>
                                                    <a href="javascript:setlang('ja');" title="日本語" class="languagechoosea">日本語</a>
                                                    <a href="javascript:setlang('ko');" title="???" class="languagechoosea">???</a>
                                                    <a href="javascript:setlang('ms');" title="Melayu" class="languagechoosea">Melayu</a>
                                                    <a href="javascript:setlang('fr');" title="Fran?ais" class="languagechoosea">Fran?ais</a>
                                                    <a href="javascript:setlang('de');" title="Deutsch" class="languagechoosea">Deutsch</a>
                                                </div>
                    </div>
                </div>
                <span id="377j5v51b"    class="head_right_line"></span>
                                <div style="display: block;" id="login" class="haed_login ">
                        <a href="javascript:;"  title="Login" class="haed_logina ">Login</a>
                    </div>
                    <div style="display: block;" id="reg" class="head_signup login">
                        <a href="javascript:;"  title="singup" class="head_signupa">singup</a>
                    </div>
                
            </div>
        </div>
    </header>
    
    	
    	<main>
    		<div   id="377j5v51b"   class="Article_Details_main">
    			<div   id="377j5v51b"   class="Article_Details_main1">
    							<div   id="377j5v51b"   class="Article_Details_main1L">
    					<div   id="377j5v51b"   class="Article_Details_main1Lmain" id="Article_Details_main1Lmain">
    						<div   id="377j5v51b"   class="Article_Details_main1L1">Table of Contents</div>
    						<div   id="377j5v51b"   class="Article_Details_main1L2" id="Article_Details_main1L2">
    							<!-- 左側(cè)懸浮,文章定位標(biāo)題1 id="Article_Details_main1L2s_1"-->
    															<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#Examples-of-Frame-Tag-in-HTML" title="Examples of?Frame Tag in HTML" >Examples of?Frame Tag in HTML</a>
    								</div>
    																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#Example-Align-frames-Horizontally" title="Example #1 – Align frames Horizontally" >Example #1 – Align frames Horizontally</a>
    								</div>
    																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#Frame-html" title="Frame3.html" >Frame3.html</a>
    								</div>
    																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#Main-html" title="Main.html" >Main.html</a>
    								</div>
    																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#Example-Align-frames-Vertically" title="Example #2 – Align frames Vertically" >Example #2 – Align frames Vertically</a>
    								</div>
    																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#Example-Navigating-different-frames-using-links" title="Example #3 – Navigating different frames using links" >Example #3 – Navigating different frames using links</a>
    								</div>
    																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
    									<a href="#menu-html" title="menu.html" >menu.html</a>
    								</div>
    														</div>
    					</div>
    				</div>
    							<div   id="377j5v51b"   class="Article_Details_main1M">
    					<div   id="377j5v51b"   class="phpgenera_Details_mainL1">
    						<a href="http://www.miracleart.cn/" title="Home"
    							class="phpgenera_Details_mainL1a">Home</a>
    						<img src="/static/imghw/top_right.png" alt="" />
    												<a href="http://www.miracleart.cn/web-designer.html"
    							class="phpgenera_Details_mainL1a">Web Front-end</a>
    						<img src="/static/imghw/top_right.png" alt="" />
    												<a href="http://www.miracleart.cn/div-tutorial.html"
    							class="phpgenera_Details_mainL1a">HTML Tutorial</a>
    						<img src="/static/imghw/top_right.png" alt="" />
    						<span>Frame Tag in HTML</span>
    					</div>
    					
    					<div   id="377j5v51b"   class="Articlelist_txts">
    						<div   id="377j5v51b"   class="Articlelist_txts_info">
    							<h1 class="Articlelist_txts_title">Frame Tag in HTML</h1>
    							<div   id="377j5v51b"   class="Articlelist_txts_info_head">
    								<div   id="377j5v51b"   class="author_info">
    									<a href="http://www.miracleart.cn/member/465014.html"  class="author_avatar">
    									<img class="lazy"  data-src="https://img.php.cn/upload/avatar/000/465/014/627b58ba8fa6c600.jpg" src="/static/imghw/default1.png" alt="王林">
    									</a>
    									<div   id="377j5v51b"   class="author_detail">
    																			<a href="http://www.miracleart.cn/member/465014.html" class="author_name">王林</a>
                                    										</div>
    								</div>
                    			</div>
    							<span id="377j5v51b"    class="Articlelist_txts_time">Sep 04, 2024 pm	 04:32 PM</span>
    															<div   id="377j5v51b"   class="Articlelist_txts_infos">
    																			<span id="377j5v51b"    class="Articlelist_txts_infoss on">html</span>
    																			<span id="377j5v51b"    class="Articlelist_txts_infoss ">html5</span>
    																			<span id="377j5v51b"    class="Articlelist_txts_infoss ">HTML Tutorial</span>
    																			<span id="377j5v51b"    class="Articlelist_txts_infoss ">HTML Properties</span>
    																			<span id="377j5v51b"    class="Articlelist_txts_infoss ">HTML tags</span>
    																	</div>
    														
    						</div>
    					</div>
    					<hr />
    					<div   id="377j5v51b"   class="article_main php-article">
    						<div   id="377j5v51b"   class="article-list-left detail-content-wrap content">
    						<ins class="adsbygoogle"
    							style="display:block; text-align:center;"
    							data-ad-layout="in-article"
    							data-ad-format="fluid"
    							data-ad-client="ca-pub-5902227090019525"
    							data-ad-slot="3461856641">
    						</ins>
    						
    
    					<p>An HTML frame tag is used to display multiple sites on a single web page in the form of sections. This tag allows designing a web page so that multiple web pages with different content can be combined and displayed individually on a single web page. This is achieved by dividing the single web page into different sections, which may be called a frame. The individual frames can be loaded separately. The frame tag is used along with the frameset tag, where frameset tags can be considered as container, and multiple frame tags in it will represent multiple sites.</p>
    
    
    
    
    
    
    
    
    <p><strong>Syntax:</strong></p>
    
    
    <p>The basic syntax of the frame tag is as below,</p>
    <pre class="brush:php;toolbar:false"><frame src = "URL"></pre>
    <p>The src attribute specifies the source of a file. The <frame> tag supports some other attributes, but src is the main attribute.</p>
    <p>As mentioned, the <frame> tag is used with the <frameset> tag. The frameset can be considered as a collection of multiple frames where each frame will represent an individual site to be loaded on the same page. The frame tag will be used along with the frameset tag as below,</p>
    <pre class="brush:php;toolbar:false"><frameset>
    <frame src = " ">
    <frame src = " ">
    .
    .
    <frame src = " ">
    </frameset></pre>
    <p>Note that the frameset tag has an end tag, but the frame tag has not.</p>
    <h3 id="Examples-of-Frame-Tag-in-HTML">Examples of?Frame Tag in HTML</h3>
    <p>Examples of?frame tag in html are given below:</p>
    <h4 id="Example-Align-frames-Horizontally">Example #1 – Align frames Horizontally</h4>
    <p>There are three files frame1, frame2 and main.</p>
    <h5 id="Frame-html">Frame1.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <title> Frame tag Example </title>
    <style>
    body {
    text-align: center ;
    background-color: rgb(120, 120, 120, 0.30 ) ;
    }
    .results {
    border : green 1px solid;
    background-color : aliceblue;
    text-align : left;
    padding-left : 20px;
    height : 300px;
    width : 95%;
    }
    </style>
    </head
    <body>
    <div class = "results">
    <h2> frame tag in HTML </h2>
    <h1> Frame 1 </h1>
    </div>
    </body>
    </html></pre>
    <h5 id="Frame-html">Frame2.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <title> frame tag Example </title>
    <style>
    body {
    text-align: center ;
    background-color: rgb(120, 120, 120, 0.30 ) ;
    }
    .results {
    border : green 1px solid;
    background-color : aliceblue;
    text-align : left;
    padding-left : 20px;
    height : 300px;
    width : 95%;
    }
    </style>
    </head
    <body>
    <div class = "results">
    <h2> frame tag in HTML </h2>
    <h1> Frame 2 </h1>
    </div>
    </body>
    </html></pre>
    <h5 id="Main-html">Main.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <meta name = "viewport" content=
    "width = device-width, initial-scale = 1.0">
    <title>
    frame tag in HTML
    </title>
    <frameset cols = "50%, 50%" >
    <frame src = "frame1.html" >
    <frame src = "frame2.html" >
    </frameset>
    </head>
    <body>
    </body>
    </html></pre>
    <p><strong>Output</strong>: Here, we have used the cols attribute to specify them as a column, and the width of each frame has been set to 50%.</p>
    <p><img  src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/172543872555381.png" class="lazy" alt="Frame Tag in HTML" ></p>
    <h4 id="Example-Align-frames-Vertically">Example #2 – Align frames Vertically</h4>
    <p>There are Four files frame1, frame2,frame3, and main.</p>
    <h5 id="Frame-html">Frame1.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <title> Frame tag Example </title>
    <style>
    body {
    text-align: center ;
    background-color: rgb(120, 120, 120, 0.30 ) ;
    }
    .results {
    border : green 1px solid;
    background-color : aliceblue;
    text-align : left;
    padding-left : 20px;
    height : 300px;
    width : 95%;
    }
    </style>
    </head
    <body>
    <div class = "results">
    <h2> frame tag in HTML </h2>
    <h1> Frame 1 </h1>
    </div>
    </body>
    </html></pre>
    <h5 id="Frame-html">Frame2.html</h5>
    <p><strong style="font-size: 16px">Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <title> frame tag Example </title>
    <style>
    body {
    text-align: center ;
    background-color: rgb(120, 120, 120, 0.30 ) ;
    }
    .results {
    border : green 1px solid;
    background-color : aliceblue;
    text-align : left;
    padding-left : 20px;
    height : 300px;
    width : 95%;
    }
    </style>
    </head
    <body>
    <div class = "results">
    <h2> frame tag in HTML </h2>
    <h1> Frame 2 </h1>
    </div>
    </body>
    </html></pre>
    <h5 id="Frame-html">Frame3.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <title> Frame tag Example </title>
    <style>
    body {
    text-align: center ;
    background-color: rgb(120, 120, 120, 0.30 ) ;
    }
    .results {
    border : green 1px solid;
    background-color : aliceblue;
    text-align : left;
    padding-left : 20px;
    height : 300px;
    width : 95%;
    }
    </style>
    </head
    <body>
    <div class = "results">
    <h2> frame tag in HTML </h2>
    <h1> Frame 3 </h1>
    </div>
    </body>
    </html></pre>
    <h5 id="Main-html">Main.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <meta name = "viewport" content=
    "width = device-width, initial-scale = 1.0">
    <title>
    frame tag in HTML
    </title>
    <frameset rows = "30%, 30%, 30%" >
    <frame src = "frame1.html" >
    <frame src = "frame2.html" >
    <frame src = "frame3.html" >
    </frameset>
    </head>
    <body>
    </body>
    </html></pre>
    <p><strong>Output: </strong>Here, we have used the cols attribute over the frameset tag to divide the frames horizontally, and the height has been mentioned in percentage.</p>
    <p><img  src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/172543872987740.png" class="lazy" alt="Frame Tag in HTML" ></p>
    
    
    <h4 id="Example-Navigating-different-frames-using-links">Example #3 – Navigating different frames using links</h4>
    <p>For this example, three files, frame1.html, frame2.html, and frame3.html, are the same.</p>
    <p>We will be using a name attribute with a frame tag.</p>
    <h5 id="Main-html">Main.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <meta name = "viewport" content=
    "width = device-width, initial-scale = 1.0">
    <title>
    frame tag in HTML
    </title>
    <frameset cols = "30%, * " >
    <frame src = "menu.html" name = "menu" >
    <frame name = "frame" >
    </frameset>
    </head>
    <body>
    </body>
    </html></pre>
    <h5 id="menu-html">menu.html</h5>
    <p><strong>Code:</strong></p>
    <pre class="brush:php;toolbar:false"><!DOCTYPE html>
    <html>
    <head>
    <title> Frame tag Example </title>
    <style>
    body {
    text-align: center ;
    background-color: rgb(120, 120, 120, 0.30 ) ;
    }
    .results {
    border : green 1px solid;
    background-color : aliceblue;
    text-align : center;
    height : 300px;
    width : 95%;
    }
    </style>
    </head
    <body>
    <div class = "results">
    <h2> Menu </h2>
    <a href = "frame1.html" target = "frame"> Frame 1 </a> </br> </br>
    <a href = "frame2.html" target = "frame"> Frame 2 </a> </br> </br>
    <a href = "frame3.html" target = "frame"> Frame 3 </a>
    </div>
    </body>
    </html></pre>
    <p>Here In the frameset tag, we have divided two frames into a width of 30% for the first frame and the remaining all width for the second frame. The first frame will list out the menu in the form of hyperlinks. For the second frame, we have assigned a name for it, and in the menu.html, we have set the target as the frame name for every link. So, this link will direct the frame, and the content will be displayed on the same frame.</p>
    <p><strong>Output:</strong></p>
    <p><img  src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/172543873319898.png" class="lazy" alt="Frame Tag in HTML" ></p>
    <strong>Note:</strong> <frame> tag is not supported in a HTML5, instead <iframe> tag can be used.<p>The above is the detailed content of Frame Tag in HTML. For more information, please follow other related articles on the PHP Chinese website!</p>
    
    
    						</div>
    					</div>
    					<div   id="377j5v51b"   class="wzconShengming_sp">
    						<div   id="377j5v51b"   class="bzsmdiv_sp">Statement of this Website</div>
    						<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>
    
    				<ins class="adsbygoogle"
         style="display:block"
         data-ad-format="autorelaxed"
         data-ad-client="ca-pub-5902227090019525"
         data-ad-slot="2507867629"></ins>
    
    
    
    				<div   id="377j5v51b"   class="AI_ToolDetails_main4sR">
    
    
    				<ins class="adsbygoogle"
            style="display:block"
            data-ad-client="ca-pub-5902227090019525"
            data-ad-slot="3653428331"
            data-ad-format="auto"
            data-full-width-responsive="true"></ins>
        
    
    
    					<!-- <div   id="377j5v51b"   class="phpgenera_Details_mainR4">
    						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
    							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
    								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    									src="/static/imghw/hotarticle2.png" alt="" />
    								<h2>Hot Article</h2>
    							</div>
    							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796828723.html" title="Agnes Tachyon Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Agnes Tachyon Build Guide | A Pretty Derby Musume</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>2 weeks ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796827210.html" title="Oguri Cap Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Oguri Cap Build Guide | A Pretty Derby Musume</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>2 weeks ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796821436.html" title="Dune: Awakening - Advanced Planetologist Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Advanced Planetologist Quest Walkthrough</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>4 weeks ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796821278.html" title="Date Everything: Dirk And Harper Relationship Guide" class="phpgenera_Details_mainR4_bottom_title">Date Everything: Dirk And Harper Relationship Guide</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>1 months ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796821868.html" title="Palia: Rasquellywag's Riches Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Palia: Rasquellywag's Riches Quest Walkthrough</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>4 weeks ago</span>
    										<span>By DDD</span>
    									</div>
    								</div>
    														</div>
    							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
    								<a href="http://www.miracleart.cn/article.html">Show More</a>
    							</div>
    						</div>
    					</div> -->
    
    
    											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
    							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
    								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/hottools2.png" alt="" />
    									<h2>Hot AI Tools</h2>
    								</div>
    								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
    																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title">
    													<h3>Undress AI Tool</h3>
    												</a>
    												<p>Undress images for free</p>
    											</div>
    										</div>
    																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title">
    													<h3>Undresser.AI Undress</h3>
    												</a>
    												<p>AI-powered app for creating realistic nude photos</p>
    											</div>
    										</div>
    																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title">
    													<h3>AI Clothes Remover</h3>
    												</a>
    												<p>Online AI tool for removing clothes from photos.</p>
    											</div>
    										</div>
    																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title">
    													<h3>Clothoff.io</h3>
    												</a>
    												<p>AI clothes remover</p>
    											</div>
    										</div>
    																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title">
    													<h3>Video Face Swap</h3>
    												</a>
    												<p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p>
    											</div>
    										</div>
    																</div>
    								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
    									<a href="http://www.miracleart.cn/ai">Show More</a>
    								</div>
    							</div>
    						</div>
    					
    
    
    					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
    						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
    							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
    								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    									src="/static/imghw/hotarticle2.png" alt="" />
    								<h2>Hot Article</h2>
    							</div>
    							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796828723.html" title="Agnes Tachyon Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Agnes Tachyon Build Guide | A Pretty Derby Musume</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>2 weeks ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796827210.html" title="Oguri Cap Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Oguri Cap Build Guide | A Pretty Derby Musume</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>2 weeks ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796821436.html" title="Dune: Awakening - Advanced Planetologist Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Advanced Planetologist Quest Walkthrough</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>4 weeks ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796821278.html" title="Date Everything: Dirk And Harper Relationship Guide" class="phpgenera_Details_mainR4_bottom_title">Date Everything: Dirk And Harper Relationship Guide</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>1 months ago</span>
    										<span>By Jack chen</span>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/1796821868.html" title="Palia: Rasquellywag's Riches Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Palia: Rasquellywag's Riches Quest Walkthrough</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<span>4 weeks ago</span>
    										<span>By DDD</span>
    									</div>
    								</div>
    														</div>
    							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
    								<a href="http://www.miracleart.cn/article.html">Show More</a>
    							</div>
    						</div>
    					</div>
    
    
    											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
    							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
    								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/hottools2.png" alt="" />
    									<h2>Hot Tools</h2>
    								</div>
    								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
    																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title">
    													<h3>Notepad++7.3.1</h3>
    												</a>
    												<p>Easy-to-use and free code editor</p>
    											</div>
    										</div>
    																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title">
    													<h3>SublimeText3 Chinese version</h3>
    												</a>
    												<p>Chinese version, very easy to use</p>
    											</div>
    										</div>
    																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title">
    													<h3>Zend Studio 13.0.1</h3>
    												</a>
    												<p>Powerful PHP integrated development environment</p>
    											</div>
    										</div>
    																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title">
    													<h3>Dreamweaver CS6</h3>
    												</a>
    												<p>Visual web development tools</p>
    											</div>
    										</div>
    																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
    											<a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img">
    												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" />
    											</a>
    											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
    												<a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title">
    													<h3>SublimeText3 Mac version</h3>
    												</a>
    												<p>God-level code editing software (SublimeText3)</p>
    											</div>
    										</div>
    																	</div>
    								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
    									<a href="http://www.miracleart.cn/ai">Show More</a>
    								</div>
    							</div>
    						</div>
    										
    
    					
    					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
    						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
    							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
    								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    									src="/static/imghw/hotarticle2.png" alt="" />
    								<h2>Hot Topics</h2>
    							</div>
    							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/gmailyxdlrkzn" title="Where is the login entrance for gmail email?" class="phpgenera_Details_mainR4_bottom_title">Where is the login entrance for gmail email?</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/eyess.png" alt="" />
    											<span>8639</span>
    										</div>
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/tiezi.png" alt="" />
    											<span>17</span>
    										</div>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/java-tutorial" title="Java Tutorial" class="phpgenera_Details_mainR4_bottom_title">Java Tutorial</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/eyess.png" alt="" />
    											<span>1786</span>
    										</div>
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/tiezi.png" alt="" />
    											<span>16</span>
    										</div>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/cakephp-tutor" title="CakePHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP Tutorial</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/eyess.png" alt="" />
    											<span>1729</span>
    										</div>
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/tiezi.png" alt="" />
    											<span>56</span>
    										</div>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/eyess.png" alt="" />
    											<span>1581</span>
    										</div>
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/tiezi.png" alt="" />
    											<span>29</span>
    										</div>
    									</div>
    								</div>
    															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
    									<a href="http://www.miracleart.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a>
    									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/eyess.png" alt="" />
    											<span>1445</span>
    										</div>
    										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
    											<img src="/static/imghw/tiezi.png" alt="" />
    											<span>31</span>
    										</div>
    									</div>
    								</div>
    														</div>
    							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
    								<a href="http://www.miracleart.cn/faq/zt">Show More</a>
    							</div>
    						</div>
    					</div>
    				</div>
    			</div>
    							<div   id="377j5v51b"   class="Article_Details_main2">
    					<div   id="377j5v51b"   class="phpgenera_Details_mainL4">
    						<div   id="377j5v51b"   class="phpmain1_2_top">
    							<a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img
    									src="/static/imghw/index2_title2.png" alt="" /></a>
    						</div>
    						<div   id="377j5v51b"   class="phpgenera_Details_mainL4_info">
    
    													<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796829177.html" title="What are the essential HTML elements for structuring a webpage?" class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175148129241939.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are the essential HTML elements for structuring a webpage?" />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796829177.html" title="What are the essential HTML elements for structuring a webpage?" class="phphistorical_Version2_mids_title">What are the essential HTML elements for structuring a webpage?</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 03, 2025 am	 02:34 AM</span>
    								<p class="Articlelist_txts_p">The web page structure needs to be supported by core HTML elements. 1. The overall structure of the page is composed of , , which is the root element, which stores meta information and displays the content; 2. The content organization relies on title (-), paragraph () and block tags (such as ,) to improve organizational structure and SEO; 3. Navigation is implemented through and implemented, commonly used organizations are linked and supplemented with aria-current attribute to enhance accessibility; 4. Form interaction involves , , and , to ensure the complete user input and submission functions. Proper use of these elements can improve page clarity, maintenance and search engine optimization.</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796829157.html" title="Handling reconnections and errors with HTML5 Server-Sent Events." class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175148089165625.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Handling reconnections and errors with HTML5 Server-Sent Events." />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796829157.html" title="Handling reconnections and errors with HTML5 Server-Sent Events." class="phphistorical_Version2_mids_title">Handling reconnections and errors with HTML5 Server-Sent Events.</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 03, 2025 am	 02:28 AM</span>
    								<p class="Articlelist_txts_p">When using HTML5SSE, the methods to deal with reconnection and errors include: 1. Understand the default reconnection mechanism. EventSource retrys 3 seconds after the connection is interrupted by default. You can customize the interval through the retry field; 2. Listen to the error event to deal with connection failure or parsing errors, distinguish error types and execute corresponding logic, such as network problems relying on automatic reconnection, server errors manually delay reconnection, and authentication failure refresh token; 3. Actively control the reconnection logic, such as manually closing and rebuilding the connection, setting the maximum number of retry times, combining navigator.onLine to judge network status to optimize the retry strategy. These measures can improve application stability and user experience.</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796829178.html" title="Declaring the correct HTML5 doctype for modern pages." class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175148132111973.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Declaring the correct HTML5 doctype for modern pages." />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796829178.html" title="Declaring the correct HTML5 doctype for modern pages." class="phphistorical_Version2_mids_title">Declaring the correct HTML5 doctype for modern pages.</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 03, 2025 am	 02:35 AM</span>
    								<p class="Articlelist_txts_p">Doctype is a statement that tells the browser which HTML standard to use to parse the page. Modern web pages only need to be written at the beginning of the HTML file. Its function is to ensure that the browser renders the page in standard mode rather than weird mode, and must be located on the first line, with no spaces or comments in front of it; there is only one correct way to write it, and it is not recommended to use old versions or other variants; other such as charset, viewport, etc. should be placed in part.</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796829167.html" title="Implementing client-side form validation using HTML attributes." class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175148109151878.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Implementing client-side form validation using HTML attributes." />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796829167.html" title="Implementing client-side form validation using HTML attributes." class="phphistorical_Version2_mids_title">Implementing client-side form validation using HTML attributes.</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 03, 2025 am	 02:31 AM</span>
    								<p class="Articlelist_txts_p">Client-sideformvalidationcanbedonewithoutJavaScriptbyusingHTMLattributes.1)Userequiredtoenforcemandatoryfields.2)ValidateemailsandURLswithtypeattributeslikeemailorurl,orusepatternwithregexforcustomformats.3)Limitvaluesusingmin,max,minlength,andmaxlen</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796829956.html" title="How to group options within a select dropdown using html?" class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175157020270129.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to group options within a select dropdown using html?" />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796829956.html" title="How to group options within a select dropdown using html?" class="phphistorical_Version2_mids_title">How to group options within a select dropdown using html?</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 04, 2025 am	 03:16 AM</span>
    								<p class="Articlelist_txts_p">Use tags in HTML to group options in the drop-down menu. The specific method is to wrap a group of elements and define the group name through the label attribute, such as: 1. Contains options such as apples, bananas, oranges, etc.; 2. Contains options such as carrots, broccoli, etc.; 3. Each is an independent group, and the options within the group are automatically indented. Notes include: ① No nesting is supported; ② The entire group can be disabled through the disabled attribute; ③ The style is restricted and needs to be beautified in combination with CSS or third-party libraries; plug-ins such as Select2 can be used to enhance functions.</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796835653.html" title="Integrating CSS and JavaScript effectively with HTML5 structure." class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175226046128038.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Integrating CSS and JavaScript effectively with HTML5 structure." />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796835653.html" title="Integrating CSS and JavaScript effectively with HTML5 structure." class="phphistorical_Version2_mids_title">Integrating CSS and JavaScript effectively with HTML5 structure.</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 12, 2025 am	 03:01 AM</span>
    								<p class="Articlelist_txts_p">HTML5, CSS and JavaScript should be efficiently combined with semantic tags, reasonable loading order and decoupling design. 1. Use HTML5 semantic tags, such as improving structural clarity and maintainability, which is conducive to SEO and barrier-free access; 2. CSS should be placed in, use external files and split by module to avoid inline styles and delayed loading problems; 3. JavaScript is recommended to be introduced in front, and use defer or async to load asynchronously to avoid blocking rendering; 4. Reduce strong dependence between the three, drive behavior through data-* attributes and class name control status, and improve collaboration efficiency through unified naming specifications. These methods can effectively optimize page performance and collaborate with teams.</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796831880.html" title="Implementing Clickable Buttons Using the HTML button Element" class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175182671121571.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Implementing Clickable Buttons Using the HTML button Element" />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796831880.html" title="Implementing Clickable Buttons Using the HTML button Element" class="phphistorical_Version2_mids_title">Implementing Clickable Buttons Using the HTML button Element</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 07, 2025 am	 02:31 AM</span>
    								<p class="Articlelist_txts_p">To use HTML button elements to achieve clickable buttons, you must first master its basic usage and common precautions. 1. Create buttons with tags and define behaviors through type attributes (such as button, submit, reset), which is submitted by default; 2. Add interactive functions through JavaScript, which can be written inline or bind event listeners through ID to improve maintenance; 3. Use CSS to customize styles, including background color, border, rounded corners and hover/active status effects to enhance user experience; 4. Pay attention to common problems: make sure that the disabled attribute is not enabled, JS events are correctly bound, layout occlusion, and use the help of developer tools to troubleshoot exceptions. Master this</p>
    							</div>
    														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
    								<a href="http://www.miracleart.cn/faq/1796832574.html" title="Submitting Form Data Using New HTML5 Methods (FormData)" class="phphistorical_Version2_mids_img">
    									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
    										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175191288234525.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Submitting Form Data Using New HTML5 Methods (FormData)" />
    								</a>
    								<a href="http://www.miracleart.cn/faq/1796832574.html" title="Submitting Form Data Using New HTML5 Methods (FormData)" class="phphistorical_Version2_mids_title">Submitting Form Data Using New HTML5 Methods (FormData)</a>
    								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 08, 2025 am	 02:28 AM</span>
    								<p class="Articlelist_txts_p">It is more convenient to submit form data using HTML5's FormData API. 1. It can automatically collect form fields with name attribute or manually add data; 2. It supports submission in multipart/form-data format through fetch or XMLHttpRequest, which is suitable for file upload; 3. When processing files, you only need to append the file to FormData and send a request; 4. Note that the same name field will be overwritten, and JSON conversion and no nesting structure need to be handled.</p>
    							</div>
    													</div>
    
    													<a href="http://www.miracleart.cn/web-designer.html" class="phpgenera_Details_mainL4_botton">
    								<span>See all articles</span>
    								<img src="/static/imghw/down_right.png" alt="" />
    							</a>
    											</div>
    				</div>
    					</div>
    	</main>
    	<footer>
        <div   id="377j5v51b"   class="footer">
            <div   id="377j5v51b"   class="footertop">
                <img src="/static/imghw/logo.png" alt="">
                <p>Public welfare online PHP training,Help PHP learners grow quickly!</p>
            </div>
            <div   id="377j5v51b"   class="footermid">
                <a href="http://www.miracleart.cn/about/us.html">About us</a>
                <a href="http://www.miracleart.cn/about/disclaimer.html">Disclaimer</a>
                <a href="http://www.miracleart.cn/update/article_0_1.html">Sitemap</a>
            </div>
            <div   id="377j5v51b"   class="footerbottom">
                <p>
                    ? php.cn All rights reserved
                </p>
            </div>
        </div>
    </footer>
    
    <input type="hidden" id="verifycode" value="/captcha.html">
    
    
    
    
    		<link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' />
    	
    	
    	
    	
    	
    
    	
    	
    
    
    
    
    
    <footer>
    <div class="friendship-link">
    <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
    <a href="http://www.miracleart.cn/" title="国产av日韩一区二区三区精品">国产av日韩一区二区三区精品</a>
    
    <div class="friend-links">
    
    
    </div>
    </div>
    
    </footer>
    
    
    <script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
    </script>
    </body><div id="bddma" class="pl_css_ganrao" style="display: none;"><tbody id="bddma"></tbody><nobr id="bddma"></nobr><small id="bddma"></small><menuitem id="bddma"><rp id="bddma"><input id="bddma"></input></rp></menuitem><dfn id="bddma"><source id="bddma"></source></dfn><progress id="bddma"><em id="bddma"></em></progress><strong id="bddma"><dl id="bddma"><font id="bddma"><dfn id="bddma"></dfn></font></dl></strong><small id="bddma"></small><listing id="bddma"><rt id="bddma"><mark id="bddma"></mark></rt></listing><s id="bddma"><center id="bddma"><output id="bddma"><ruby id="bddma"></ruby></output></center></s><sup id="bddma"></sup><th id="bddma"></th><output id="bddma"><nav id="bddma"><nobr id="bddma"><label id="bddma"></label></nobr></nav></output><dl id="bddma"></dl><div id="bddma"></div><em id="bddma"><legend id="bddma"><p id="bddma"><pre id="bddma"></pre></p></legend></em><input id="bddma"><object id="bddma"><big id="bddma"><option id="bddma"></option></big></object></input><address id="bddma"><abbr id="bddma"></abbr></address><mark id="bddma"></mark><menuitem id="bddma"><rp id="bddma"><legend id="bddma"></legend></rp></menuitem><var id="bddma"></var><tfoot id="bddma"><b id="bddma"></b></tfoot><option id="bddma"><optgroup id="bddma"><legend id="bddma"><dfn id="bddma"></dfn></legend></optgroup></option><pre id="bddma"></pre><var id="bddma"></var><dfn id="bddma"></dfn><tbody id="bddma"><optgroup id="bddma"><pre id="bddma"></pre></optgroup></tbody><big id="bddma"><option id="bddma"><pre id="bddma"><style id="bddma"></style></pre></option></big><input id="bddma"><dfn id="bddma"><td id="bddma"><ins id="bddma"></ins></td></dfn></input><object id="bddma"></object><mark id="bddma"><table id="bddma"></table></mark><th id="bddma"><object id="bddma"></object></th><dl id="bddma"></dl><optgroup id="bddma"></optgroup><acronym id="bddma"></acronym><span id="bddma"></span><nav id="bddma"></nav><ul id="bddma"><var id="bddma"><strong id="bddma"><acronym id="bddma"></acronym></strong></var></ul><ul id="bddma"></ul><table id="bddma"><p id="bddma"><strike id="bddma"><center id="bddma"></center></strike></p></table><delect id="bddma"></delect><video id="bddma"></video><xmp id="bddma"></xmp><u id="bddma"><strong id="bddma"><cite id="bddma"><sub id="bddma"></sub></cite></strong></u><dfn id="bddma"></dfn><strong id="bddma"><cite id="bddma"></cite></strong><dfn id="bddma"></dfn><del id="bddma"></del><acronym id="bddma"></acronym><tbody id="bddma"><optgroup id="bddma"><pre id="bddma"></pre></optgroup></tbody><tfoot id="bddma"><center id="bddma"></center></tfoot><delect id="bddma"><del id="bddma"></del></delect><i id="bddma"></i><nobr id="bddma"></nobr><small id="bddma"><strong id="bddma"></strong></small><legend id="bddma"><wbr id="bddma"><mark id="bddma"></mark></wbr></legend><em id="bddma"><abbr id="bddma"></abbr></em><rt id="bddma"><dd id="bddma"><menuitem id="bddma"></menuitem></dd></rt><b id="bddma"><abbr id="bddma"><bdo id="bddma"><dd id="bddma"></dd></bdo></abbr></b><legend id="bddma"></legend><cite id="bddma"></cite><samp id="bddma"><nobr id="bddma"><listing id="bddma"><rt id="bddma"></rt></listing></nobr></samp><meter id="bddma"></meter><small id="bddma"><strong id="bddma"><acronym id="bddma"><sub id="bddma"></sub></acronym></strong></small><dl id="bddma"><th id="bddma"></th></dl><center id="bddma"><meter id="bddma"><strong id="bddma"></strong></meter></center><option id="bddma"></option><xmp id="bddma"></xmp><strike id="bddma"></strike><nav id="bddma"></nav><tr id="bddma"></tr><progress id="bddma"><output id="bddma"><table id="bddma"></table></output></progress><menuitem id="bddma"></menuitem><mark id="bddma"><table id="bddma"></table></mark><wbr id="bddma"><acronym id="bddma"><samp id="bddma"></samp></acronym></wbr><center id="bddma"></center><xmp id="bddma"><rp id="bddma"><listing id="bddma"></listing></rp></xmp><dfn id="bddma"><var id="bddma"><dl id="bddma"></dl></var></dfn><sup id="bddma"></sup><output id="bddma"></output><label id="bddma"></label><rp id="bddma"></rp><div id="bddma"></div><video id="bddma"></video><span id="bddma"></span><input id="bddma"><object id="bddma"><td id="bddma"><ins id="bddma"></ins></td></object></input><object id="bddma"></object><p id="bddma"></p><style id="bddma"><tbody id="bddma"></tbody></style><ruby id="bddma"></ruby><dd id="bddma"><ins id="bddma"><track id="bddma"><input id="bddma"></input></track></ins></dd><pre id="bddma"></pre><delect id="bddma"><del id="bddma"></del></delect><optgroup id="bddma"><legend id="bddma"></legend></optgroup><th id="bddma"></th><em id="bddma"></em><div id="bddma"></div><button id="bddma"><option id="bddma"></option></button><table id="bddma"><optgroup id="bddma"><s id="bddma"></s></optgroup></table><span id="bddma"><form id="bddma"></form></span></div>
    
    </html>