Archived

This topic is now archived and is closed to further replies.

Just some HTML5 questions


12 posts in this topic

Posted · Report post

Hi,

 

I was just wondering why, when I look in my sourcecode, I still see type atribute to link and script tags?

I learned this was not neccesarry anymore with HTML5, and taking in consideration Pagelines is build on HTML5, why is it still there?

 

Also I see for page title and subtitle (h6) there is no use of the hgroup element, why not I'm wondering.

 

Kind regards, 

 

Willem

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Willem,

 

I have bookmarked both your topics and when I get more information from one of our developers, Ill reply here.

 

Thank you for your patience.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

I was just wondering why, when I look in my sourcecode, I still see type atribute to link and script tags?

I learned this was not neccesarry anymore with HTML5, and taking in consideration Pagelines is build on HTML5, why is it still there?

 

Also I see for page title and subtitle (h6) there is no use of the hgroup element, why not I'm wondering.

 

Kind regards, 

 

Willem

 

Which link and script tags are you referring to?

What do you mean page subtitle? Page titles and post titles both use hgroup already.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Simon_P,

 

Sorry for my late response. Sometimes I'm just doing to much things at the same time.

 

The link and script tags I'm reffering to:

 

4. No More Types for Scripts and Links

You possibly still add the type attribute to your link and script tags.

  1. <link rel="stylesheet" href="path/to/stylesheet.css" type="text/css" />  
  2. <script type="text/javascript" src="path/to/script.js"></script>  

This is no longer necessary. It’s implied that both of these tags refer to stylesheets and scripts, respectively. As such, we can remove the type attribute all together.

  1. <link rel="stylesheet" href="path/to/stylesheet.css" />  
  2. <script src="path/to/script.js"></script>  
  3.  

 

About the hgroup, the following from the source:

 

13. hgroup

Imagine that, in my site’s header, I had the name of my site, immediately followed by a subheading. While we can use an <h1> and <h2> tag, respectively, to create the mark-up, there still wasn’t, as of HTML4, an easy way to semantically illustrate the relationship between the two. Additionally, the use of an h2 tag presents more problems, in terms of hierarchy, when it comes to displaying other headings on the page. By using thehgroup element, we can group these headings together, without affecting the flow of the document’s outline.

  1. <header>  
  2.     <hgroup>  
  3.         <h1> Recall Fan Page </h1>  
  4.         <h2> Only for people who want the memory of a lifetime. </h2>  
  5.     </hgroup>  
  6. </header>  
  7.  

 

Luckily you don't use a <h1> for the site title, but for the pagetitle... but however. We stil have a site title with a subtitle (why do you choose to use <h6> for this?).

Why are the site title and subtitle not grouped into <hgroup></hgroup>?

 

Kind regards,

 

Willem

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Willem

 

I've bring this to our developers attention and we'll get back to you shortly with more information on the above.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi James, it has been a long time and I'm wondering what the developers said on this. 

 

Kind regards,

 

Willem

Share this post


Link to post
Share on other sites

Posted · Report post

Willem,

 

I'm not sure why they've not replied to James, but they're rather busy guys and prioritize based on critical need.  This issue, as important as it may be, isn't mission critical.  It may be resolved in some future edition or version.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, I will keep an eye on it ;-). Ofcourse, at the end when there is time to look at this topic, I would like to receive a reply. The reason for that is that I also spend time on looking critical at the code that Pagelines uses. Maybe, at the end it isn't helpfull, but it also can be. As a user of Pagelines (built upon HTML5) I ofcourse would like that it is implemented correctly (not saying that it isn't the case at this moment, that's why I asked the questions).

 

Kind regards,

 

Willem

Share this post


Link to post
Share on other sites

Posted · Report post

Willem, as soon as answers are available to us, we're attentive to posting them to clients expecting replies.

Share this post


Link to post
Share on other sites

Posted · Report post

Willem

Most everything in Framework is HMTL5 althout some things may have fallen out of spec since Framework was released. For example hgroup, yes, hgroup is no longer valid HTML5 and should be updated to reflect this but this change was made after Framework was built. 

 

Script tags, those are up to the 3rd party authors. I personally never use <script type=""> and just use <script> but others do things differently. Hope this helps.

Share this post


Link to post
Share on other sites

Posted · Report post

@Rob, great!

@beardedavenger, this helps, Thanks. I didn't know hgroup is no longer valid HTML5 anymore. Script tags is also clear to me.

Share this post


Link to post
Share on other sites

Posted · Report post

No problem.

Share this post


Link to post
Share on other sites