Why the tag is particularly useful in web page layout?
There are three main uses for div tags: CSS, semantics and scripting. 1) CSS One of the most popular uses of
is to use it in combination with Cascading Style Sheets (CSS). CSS is a means of specifying the layout and style of different elements on the web-page. CSS can be used to specify just about any aspect of layout you could think of. Font size, font color, background color, borders, margins and text alignment are some of the things you can change with CSS. The HTML
tag allows you to specify the areas of your document you wish to control with CSS. You may have four paragraphs that you want to center on the screen. What you might do is put them all within a pair of
tags and use CSS to make the content of those tags centered. As the name suggests, use your
tags to divide your page up into different layout sections. Once you have done this, use CSS to specify the layout for those sections. Thus by combining the HTML
tag with CSS, you can build an unlimited
Related Questions
There are three main uses for div tags: CSS, semantics and scripting. 1) CSS One of the most popular uses of
is to use it in combination with Cascading Style Sheets (CSS). CSS is a means of specifying the layout and style of different elements on the web-page. CSS can be used to specify just about any aspect of layout you could think of. Font size, font color, background color, borders, margins and text alignment are some of the things you can change with CSS. The HTML
tag allows you to specify the areas of your document you wish to control with CSS. You may have four paragraphs that you want to center on the screen. What you might do is put them all within a pair of
tags and use CSS to make the content of those tags centered. As the name suggests, use your
tags to divide your page up into different layout sections. Once you have done this, use CSS to specify the layout for those sections. Thus by combining the HTML
tag with CSS, you can build an unlimited