Can I use multiple < class p 'logos' = > tag with the same name in the same html page?

I was told do not to use the < div class > tags too many times. I used them for the texts, the images, to clear the floats, basically, I built my website using multiple < div class > tags. So if I can not use several tags < div class > can I use the tags < class p > several times in the same html page?

I have a string of logos at the bottom of my Web page that all use the same css for all logos features. It would be the right way to write the code:

HTML

< class p 'logos' = > Logo1 < a href = "... > < /a > < /p >"

< class p 'logos' = > Logo2 < a href = "... > < /a > < /p >"

< class p 'logos' = > Logo3 < a href = "... > < /a > < /p >"

< class p 'logos' = > Logo4 < a href = "... > < /a > < /p >"

< class p 'logos' = > Logo5 < a href = "... > < /a > < /p >"

< class p 'logos' = > Logo6 < a href = "... > < /a > < /p >"

CSS

.logos {}

margin-left: 10px;

}

Here is my site: http://www.darbymanufacturing.com/test_website/index.html - this is the site built with all the tags div class

I restarted the site in order to write the code correctly so that I don't come from errors when downloading from the server, as I have with the above link.

However, custom (and it's only a good one I think) are to use IDS to identify the primary container on your page.  Clearly you usually only have one header, content, footer, etc., area on a page.  This allows you to immediately identify where these rules apply.  Using a more generic class selector does not give you the same immediate locatability.  In addition to this, ID selectors have a specificity greated than the class selectors, which reinforces the rules cascade in the specific containers.

Tags: Dreamweaver

Similar Questions

Maybe you are looking for