wpvidZ

Learn WordPress With Video Tutorials

  • Blog
  • Browse
    • Backup & Restore
    • WordPress Localhost
    • WordPress Hosting
    • WordPress themes
    • Version Updates
    • Plugin Tips
    • Security
    • Tutorials
    • WordPress SEO
    • WP Miscellaneous
    • Sitemap
  • WP 5+ Tutorial
  • Search
wpvidZ Blog Tutorials There is no attribute “target” HTML strict Fix

Tutorials

There is no attribute “target” HTML strict Fix

Last updated on October 1, 2017
Posted on December 4, 2010

There is no attribute “target” w3c error experience.

I have a habit with my blogs, about once or twice a month, I checked the validation in w3c. With this blog, I have checked almost once a week or sometimes more often, depends on how often i modify some stuff.

My another experience with validating wordpress code is with Thesis theme.

I choose Thesis is the best SEO theme for wordpress, one of the reason is it has clean code, therefore it is validated in W3C validator. (see more about how to validate wordpress in w3c post)

The great thing with Thesis is also it has XTML strict, which is good, but harder to learn.

Thing was i wanted to put “target:_blank” on my link, and i checked the validator, the result is there is no attribute “target” error message.

There is no attribute “target” XHTML Strict and Transitional.

This blog uses XHTML Transitional, therefore i can use the code: target=”_blank”. But Thesis theme is using XHTML strict, this is why we can’t use target=”_blank” otherwise it will end to there is no attribute “target” in w3c validator website.

I choose to learn XHTML transitional since it is not so difficult and has less rules than the strick ones. Transitional is easier to learn for beginners, like myself.

The benefit of having XHTML strick is it makes visitors browsers to renders our sites more strict, means it improves accessability of your site, by visitors, and search engines bots.

There is no attribute “target” w3c error fix.

If you use Thesis or other XHTML strict document, there are some attributes that you can’t use, but allowed in transitional.

For example, in my case, i wanted to validate the target=”_blank” but got there is no attribute “target” error notification.

The error screenshot:
there is no attribute target

How to fix? it is actually not complicated, after doing researches in some forums, I found this code is validated to replace:

onclick="target='_blank';"

  • Is my site loading fast? I use this shared hosting
  • Try my theme >

So example: you want to type: <a href=”#” target=”_blank”> in XHTML strict, you will have to modify that code to:

<a href=”#” onclick=”target=’_blank’”>

It can be tricky sometimes.

That’s how I fix my there is no attribute “target” error notification invalid message in w3c.

attribute is no w3 w3c

Latest Posts

  • Twenty Nineteen Theme Full Tutorial – Creating a Website
  • Uninstall W3 Total Cache Plugin – Incredibly Easy!
  • Create WordPress Website 2018 on SiteGround Genesis
  • WordPress Noopener Noreferrer Rel Attribute Quick Fix
  • WordPress CDN Setup with MaxCDN and W3 Total Cache Plugin
  • Twenty Seventeen One Page Parallax Scrolling Website Style
  • How To Add Google Map in WordPress Contact Page
  • WordPress 4.7 Justify Text and Underline
  • Twenty Seventeen Footer “Proudly Powered By WordPress” Text
  • How To Add YouTube Subscribe Button To WordPress Website
← Locked out of wordpress — solution
→ Create ad blocks wordpress sidebar [125×125 widget]

Comments

  1. ets says

    February 26, 2011 at 4:08 am

    Thanks! Very useful. I check my blog in w3c too xD

    • Kimi says

      February 26, 2011 at 9:51 am

      Hi ets,

      Happy to hear! Thanks for leaving a comment 🙂

      Kimi.

  2. BYA says

    March 21, 2011 at 10:49 am

    10x – it works

  3. Rajesh Namase says

    June 27, 2011 at 9:53 am

    Any way to automatically change all tags into modified one, because I found same error. It is impossible to change all tags.

  4. Suryakant says

    December 26, 2011 at 3:29 am

    Hi,
    It great helps for me. Good job keep it up.

    Thanks

  5. Mike says

    April 23, 2012 at 11:23 pm

    This document was successfully checked as XHTML 1.0 Strict!

    :>)

    Thanks – Mike

  6. Himas says

    October 9, 2012 at 7:11 am

    HI there….
    Thnks v.much its work budy… this is very use ful..

    Thanks
    Himas – Sri Lanka

Comment form on this post is closed after 60 days.

Search

Worth Reading

  • WordPress CDN setupWordPress CDN Setup with MaxCDN and W3 Total Cache Plugin
  • WordPress Google maps in contact pageHow To Add Google Map in WordPress Contact Page
  • The configuration of YouTube Subscribe button in Google Developers web pageHow To Add YouTube Subscribe Button To WordPress Website
  • Adding Social Media Links to WordPress Menu With CSS Classes
  • Unable to create directory wp-content/uploads in WordPress
  • Forward Twitter to Facebook Using App and Feedburner Tutorial
  • Kitchen Sink WordPress - Seem Simple But Important
  • Admin Pointers, Drag and Drop WordPress 3.3 Media Upload Features
  • How to sell ebook in a wordpress blog?
  • Check your site's performance using Google labs Page Speed

Backup & Restore

Backup WordPress Without a Plugin or FTP

Export WordPress Database using phpMyAdmin

BigDump Alternative – When BigDump Failed Importing Large WP Database

At This Place The Current Query Includes More Than 300 Dump Lines

View All..

Live Online Website

View All..

Offline Installation

How to Upload WordPress localhost to live server manually

Steps to Install WordPress on Windows 8 and WAMP 2.4

Install WordPress on Mavericks OS X 2014

Maximum upload file size in WAMP WordPress

View All..


WPvidz Hosting Image

  • About Me
  • Contact
  • Affiliate Disclosure
  • Privacy Policy
  • Term of Use

Copyright© 2023 wpvidz.com SG2021 | sitemap.xml


WPvidz.com is independent from WordPress.org but is proudly powered by WordPress & its block-based editor (Gutenberg)

WpvidZ.com uses cookies" to give you the best browsing experience possible. If you click "I Accept" below then you are consenting to this. For more information about your privacy settings on this website, please visit the Privacy Policy page. I Accept