Clare has attended:
Dreamweaver 8 Introduction course
DivTags
Hi,
Can anyone tell me how divtags work?
Thanks
Clare
RE: DivTags
Hi Claire,
DIV tags define a division or section in a document. They make web pages easier to manage, style, and manipulate.
DIV tags are not meant to replace P tags, as these are for paragraphs only. DIVs define more general divisions within a document. Also, DIV tags can contain nearly any other tag, but they can't be inside P tags.
It's a good idea to label DIV. For example, if you're defining the main content area of your site, you should name that DIV tag "maincontent". <DIV ID="maincontent">
This can make styling your document easier, as you may create a CSS style called #maincontent with all the border, background and any font styles you may like, and the maincontent DIV tag will then have those style properties.
I hope this helps and that you enjoyed your Dreamweaver Introduction course the other day.
If you have any further questions, please reply to this post, otherwise, please mark this question as resolved.
Regards, Rich