This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Dead simple - works on anything with attribute CSS selectors (IE7+) | |
| // http://en.wikipedia.org/wiki/Microdata_(HTML5) | |
| (function(){ | |
| var a = document.createElement('style'); | |
| a.innerHTML = '[itemprop] {border: 2px solid red;}'; | |
| document.body.appendChild(a); | |
| })(); | |
| // Paste this into your address bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> <!-- don't forget your doctype! --> | |
| <html> | |
| <head> | |
| <style> | |
| input { display: block; } /* use this instead of <br/> tags in your HTML */ | |
| </style> | |
| </head> | |
| <body> | |
| <form name="test" id="test"> <!-- add id so you can select it with DOM2 selector getElementById --> | |
| <select name="somename"> |
NewerOlder