Why we use <div> tag if same things can be done in <table> tag?
Is it used to separate all the contents of the page like content, menu, header, footer?
Why we use <div> tag if same things can be done in <table> tag?
Is it used to separate all the contents of the page like content, menu, header, footer?
Question in title:
What is the significance of using a
<div>tag in JSP?
<div> is html. JSP is html (including css, javascript and other resources like images) + Java server side elements:
${} and #{}The former provides static content while the latter provides dynamic content in the produced web page. You combine both to get a well formed fancy web page to show to your users.
Questions in body of the post:
Why we use
<div>tag if same things can be done in<table>tag?
No need to reinvent the wheel. It is answered here: Actual table Vs. Div table
Is it used to separate all the contents of the page like content, menu, header, footer?
Since HTML 5 you use <article> (content), <menuitem> (menu), <header> (header), <footer> (footer) instead of lot of <div>s. Still, you can keep using <div> for these purposes. More info: HTML5 New Elements