Solved

Error in button when validating W3C

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

759 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

18 Experts available now in Live!

Get 1:1 Help Now