Solved

Error in button when validating W3C

Posted on 2014-09-19
2
1,698 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 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now