SALT-NLP/Design2Code
This dataset consists of 484 webpages from the C4 validation set, serving the purpose of testing multimodal LLMs on converting visual designs into code implementations. Each example is a pair of source HTML and screenshot ({id}.html and {id}.png). See the dataset in the huggingface format here. Note that all images in these webpages are replaced by a placeholder image (rick.jpg) Please refer to our project page and our paper for more information. Example Usage For example, you… See the full description on the dataset page: https://huggingface.co/datasets/SALT-NLP/Design2Code.
221.8k
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">2<html dir="ltr" xmlns="">3 <head>4 <style>5 html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}6table{border-collapse:collapse;border-spacing:0;}7caption, th, td{text-align:left;font-weight:normal;}8table, td, th{vertical-align:middle;}9blockquote:before, blockquote:after, q:before, q:after{content:"";}10blockquote, q{quotes:"" "";}11a img{border:none;}12:focus{outline:0;}13html{height:100%;padding-bottom:1px;}14body{background:#A9A9A9;color:#444;font:normal 75% sans-serif;line-height:1.5;}15h1,h2,h3,h4,h5,h6{color:#444;font-weight:normal;line-height:1;margin-bottom:0.3em;}16h4,h5,h6{font-weight:bold;}17h1{font-size:2.6em;}18h2{font-size:2em;}19h3{font-size:1.5em;}20h4{font-size:1.25em;}21h5{font-size:1.1em;}22h6{font-size:1em;}23h1 img, h2 img, h3 img, h4 img, h5 img, h6 img{margin:0;}24p{margin-bottom:1em;}25a:focus,a:hover{color:#002;}26a{color:#246;text-decoration:underline;}27abbr, acronym{border-bottom:1px dotted #666;}28address{margin-bottom:1.5em;}29blockquote{margin:1.2em;line-height:1.4em;}30blockquote span{font-size:1.4em;color:#000;}31del{color:#666;}32em, dfn, blockquote, address{font-style:italic;}33strong, dfn{font-weight:bold;}34sup, sub{line-height:0;}35cite{color:#666;}36pre{margin:1.5em 0;white-space:pre;}37pre,code,tt{font:1em monospace;line-height:1.5;}38li ul, li ol{margin-left:1.5em;}39ul, ol{margin:0 1.5em 1.5em 1.5em;}40ul{list-style-type:disc;}41ol{list-style-type:decimal;}42dl{margin:0 0 1.5em 0;}43dl dt{font-weight:bold;}44dd{margin-left:1.5em;}45table{margin-bottom:1.4em;}46th{font-weight:bold;}47thead th{background:#C3D9FF;}48th,td,caption{padding:4px 10px 4px 5px;}49tr.even td{background:#F2F6FA;}50tfoot{font-style:italic;}51caption{background:#EEE;}52table.data-table{border:1px solid #EEE;margin-bottom:2em;}53table.data-table th{background:#EEE;border:1px solid #DDD;color:#555;text-align:left;}54table.data-table tr{border-bottom:1px solid #EEE;}55table.data-table td, table th{padding:8px 10px;}56table.data-table td{background:#F6F6F6;border:1px solid #E6E6E6;}57table.data-table tr.even td{background:#FCFCFC;}58.small{font-size:0.9em;}59.smaller{font-size:0.8em;}60.smallest{font-size:0.7em;}61.large{font-size:1.1em;}62.larger{font-size:1.2em;}63.largest{font-size:1.3em;}64.hidden{display:none;}65.quiet{color:#666;}66.loud{color:#000;}67.highlight{background:#FF0;}68.text-left{text-align:left;}69.text-right{text-align:right;}70.text-center{text-align:center;}71.error, .notice, .success{border:1px solid #DDD;margin-bottom:1em;padding:0.6em 0.8em;}72.error{background:#FBE3E4;color:#8A1F11;border-color:#FBC2C4;}73.error a{color:#8A1F11;}74.notice{background:#FFF6BF;color:#514721;border-color:#FFD324;}75.notice a{color:#514721;}76.success{background:#E6EFC2;color:#264409;border-color:#C6D880;}77.success a{color:#264409;}78div.more{padding-top:6px;}79.more a, a.more{color:#666;}80.more a:hover, a.more:hover{color:#002;}81label{font-weight:bold;cursor:pointer;}82fieldset{padding:1.4em;margin:0 0 1.5em 0;border:1px solid #DDD;background:#F6F6F6;}83legend{font-weight:bold;font-size:1.2em;}84textarea{overflow:auto;}85.form-error{border-color:#F00;}86.center,.aligncenter{display:block;margin-left:auto;margin-right:auto;}87img.bordered,img.alignleft,img.alignright,img.aligncenter{background-color:#FFF;border:1px solid #DDD;padding:3px;}88img.alignleft, img.left{margin:0 1.5em 1em 0;}89img.alignright, img.right{margin:0 0 1em 1.5em;}90.left,.alignleft{float:left;}91.right,.alignright{float:right;}92.clear,.clearer{clear:both;}93.clearer{display:block;font-size:0;line-height:0;}94.col2{width:47%;}95.content-separator, .archive-separator{background:#EEE;clear:both;color:#FFE;display:block;font-size:0;height:1px;line-height:0;margin:12px 0 24px;}96.archive-separator{margin:0 0 14px;}97.separator-vertical{background:url('/img/separator-vertical.gif') repeat-y center top;}98.post{margin-bottom:24px;}99.post a{text-decoration:none;}100.post a:hover, .post-body a{text-decoration:underline;}101.post-title{border-bottom:1px solid #E5E5E5;}102.post-date{color:#777;font-size:0.9em;padding:8px 0 0;}103.post-date a{color:#444;}104.post-body{padding-top:12px;}105.post-meta{background:#FCFCFC;border:1px solid #ECECEC;color:#777;font-size:0.9em;padding:6px 10px;}106.post-meta a{color:#345;}107.post-meta a:hover{color:#001;}108ul.nice-list{border-top:1px solid #F0F0F0;margin-left:0;margin-right:0;}109ul.nice-list li{border-bottom:1px solid #F0F0F0;list-style:none;padding:6px 5px;}110ul.nice-list li a{text-decoration:none;}111ul.nice-list li a:hover{text-decoration:underline;}112ul.nice-list span{color:#666;}113#sidebar ul.nice-list li,#sidebar ul.nice-list{border-color:#E0E0E0;}114.archive-pagination{margin-bottom:1.6em;}115.archive-pagination a{text-decoration:none;}116.archive-pagination a:hover{text-decoration:underline;}117.archive-post{margin-bottom:14px;}118.archive-post-date{background:#F5F5F5;border-bottom:1px solid #C5C5C5;border-right:1px solid #CFCFCF;float:left;margin-right:12px;padding:2px 0 5px;text-align:center;width:46px;}119.archive-post .post-date{border:none;padding:0;}120.archive-post-day{font:normal 1.6em Georgia,serif;}121.archive-post .post-date,.archive-post-title{padding-top:3px;}122.thumbnails{margin:0 0 1em -8px;}123.thumbnails a.thumb{background:#DAD6D0;display:block;float:left;margin:0 0 8px 8px;padding:1px;}124.thumbnails a.thumb:hover{background:#AAA;}125.thumbnails .thumb img{display:block;}126.box{background:url('/img/box.gif') no-repeat left top;border-bottom:1px solid #DFDFDA;border-top:1px solid #FFF;padding:16px 20px 0;}127.box a{color:#951;}128.box a:hover{color:#310;}129.box-title{color:#665;font:normal 1.6em sans-serif;}130.box-content{padding:8px 0;}131div.comment-list{border-top:1px solid #EEE;margin:1em 0 2em;}132.comment{border-bottom:1px solid #EEE;padding:10px 8px 0;}133.comment-date{font-size:0.9em;}134.comment-date a{color:#567;text-decoration:none;}135.comment-date a:hover{color:#001;text-decoration:underline;}136.comment-body{padding-top:4px;}137.comment-gravatar{width:48px;}138.comment-gravatar img{background:#FFF;border:1px solid #DDD;padding:2px;}139.center-wrapper{width:960px;margin:0 auto;}140#header-wrapper{background:#2F2F2F url('/img/header.gif') repeat-x left top;}141#header-wrapper-2{background:url('/img/header-wrapper-2.gif') repeat-y center top;}142#header{background:#333 url('/img/header.gif') repeat-x left top;padding:32px 32px 0 46px;}143#help-wrapper{background:url('/img/help.gif') no-repeat left top;height:39px;margin:-8px 0 0 auto;width:290px;}144#help{color:#666;font-size:1.2em;padding:10px 28px 0 32px;}145#help a{color:#999;text-decoration:none;}146#help a:hover{color:#DDD;}147#help span.text-separator{color:#444;padding:0 7px;}148#logo{color:#FFF;}149#site-title a{text-decoration:none;}150#site-title, #site-title a{color:#FFF;}151#site-title span, #site-title a span{color:#DDD;}152#site-slogan{color:#B58361;font-size:1.3em;}153ul.tabbed{display:inline;margin:0;padding:0;}154ul.tabbed li{float:left;list-style:none;}155ul.tabbed a{text-decoration:none;}156#navigation-wrapper{background:url('/img/navigation.gif') repeat-x left top;}157#navigation-wrapper-2{background:url('/img/navigation-wrapper-2.gif') no-repeat center top;}158#navigation{background:url('/img/navigation.gif') repeat-x left top;min-height:46px;padding:0 8px;}159#navigation a{color:#EAE6DD;display:block;font-weight:bold;font-size:1.3em;padding:12px 12px 11px;}160#navigation a:hover{color:#FFF;}161#navigation li.current_page_item a, #navigation li.current_page_parent a{color:#FFE;}162#navigation li.current_page_item a{background:url('/img/navigation-arrow-2.gif') no-repeat center bottom;}163#navigation li.current_page_parent a{background:url('/img/navigation-arrow.gif') no-repeat center bottom;}164#subnav-wrapper{background:#E9E9E9 url('/img/subnav-wrapper.gif') repeat-x left bottom;}165#subnav-wrapper-2{background:url('/img/subnav-wrapper-2.gif') no-repeat center bottom;}166#subnav{padding:0 8px;}167#subnav a{color:#666;display:block;font:bold 1.1em sans-serif;padding:12px 12px;}168#subnav a:hover{color:#111;}169#subnav li.current_page_item a{color:#333;}170.content{font-size:1.1em;}171#content-wrapper{background:#F6F6F6 url('/img/content-wrapper.gif') repeat-y center top;}172.content#content-two-columns{background:url('/img/content-two-columns.gif') repeat-y left top;}173#main-wrapper{float:right;width:698px;}174#main{padding:24px;}175#main .text-separator, #featured .text-separator{color:#AAA;padding:0 5px;}176#sidebar-wrapper{float:left;width:260px;}177#footer-wrapper{background:url('/img/footer-wrapper.gif') no-repeat center bottom;border-top:1px solid #999;padding-bottom:20px;}178#footer{background:#808080;font-size:1.1em;padding:12px 16px;}179#footer a{color:#DDD;text-decoration:none;}180#footer a:hover{color:#FFF;}181#footer span.text-separator{color:#999;padding:0 3px;}182#bottom{color:#666;padding:0 6px 12px;margin-top:-6px;}183#bottom a{color:#555;text-decoration:none;}184#bottom a:hover, #bottom .right a:hover{color:#002;}185#bottom span.text-separator{color:#888;padding:0 3px;}186#bottom .right, #bottom .right a{color:#777;}187#featured-wrapper{background:url('/img/gradient-light.gif') repeat-x left bottom;border-bottom:1px solid #E0E0E0;padding-bottom:22px;}188#featured{padding:42px 124px 12px 48px;}189#featured h2{font:normal 3em sans-serif;margin:0;}190#featured h2 span{color:#3399FF;}191.noborder{border:0;}192.notborder{border-top:0;}193.norborder{border-right:0;}194.nobborder{border-bottom:0;}195.nolborder{border-left:0;}196.nomargin{margin:0;}197.notmargin{margin-top:0;}198.normargin{margin-right:0;}199.nobmargin{margin-bottom:0;}200.nolmargin{margin-left:0;}201.nopadding{padding:0;}202.notpadding{padding-top:0;}203.norpadding{padding-right:0;}204.nobpadding{padding-bottom:0;}205.nolpadding{padding-left:0;}206* html .separator-vertical, * html .content{height:0.01%;min-height:0.01%;}207.imgleft{float:left;margin-right:10px;margin-bottom:2px;}208.imgright{float:right;margin-left:10px;margin-bottom:2px;}209*{padding:0;margin:0;}210#TB_window{font:12px Arial, Helvetica, sans-serif;color:#333333;}211#TB_secondLine{font:10px Arial, Helvetica, sans-serif;color:#666666;}212#TB_window a:link{color:#666666;}213#TB_window a:visited{color:#666666;}214#TB_window a:hover{color:#000;}215#TB_window a:active{color:#666666;}216#TB_window a:focus{color:#666666;}217#TB_overlay{position:fixed;z-index:100;top:0px;left:0px;height:100%;width:100%;}218.TB_overlayMacFFBGHack{background:url(macFFBgHack.png) repeat;}219.TB_overlayBG{background-color:#000;filter:alpha(opacity=75);-moz-opacity:0.75;opacity:0.75;}220* html #TB_overlay{position:absolute;height:expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight:document.body.offsetHeight +'px');}221#TB_window{position:fixed;background:#ffffff;z-index:102;color:#000000;display:none;border:4px solid #525252;text-align:left;top:50%;left:50%;}222* html #TB_window{position:absolute;margin-top:expression(0 - parseInt(this.offsetHeight/2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) +'px');}223#TB_window img#TB_Image{display:block;margin:15px 0 0 15px;border-right:1px solid #ccc;border-bottom:1px solid #ccc;border-top:1px solid #666;border-left:1px solid #666;}224#TB_caption{height:25px;padding:7px 30px 10px 25px;float:left;}225#TB_closeWindow{height:25px;padding:11px 25px 10px 0;float:right;}226#TB_closeAjaxWindow{padding:7px 10px 5px 0;margin-bottom:1px;text-align:right;float:right;}227#TB_ajaxWindowTitle{float:left;padding:7px 0 5px 10px;margin-bottom:1px;}228#TB_title{background-color:#e8e8e8;height:27px;}229#TB_ajaxContent{clear:both;padding:2px 15px 15px 15px;overflow:auto;text-align:left;line-height:1.4em;}230#TB_ajaxContent.TB_modal{padding:15px;}231#TB_ajaxContent p{padding:5px 0px 5px 0px;}232#TB_load{position:fixed;display:none;height:13px;width:208px;z-index:103;top:50%;left:50%;margin:-6px 0 0 -104px;}233* html #TB_load{position:absolute;margin-top:expression(0 - parseInt(this.offsetHeight/2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) +'px');}234#TB_HideSelect{z-index:99;position:fixed;top:0;left:0;background-color:#fff;border:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;height:100%;width:100%;}235* html #TB_HideSelect{position:absolute;height:expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight:document.body.offsetHeight +'px');}236#TB_iframeContent{clear:both;border:none;margin-bottom:-1px;margin-top:1px;_margin-bottom:1px;}237 </style>238 <meta content="text/html; charset=utf-8" http-equiv="content-type">239 <meta content="en" http-equiv="content-language">240 <meta content="Recover Passwords to Firefox, Chrome, Microsoft Outlook, MSN and many more" name="description">241 <meta content="recover passwords, recover password, password recovery, lost password, emergency password recovery, laptop password recovery, instant password recovery, software password recovery" name="keywords">242 <meta content="Recover Passwords" name="author">243 <meta content="All,index,follow" name="robots">244 <meta content="7 days" name="revisit-after">245 <meta content="lcN8JYT49U946ecOLPpwMqOb5g2YshzAfU5ctJSgX5E" name="google-site-verification">246 <title>247 Recover Passwords. Recover your lost passwords248 </title>249 </head>250 <body id="top">251 <div id="header-wrapper">252 <div id="header-wrapper-2">253 <div class="center-wrapper">254 <div id="header">255 <div id="logo">256 <h1 id="site-title">257 <a>258 Recover Passwords259 </a>260 </h1>261 <h2 id="site-slogan">262 Recover your lost passwords263 </h2>264 </div>265 <div id="help-wrapper">266 <div id="help">267 <center>268 <a>269 <b>270 Download271 </b>272 </a>273 <span class="text-separator">274 |275 </span>276 <a>277 <b>278 Order now279 </b>280 </a>281 </center>282 </div>283 </div>284 </div>285 </div>286 </div>287 </div>288 <div id="navigation-wrapper">289 <div id="navigation-wrapper-2">290 <div class="center-wrapper">291 <div id="navigation">292 <ul class="tabbed">293 <li class="current_page_item">294 <a>295 Home296 </a>297 </li>298 <li>299 <a>300 Features301 </a>302 </li>303 <li>304 <a>305 Supported software306 </a>307 </li>308 <li>309 <a>310 Screenshots311 </a>312 </li>313 </ul>314 <div class="clearer">315 316 </div>317 </div>318 </div>319 </div>320 </div>321 <div id="content-wrapper">322 <div class="center-wrapper">323 <div class="content">324 <div class="content">325 <div id="featured-wrapper">326 <div id="featured">327 <div class="left" style="width: 330px">328 <h2>329 Recover330 <span>331 Passwords332 </span>333 </h2>334 <p class="large">335 Recover all your passwords from more than 100+ programs.336 </p>337 <p>338 <img alt src="rick.jpg" width="321">339 </p>340 <p class="large text-center">341 <a>342 Try it out343 </a>344 <span class="text-separator">345 |346 </span>347 <a>348 Buy now349 </a>350 <span class="text-separator">351 |352 </span>353 <a>354 Information355 </a>356 </p>357 </div>358 <div class="right">359 <img alt height="332" src="rick.jpg" width="252">360 </div>361 <div class="clearer">362 363 </div>364 </div>365 </div>366 <div id="main">367 <div class="separator-vertical">368 <div class="col2 left">369 <h2 class="left">370 Features371 </h2>372 <div class="right more large">373 <a>374 All features »375 </a>376 </div>377 <div class="clearer">378 379 </div>380 <div class="content-separator">381 </div>382 <ul>383 <li>384 Recover passwords from385 <b>386 108387 </b>388 installed software programs, including such popular programs as Mozilla Firefox, MSN Messenger, 389 Microsoft Outlook, etc.390 <a>391 Here is the full list of supported programs392 </a>393 .394 </li>395 <li>396 Export recovered data to Text file, HTML, Word, Excel, PDF, CSV, XML or tab separated files397 </li>398 <li>399 Scan remote network computer without installing anything on remote PC400 </li>401 <li>402 Nice looking intuitive user interface, but with solid amount of options403 </li>404 </ul>405 <div class="clearer">406 407 </div>408 </div>409 <div class="col2 right">410 <h2 class="left">411 Supported programs412 </h2>413 <div class="right more large">414 <a>415 View all »416 </a>417 </div>418 <div class="clearer">419 420 </div>421 <div class="content-separator">422 </div>423 <ul>424 <li>425 Mozilla Firefox (mostly all versions)426 </li>427 <li>428 Google Chrome 1.0-6.x429 </li>430 <li>431 MSN Messenger 1.x-7.x432 </li>433 <li>434 Windows Live Messenger435 </li>436 </ul>437 </div>438 <div class="clearer">439 440 </div>441 </div>442 </div>443 </div>444 </div>445 </div>446 </div>447 <div id="footer-wrapper">448 <div class="center-wrapper">449 <div id="footer">450 <div class="left">451 <a>452 Refund policy453 </a>454 <span class="text-separator">455 |456 </span>457 <a>458 Technical support459 </a>460 <span class="text-separator">461 |462 </span>463 <a>464 Contact us465 </a>466 </div>467 <div class="right">468 <a>469 Top ^470 </a>471 </div>472 <div class="clearer">473 474 </div>475 </div>476 </div>477 </div>478 <div id="bottom">479 <div class="center-wrapper">480 <div class="left">481 © 2023 Recover-Passwords.com - Recover your lost passwords482 <span class="text-separator">483 |484 </span>485 <a>486 Privacy Policy487 </a>488 <span class="text-separator">489 |490 </span>491 <a>492 EULA493 </a>494 </div>495 <div class="right">496 <a rel="nofollow">497 Website template498 </a>499 by500 <a rel="nofollow">501 Arcsin502 </a>503 </div>504 <div class="clearer">505 506 </div>507 </div>508 </div>509 </body>510</html>511 