Website layout describes how the webpage of the website will look. It describes the content that has to be placed in columns i.e. it can be either one or many columns. There are two ways in which different layout can be created and these are called as using table method or using div method.
There are basically two tags that are used <table> and <div>.
<table> : Using this is the simplest way to create a layout.
<html><body><table width="500" border="0"><tr><td colspan="2" style="background-color:#FFA500;"><h1>Main Title</h1></td></tr><tr><td colspan="2" style="background-color:#FFA500;text-align:center;">This is my page</td></tr></table></body></html>
<div> : It is used as a block element and is defined to group HTML elements together in one. The <div> tag is used to create multiple layouts.
<html><body><div id="container" style="width:500px"><h1 style="margin-bottom:0;">Main Title of Web Page</h1></div><b>Menu</b><br /></div></body></html>
Answers (0)