0 members and 3,787 guests
No Members online

» Site Navigation
» Stats
Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
|
-
 Originally Posted by Solaris
I wouldn't necessarily advise this, even though the page is simple. Reason being, he may want to use the same selector for multiple divs on the same page, should he add more, in which case the id would not be appropriate.
Seeing as how the class name is "whitebox" I suppose it is possible that he would reuse it, not sure for what. But I was only suggesting he use ID instead if it is meant to be his "container" or "wrapper" div as some call it. For the most part, that div encloses everything else making it one of a kind, so I always give it an ID. Either way does work though.
I also disagree here. The h1 element can be used multiple times within the same page. It's not an element that really needs to be assigned an id. Header elements in general are only used to assign importance in terms of markup. Sure you could argue that you should have one H1 and then multiple h2's and h3's as subheaders, but the same could be said for having multiple h1's. All it really does is add semantic value to your content. Search engines can index your site easily by seeing what content belongs to what.
Generally the title of your page is the h1 element, and all of your other headers are h2's, and their subheaders are h3's and down. That's how I do it at least, definitely not the one absolute approach. The reason I suggested he give that h1 element an ID instead of class is because he called it "title1". That tells me that he means for it to be the title residing in the header of his page which is only used once. It's kind of hard to give solid advice though when there's only two lines of content on the entire page.
How come? HR tags may not be used by many, but it still serves a purpose. On self-closing, it really depends on if you're doing XHTML or HTML4. But the hr element in general is also used in HTML5, and can be styled in CSS, so it's certainly not deprecated. Note, however that it would be self-closing in HTML5.
I suppose this is more of a personal decision, depending on how much you advocate the separation of structure and presentation. To me, the <hr> tag is a presentational element, maybe not for others, but because it is to me, I leave it to CSS. I like adding border-bottom to headers/titles rather than having an <hr> element underneath in the HTML document. As far as it self-closing, I always go with XHTML so I always close every tag. Plus it's a good habit to have whether your using XHTML or not. Plus he self-closed the <br> tags so I figured why not the <hr> ones. It's obvious he's very new to coding, so when giving advice I think it's more beneficial to say what you should do and not just what you have to do.
But as everyone else said, the site itself does need a bit more work done to it. Minimalism is great, but it in itself has some form of style.
.....

= Monroe Smith IV
= skeetonbeezies
Similar Threads
-
By Twisted_Pro in forum Digital Art
Replies: 3
Last Post: 05-04-2007, 04:10 AM
-
By RinoaLockhart in forum Digital Art
Replies: 21
Last Post: 08-13-2006, 10:54 AM
-
By Ryzee in forum Digital Art
Replies: 1
Last Post: 10-29-2005, 08:20 AM
-
By gugge in forum The Void
Replies: 11
Last Post: 08-05-2005, 07:47 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|