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.7k
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">2<html xmlns="">3 <head>4 <style>5 @font-face {6 font-family: 'Open Sans';7 font-style: normal;8 font-weight: 300;9 font-stretch: normal;10 src: url(https://fonts.gstatic.com/s/opensans/v36/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsiH0B4gaVc.ttf) format('truetype');11}12@font-face {13 font-family: 'Open Sans';14 font-style: normal;15 font-weight: 400;16 font-stretch: normal;17 src: url(https://fonts.gstatic.com/s/opensans/v36/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVc.ttf) format('truetype');18}19@font-face {20 font-family: 'Open Sans';21 font-style: normal;22 font-weight: 600;23 font-stretch: normal;24 src: url(https://fonts.gstatic.com/s/opensans/v36/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsgH1x4gaVc.ttf) format('truetype');25}26@font-face {27 font-family: 'Open Sans';28 font-style: normal;29 font-weight: 700;30 font-stretch: normal;31 src: url(https://fonts.gstatic.com/s/opensans/v36/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4gaVc.ttf) format('truetype');32}33@font-face {34 font-family: 'Raleway';35 font-style: normal;36 font-weight: 200;37 src: url(https://fonts.gstatic.com/s/raleway/v29/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVtaorCIPrQ.ttf) format('truetype');38}39@font-face {40 font-family: 'Raleway';41 font-style: normal;42 font-weight: 300;43 src: url(https://fonts.gstatic.com/s/raleway/v29/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVuEorCIPrQ.ttf) format('truetype');44}45@font-face {46 font-family: 'Raleway';47 font-style: normal;48 font-weight: 400;49 src: url(https://fonts.gstatic.com/s/raleway/v29/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrQ.ttf) format('truetype');50}51@font-face {52 font-family: 'Raleway';53 font-style: normal;54 font-weight: 700;55 src: url(https://fonts.gstatic.com/s/raleway/v29/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVs9pbCIPrQ.ttf) format('truetype');56}57@font-face {58 font-family: 'Raleway';59 font-style: normal;60 font-weight: 800;61 src: url(https://fonts.gstatic.com/s/raleway/v29/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVtapbCIPrQ.ttf) format('truetype');62}63@font-face {64 font-family: 'Raleway';65 font-style: normal;66 font-weight: 900;67 src: url(https://fonts.gstatic.com/s/raleway/v29/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVtzpbCIPrQ.ttf) format('truetype');68}69 70 71 72html, body {73 height: 100%;74}75 76body {77 margin: 0px;78 padding: 0px;79 background: #252525 url(images/lightpaperfibers.png) repeat;80 font-family: 'Open Sans', sans-serif;81 font-size: 10pt;82 color: #000000;83}84 85 86h1, h2, h3 {87 margin: 0;88 padding: 0;89 font-family: 'Raleway', sans-serif;90}91 92p, ol, ul {93 margin-top: 0px;94}95 96p {97 line-height: 180%;98}99 100strong {101}102 103a {104 color: #0000FF;105}106 107a:hover {108 text-decoration: none;109}110 111a img {112 border: none;113}114 115.image116{117 display: inline-block;118}119 120.image img121{122 display: block;123 width: 100%;124 border-radius: 5px;125}126 127.image-full128{129 display: block;130 width: 100%;131 margin: 0 0 2em 0;132}133 134.image-left135{136 float: left;137 margin: 0 2em 2em 0;138}139 140.image-centered141{142 display: block;143 margin: 0 0 2em 0;144}145 146.image-centered img147{148 margin: 0 auto;149 width: auto;150}151 152hr {153 display: none;154}155 156ul.style1157{158 margin: 0px;159 padding: 0px;160 list-style: none;161}162 163ul.style1 li164{165 padding: 10px 0px 20px 0px;166 border-top: 1px solid #242424;167}168 169ul.style1 a170{171 color: #4E4E4E;172}173 174ul.style1 .first175{176 padding-top: 0px;177 border-top: none;178}179 180ul.style2181{182 margin: 30px 0px 0px 0px;183 padding: 0px;184 list-style: none;185}186 187ul.style2 li188{189 float: left;190 margin-right: 10px;191}192 193ul.style2 img194{195 display: block;196 border-radius: 4px;197}198 199 200ul.style3201{202 margin: 0;203 padding: 0;204 overflow: hidden;205 list-style: none;206 color: #6c6c6c207}208 209ul.style3 li210{211 padding: 1.6em 0em 0em 0em;212 margin: 0 0 1em 0;213}214 215ul.style3 p216{217 margin: 0;218}219 220ul.style3 a221{222 display: block;223 text-decoration: none;224 color: #2D2D2D;225}226 227ul.style3 a:hover228{229 text-decoration: underline;230}231 232ul.style3 h3233{234 padding: 1em 0em 5px 0em;235 text-transform: uppercase;236 font-size: 1.1em;237 font-weight: 300;238 color: #675a57;239}240 241ul.style3 .first242{243 padding-top: 0;244 background: none;245}246 247ul.style3 .date248{249 float: left;250 position: relative;251 width: 60px;252 height: 54px;253 margin: 0.5em 1.5em 0em 0.5em;254 padding: 8px 0em 0em 0em;255 background: #675a57;256 border-radius: 5px;257 box-shadow: 0px 0px 0px 5px rgba(255,255,255,0.1);258 line-height: normal;259 text-align: center;260 text-transform: uppercase;261 text-shadow: 0px 1px 0px rgba(0,0,0,.2);262 font-size: 1em;263 font-weight: 400;264 color: #FFF;265}266 267ul.style3 .date:after268{269 content: '';270 display: block;271 position: absolute;272 left: 0;273 top: 0;274 width: 100%;275 height: 100%;276 border-radius: 6px;277}278 279ul.style3 .date b280{281 margin: 0;282 padding: 0;283 display: block;284 margin-top: -5px;285 font-size: 1.8em;286 font-weight: 700;287 color: #FFFFFF;288}289 290ul.style3 .date a291{292 color: #FFFFFF !important;293}294 295ul.style3 .date a:hover296{297 text-decoration: none;298}299 300ul.style4301{302 margin: 0px;303 padding: 0px;304 list-style: none;305}306 307ul.style4 li308{309 padding: 10px 0px 20px 0px;310 border-top: 1px solid rgba(255,255,255,0.3);311}312 313ul.style4 a314{315 color: #2D2D2D;316}317 318ul.style4 .first319{320 padding-top: 0px;321 border-top: none;322}323 324/** WRAPPER */325 326#wrap {327 overflow: hidden;328 margin: 4em auto;329 background: #675a57;330 box-shadow: 0px 0px 10px 10px rgba(0,0,0,0.3);331}332 333#ftrd-wrap {334 overflow: hidden;335 padding: 6em 50px;336 background: #fdfbfb;337 color: #2D2D2D;338}339 340#ftrd-wrap h2341{342 margin-bottom: 30px;343 text-transform: uppercase;344 font-weight: 300;345 font-size: 1.8em;346 color: #675a57;347}348 349#ftrd-wrap span350{351 font-size: 0.80em !important;352 color: #7fc4a7;353}354 355#foot-wrap {356 overflow: hidden;357 padding: 10em 0em;358}359 360.cont {361 width: 1200px;362 margin: 0px auto;363}364 365.clearfix {366 clear: both;367}368 369/** HEADER */370 371#head {372 overflow: hidden;373 padding-top: 8em;374}375 376/* Logo */377 378#lg {379 height: 150px;380 margin: 0px auto 30px auto;381}382 383#lg h1, #lg p {384 margin: 0;385 padding: 0;386}387 388#lg h1 {389 text-align: center;390 text-transform: uppercase;391}392 393#lg h1 a {394 font-size: 2em;395 color: #FFF;396}397 398#lg h1 span {399 color: #E94730;400}401 402#lg p {403 text-align: center;404 text-transform: uppercase;405 font-size: 1.3em;406 font-family: 'Raleway', sans-serif;407 color: #81c6aa;408}409 410#lg p a {411 color: #595959;412}413 414#lg a {415 border: none;416 background: none;417 text-decoration: none;418 color: #1F1F1F;419}420 421/** MENU */422 423#mn {424 overflow: hidden;425 width: 1100px;426 margin: 0px 50px;427 height: 80px;428 color: #fff;429 border-bottom: 1px solid #272727;430}431 432#mn ul {433 margin: 0px 0px 0px 0px;434 padding: 0px 0px;435 list-style: none;436 line-height: normal;437 text-align: center;438}439 440#mn li {441 display: inline-block;442 border-left: 1px dotted #fff;443}444 445#mn a {446 display: block;447 margin: 0em 3em;448 padding: 1em 0em;449 text-decoration: none;450 text-transform: uppercase;451 text-align: center;452 font-size: 1.2;453 font-weight: 200;454 font-family: 'Raleway', sans-serif;455 color: #fff;456 border: none;457}458 459#mn a:hover, #mn .current_page_item a {460 text-decoration: none;461 color: #fa6064;462}463 464#mn .current_page_item a {465 color: #fa6064;466}467 468#mn .first {469 border-left: none;470}471 472/** PAGE */473 474#pg {475 overflow: hidden;476 height: 26em;477 padding-top: 4em;478 padding-left: 50px;479 background: url(images/banner.png) no-repeat right bottom;480 color: #6A6A6A;481}482 483#pg .cnt484{485 width: 400px;486}487 488#pg .cnt p489{490 font-size: 1.1em;491}492 493#pg h2494{495 display: block;496 padding-bottom: 0.20em;497 letter-spacing: -1px;498 text-transform: uppercase;499 font-size: 3em;500 font-weight: 600;501 color: #FFF;502}503 504#pg span505{506 display: block;507 padding-bottom: 0.50em;508 letter-spacing: -1px;509 text-transform: uppercase;510 font-size: 1.8em;511 font-weight: 200;512 color: #fa6064;513}514 515/** CONTENT */516 517#cnt {518}519 520/** SIDEBAR */521 522#side {523}524 525/* Footer */526 527#foot-cnt528{529 overflow: hidden;530 padding: 5em 0em;531 color: #000;532}533 534#foot-cnt a535{536 color: #b1aaa3;537}538 539#foot-cnt h2540{541 margin-bottom: 30px;542 text-transform: uppercase;543 font-weight: 300;544 color: #FFF;545}546 547#foot-cnt strong548{549 color: #b1aaa3;550}551 552#foot-cnt .button-style553{554 color: #FFFFFF !important;555}556 557#foot-cnt #fbx1558{559 float: left;560 width: 314px;561 margin-right: 24px;562 padding-left: 50px;563}564 565#foot-cnt #fbx2566{567 float: left;568 width: 446px;569 padding: 0px 20px;570}571 572#foot-cnt #fbx3573{574 float: right;575 width: 252px;576 padding-right: 50px;577}578 579 580#bx1581{582 float: left;583 width: 324px;584 margin-right: 24px;585}586 587#bx4588{589 float: left;590 width: 760px;591 margin-right: 24px;592}593 594#bx1 .style4595{596 padding-top: 1em;597}598 599#bx2600{601 float: left;602 width: 436px;603 padding: 0px 20px;604}605 606#bx3607{608 float: right;609 width: 252px;610}611 612/* Footer */613 614#foot {615 overflow: hidden;616 padding-bottom: 3em;617}618 619#foot p {620 text-align: center;621 text-transform: uppercase;622 text-shadow: 0px 1px 0px rgba(0,0,0,0.2);623 font-size: 0.80em;624 color: #525252;625}626 627#foot a {628 color: #666666;629}630 631/* Button Style 1 */632 633.button-style {634 display: inline-block;635 margin-top: 20px;636 padding: 7px 20px;637 background: #81c6aa;638 border-radius: 5px;639 text-decoration: none;640 text-transform: uppercase;641 color: #FFFFFF;642}643 644.button-style-alt645{646 background: #fa6064;647 padding: 15px 20px;648 font-size: 1.3em;649 font-weight: 600;650}651 652.popup { width:320px; display:none; position:absolute; margin:0px 0px 0px -86px; padding-top: 36px;}653.popup ul { margin:0!important; padding: 10px!important; float: none!important; background: rgba(61,52,50,0.9);}654.popup ul li { margin:0!important; padding: 0px!important; float: none!important; border-left: none!important;}655.popup ul li a {656 margin: 5px 0px!important;657 padding: 0em!important;658 font-size: 1.0em!important;659}660 661 662.popup2 { width:320px; display:none; position:absolute; margin:0px 0px 0px -95px; padding-top: 36px;}663.popup2 ul { margin:0!important; padding: 10px!important; float: none!important; background: rgba(61,52,50,0.9);}664.popup2 ul li { margin:0!important; padding: 0px!important; float: none!important; border-left: none!important;}665.popup2 ul li a {666 margin: 5px 0px!important;667 padding: 0em!important;668 font-size: 1.0em!important;669}670 </style>671 <meta content="text/html; charset=utf-8" http-equiv="Content-Type">672 <title>673 Pay Someone To Do My Homework: 4 Precautions To Take674 </title>675 <meta content="If you're going to pay for academic writing assistance, there are a few things you should do in order to avoid getting scammed. Read to learn more." name="description">676 <meta content="pay someone to do my homework" name="keywords">677 </head>678 <body style>679 <!-- Header -->680 <div class="cont" id="wrap">681 <div id="head">682 <div id="lg">683 <h1>684 <a>685 csn biology club686 </a>687 </h1>688 <p>689 Homework Writing Advice For College Students690 </p>691 </div>692 <div id="mn">693 <ul>694 <li class="first current_page_item">695 <a accesskey="1" title>696 Homepage697 </a>698 </li>699 <li>700 <a accesskey="2" title>701 Psychology tips702 </a>703 </li>704 <li>705 <a accesskey="3" class="menulink" title>706 Free help707 </a>708 <div class="popup">709 <ul>710 <li>711 <a>712 Assistance in algebra713 </a>714 </li>715 <li>716 <a>717 Accounting paper tutor718 </a>719 </li>720 <li>721 <a>722 Advice for medical students723 </a>724 </li>725 <li>726 <a>727 How to handle Chemistry homework728 </a>729 </li>730 </ul>731 </div>732 </li>733 <li>734 <a accesskey="4" class="menulink2" title>735 Useful hints736 </a>737 <div class="popup2">738 <ul>739 <li>740 <a>741 Finding a 5th grade math help for free742 </a>743 </li>744 <li>745 <a>746 Using weekly assignment sheets747 </a>748 </li>749 <li>750 <a>751 Help your kids with homework752 </a>753 </li>754 <li>755 <a>756 Overcoming common Math struggles757 </a>758 </li>759 </ul>760 </div>761 </li>762 </ul>763 </div>764 </div>765 <!-- end of header -->766 <!-- Inner -->767 <div id="pg">768 <div class="cnt">769 <span>770 become a perfect student with771 </span>772 <h2>773 Homework Tips774 </h2>775 <p>776 you need to know that if you are going to get the best score possible and the best degree and qualification possible, being successful at homework goes a long way to making it happen. However, we've got some tips that can make this process a bit easier.777 </p>778 </div>779 </div>780 <div id="ftrd-wrap">781 <div id="bx4">782 <h2>783 </h2>784 <h1>785 How To Stay Safe If I Want To Pay Someone To Do My Homework?786 </h1>787 <p>788 Well, homework is not one of the favorite parts of the studies for many students. The students feel789 <b>790 homework791 </b>792 as an extra burden for them.793 </p>794 <h3>795 Plagiarism Free Stuff796 </h3>797 <p>798 Well, if you are paying someone for the writing you must make sure that you are getting 100% original stuff. You can check the plagiarism by using up to date plagiarism checking software available online.799 </p>800 <h3>801 Well Reputable Writing Company802 </h3>803 <p>804 As homework is an important part of your academics you must search online for a well reputable writing company. You can search for different famous writing companies and then you can read the reviews of previous customers of the company.805 </p>806 <h3>807 Giving proper Instructions808 </h3>809 <p>810 You must give proper instructions to the writer you have selected for your work. You should give him or her some samples of your writing so that he or she could follow the way and style you follow for writing.811 </p>812 <h3>813 Recheck Properly814 </h3>815 <p>816 Even after your work has been done, you should not send the file directly to your instructor. You need to make sure that the work is perfect, so properly recheck the work and if you find anything that is not according to your instructions, do contact the professional you hired and ask him or her to change it the way you want it.817 </p>818 <p style="border:1px dashed #ccc; padding:5px;">819 Professional820 <a target="_blank">821 homework writing service822 </a>823 - get your assignments written by expert essay writer.824 </p>825 </div>826 <div id="bx3">827 <h2>828 Homework Guides829 </h2>830 <ul>831 <li class="living-in-a-household-with-two-languages-an-essay-sample">832 <a title="Living In A Household With Two Languages: An Essay Sample">833 Bilingual households: an essay sample834 </a>835 </li>836 <li class="struggling-to-do-chemistry-homework-problem-solved">837 <a title="Struggling To Do Chemistry Homework: Problem Solved">838 Chemistry homework answers at low cost839 </a>840 </li>841 <li class="homework-help-how-to-study-efficiently-after-school">842 <a title="Homework Help: How To Study Efficiently After School">843 Studying after classes844 </a>845 </li>846 <li class="where-do-i-find-free-help-with-my-college-homework">847 <a title="Where Do I Find Free Help With My College Homework">848 Finding online homework help849 </a>850 </li>851 </ul>852 <p>853 Need help with homework? Visit and hire a professional assignment helper.854 </p>855 </div>856 </div>857 <div class="cont" id="foot-cnt">858 <div id="fbx1">859 <h2>860 Online Resources861 </h2>862 <ul class="style1">863 <li>864 <a target="_blank">865 PaperWritten.com866 </a>867 - paper writing service868 </li>869 </ul>870 </div>871 <div id="fbx2">872 <h2>873 Science Homework Tips874 </h2>875 <ul class="style1">876 <li class="first">877 <a>878 Buying physics homework assignments879 </a>880 </li>881 <li>882 <a>883 Selecting anatomy essay topics884 </a>885 </li>886 </ul>887 </div>888 <div id="fbx3">889 <h2>890 Contact Us891 </h2>892 <p>893 We're waiting forward for your feedback. If you want to make a suggestion, be sure to leave a message on [EMAIL REDACTED]894 </p>895 <ul class="style2">896 <li>897 <a>898 <img alt="biology homework" height="32" src="rick.jpg" width="32">899 </a>900 </li>901 <li>902 <a>903 <img alt="geometry homework help" height="32" src="rick.jpg" width="32">904 </a>905 </li>906 <li>907 <a>908 <img alt="maths homework tips" height="32" src="rick.jpg" width="32">909 </a>910 </li>911 <li>912 <a>913 <img alt="science homework guides" height="32" src="rick.jpg" width="32">914 </a>915 </li>916 </ul>917 </div>918 </div>919 </div>920 <!-- end of inner -->921 <!-- Footer -->922 <div id="foot">923 <p>924 © CSNBiologyClub.com. All rights reserved.925 </p>926 </div>927 </body>928</html>929 