Jump to content
Willem-Siebe Spoelstra

Just some HTML5 questions

Recommended Posts

Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

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


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Simon    247
Simon

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
Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

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


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Willem

 

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


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

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

 

Kind regards,

 

Willem


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

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


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Rob    547
Rob

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


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

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.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

@Rob, great!

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


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Rob    547
Rob

No problem.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×