Solved

Error in button when validating W3C

Posted on 2014-09-19
2
1,911 Views
Last Modified: 2014-09-19
Code for button:

<a href="../../logout.php" class="btn btn-danger" type="button">Log out</a>

Error when validating page:

Bad value button for attribute type on element a: Subtype missing.
0
Comment
Question by:amucinobluedot
2 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 40332509
Unless you're using the HTML5 doctype, there is no "type" attribute for the anchor tag.  You can use CSS to style the element instead.
http://www.w3schools.com/tags/tag_a.asp
0
 

Author Comment

by:amucinobluedot
ID: 40332518
I removed it and the button still works fine :#  ... thanks
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question