Instruction
stringlengths 17
42
| Input
stringlengths 16
105
| Output
stringlengths 16
106
|
---|---|---|
Fix incomplete tags | <html><head><title>Page Title</title></head><body><h1>Welcome</h1><p>This is a paragraph<p></body></html> | <html><head><title>Page Title</title></head><body><h1>Welcome</h1><p>This is a paragraph</p></body></html> |
Correct incorrect nesting | <div><p>Paragraph 1</div><div><p>Paragraph 2</p></div> | <div><p>Paragraph 1</p></div><div><p>Paragraph 2</p></div> |
Remove duplicate attributes | <input type="text" type="text" name="name"> | <input type="text" name="name"> |
Ensure unique IDs | <div id="duplicateID"></div><div id="duplicateID"></div> | <div id=duplicateID1"></div><div id="duplicateID2"></div>" |
Fix missing end tags | <ul><li>Item 1<li>Item 2</ul> | <ul><li>Item 1</li><li>Item 2</li></ul> |
Correct nesting of elements | <table><tr><td>Cell 1<tr><td>Cell 2</td></tr></table> | <table><tr><td>Cell 1</td></tr><tr><td>Cell 2</td></tr></table> |
Ensure valid attribute syntax | <img src=image.jpg alt=Image> | <img src='image.jpg' alt='Image'> |
Remove invalid elements | <b>Bold text</b><invalid>Invalid</invalid> | <b>Bold text</b> |
Fix improperly nested lists | <ul><li>Item 1</ul><ol><li>Item 2</ol> | <ul><li>Item 1</li></ul><ol><li>Item 2</li></ol> |
Correct nesting in tables | <table><tr><td>Cell</td></tr><tr><td>Cell</td></tr></table> | <table><tr><td>Cell</td></tr><tr><td>Cell</td></tr></table> |
Ensure complete attribute values | <input type="text" name=> | <input type="text" name="name"> |
Fix broken attribute quotes | <input type=text" name='name'> | <input type="text" name='name'> |
Remove duplicate IDs in forms | <form><input id="duplicateID"><input id="duplicateID"></form> | <form><input id=duplicateID1"><input id="duplicateID2"></form>" |
Fix missing end tags for lists | <ul><li>Item 1<li>Item 2</ul> | <ul><li>Item 1</li><li>Item 2</li></ul> |
Correct nesting of inline elements | <span><div>Block inside inline</div></span> | <div><span>Block inside inline</span></div> |
Ensure valid attribute names | <div clas="className"></div> | <div class=className"></div>" |
Remove invalid nesting of elements | <div><p>Paragraph<div>Nested div</div></p></div> | <div><p>Paragraph</p><div>Nested div</div></div> |
Fix duplicate attributes in forms | <input type="text" type="text" name="name"> | <input type="text" name="name"> |
Correct missing attribute values | <input type="text" name=> | <input type="text" name="name"> |
Fix incomplete self-closing tags | <img src="image.jpg"> | <img src="image.jpg" /> |
Remove invalid nesting of inline elements | <span><div>Block inside inline</div></span> | <div><span>Block inside inline</span></div> |
Ensure proper closing tags | <div><p>Paragraph<div>Nested div</div> | <div><p>Paragraph</p><div>Nested div</div></div> |
Fix improperly closed tags | <div><p>Paragraph</div> | <div><p>Paragraph</p></div> |
Ensure unique IDs for interactive elements | <button id="duplicateID"></button><button id="duplicateID"></button> | <button id=duplicateID1"></button><button id="duplicateID2"></button>" |
Correct improperly nested sections | <section><header>Header<section>Nested section</section></header></section> | <section><header>Header</header><section>Nested section</section></section> |
Ensure valid ID values | <div id="123invalid"></div> | <div id=validID123"></div>" |
Fix broken attribute syntax | <a href=www.example.com>Link</a> | <a href='www.example.com'>Link</a> |
Correct duplicate attribute values | <input type="text" name="name" name="duplicate"> | <input type="text" name="name"> |
Remove invalid block elements | <span><div>Block inside inline</div></span> | <div><span>Block inside inline</span></div> |
Ensure proper nesting of headings | <h1>Heading 1<h2>Subheading<h1>Another Heading</h2></h1> | <h1>Heading 1</h1><h2>Subheading</h2><h1>Another Heading</h1> |
Fix improperly nested form elements | <form><input><button>Submit</button></form> | <form><input /><button>Submit</button></form> |
Ensure valid attribute names in forms | <input typ="text"> | <input type=text">" |
Remove invalid nesting within lists | <ul><li>Item<ul><li>Nested Item</li></ul></li></ul> | <ul><li>Item<ul><li>Nested Item</li></ul></li></ul> |
Ensure proper closing of nested elements | <div><p>Paragraph<div>Nested div</div> | <div><p>Paragraph</p><div>Nested div</div></div> |
Fix duplicate attribute values in forms | <input type="text" name="name" name="duplicate"> | <input type="text" name="name"> |
Correct incomplete form elements | <form><input type="text" name=></form> | <form><input type="text" name="name"></form> |
Ensure valid attribute values in links | <a href=>Link</a> | <a href="url">Link</a> |
Fix broken nesting of table elements | <table><tr><td>Cell<tr><td>Another Cell</td></tr></table> | <table><tr><td>Cell</td></tr><tr><td>Another Cell</td></tr></table> |
Ensure proper closing of inline elements | <span>Text<span> | <span>Text</span> |
Remove invalid nesting of headings | <h1><p>Paragraph<h1>Heading</h1></p> | <h1>Heading</h1><p>Paragraph</p> |
Fix improperly closed form elements | <form><input><button>Submit</form> | <form><input /><button>Submit</button></form> |
Ensure valid syntax for attribute values | <input type="text" name=name> | <input type=text" name='name'>" |
Remove duplicate attributes in lists | <ul><li>Item<li>Item</ul> | <ul><li>Item</li><li>Item</li></ul> |
Fix incomplete tags in forms | <form><input type="text" name="name"></form> | <form><input type=text" name="name"></form>" |
Ensure unique IDs for form controls | <form><input id="duplicateID"><input id="duplicateID"></form> | <form><input id=duplicateID1"><input id="duplicateID2"></form>" |
Provide a document title | <html><head></head><body><h1>Welcome</h1></body></html> | <html><head><title>Welcome</title></head><body><h1>Welcome</h1></body></html> |
Ensure page title is present | <html><head></head><body><h1>Welcome to Our Site</h1></body></html> | <html><head><title>Welcome to Our Site</title></head><body><h1>Welcome to Our Site</h1></body></html> |
Provide a descriptive title | <html><head><title></title></head><body><h1>Company Info</h1></body></html> | <html><head><title>Company Info</title></head><body><h1>Company Info</h1></body></html> |