- This topic is empty.
October 25, 2011 at 11:32 am #34888
This is my first HTML5 website and I´m not sure how to do it right.
Is the html structure right ?
Strange things happens in IE8 % IE7 …. but thats what I expected :-)October 25, 2011 at 6:19 pm #89644joshuanhibbertMember
I can’t get the page to load.
EDIT: Looks good. I don’t see a problem with the way you have used section. The spec says that a section should have a heading first, which you have done.October 25, 2011 at 6:32 pm #89645standuncanMember
Its not bad IMO. I would probably replace those sections with divs myself.October 25, 2011 at 9:58 pm #89653DanaBMember
I’m no pro at HTML5, but it looks pretty similar to what I would have done…
My only comment, is that since you posted this on CSS-tricks and Chris is a huge proponent of psuedo-elements….your “Quick Links” section is a prime example of where you could use the :before psuedo-elements to add the “-“. That way you could get rid of jQuery all together…October 26, 2011 at 3:22 am #89661
In the aside I use the article instead of div. Every article contains a h4 and some p – is it okay not to use header around the h4
…. I don´t use them for any CSS markup!
hope you understand my English :-)October 26, 2011 at 3:25 am #89662October 26, 2011 at 4:06 pm #89718October 26, 2011 at 5:02 pm #89721standuncanMember
“in HTML5” you do not need to use the space or forward slash on those tags to close them. It’s actually preferred to have an explicit ending (<br>); however since HTML5 is backwards compatible it will accept <br />.
As more engines/browsers upgrade, there will be less backwards compatibility to my understanding and the <br /> could be interpreted as <br></br> which could leave two breaks.October 27, 2011 at 12:57 am #89729
I myself was using specific encoding because of my language characters
switched to UTF-8 working good too
did not study this part exactly in the specs
I am used to proper syntax coding from XHTML days
sort of habit that suits me and I then produce more valid code in general
though I know HTML5 would validate almost anything, not as XHTML Strict :)October 27, 2011 at 1:09 am #89730chrisburtonParticipant
@krysak4ever To be honest, validating your code isn’t as important as you think. As long as your html is ‘readable’ by bots and makes sense.October 27, 2011 at 2:20 am #89733
I know, I do not belong in the crazy camp “green = great web”
there is a ton of webs “VALID” yet ugly, with weird code mess, … you know
I use validator as a tool for debuggin html lets say ;]October 27, 2011 at 3:04 am #89737October 27, 2011 at 3:15 am #89738
I do not understand how it works exactly but for Latin Alphabet and you can get away quite good with UTF-8
first time I worked on web in 4 different languages and was looking for separate encoding for each of them
then a colleague of mine says “hey use UTF8 wokrs fine”
to answer this for you I am not the most experienced person ;]October 27, 2011 at 9:35 pm #89799KralleParticipant
Regarding the UTF-8 charset: Æ, Ø and Å works perfectly fine. I’m a Dane as well, and I’ve been using UTF-8 the last couple of years without having any problems. If you want to be on the safe side, you can easily convert the special characters into HTML entities:
æ becomes æ
ø becomes ø
å becomes å
Æ becomes Æ
Ø becomes Ø
Å becomes Å
As long as you remember to set your charset, I don’t think you’ll have any problems – I know I haven’t had any.
Besides that your site looks good. :-)October 28, 2011 at 3:50 am #89807
- The forum ‘CSS’ is closed to new topics and replies.