CoolFace
Datasetpublic

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.

sourceHugging Faceodc-byupdated 3y agoView on Hugging Face
22likes1.8kdownloads
16201.html565 linesDownload Raw Back to root
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">2<html lang="en-US">3 <!--// This file starts each and every page in the website  -->4 <head>5  <style>6   #brochure,#purchaseinfo{position:absolute;top:60px;right:40px}#navbar li a,.tab-links a,.tab-links a:hover,a.sideBar:active,a.sideBar:link,a.sideBar:visited,a.sideBarHilite{text-decoration:none}#body,#navbar,li,p,td,th{font-family:Verdana,Arial,Helvetica,sans-serif}#navbar,#treeNavigation,.tab-links li,h1,h2,td,th{text-align:left}td,td.col3,th{vertical-align:top}.tab-links li,h3{text-indent:10px}#body{font-size:10pt;background:#fff;margin:0;text-align:center}#header{width:960px;height:110px;margin:0 auto;background:url(/graphics/page_bgnd_sprite.png) no-repeat;position:relative;z-index:100}#mobileRedirectBtn{position:absolute;left:200px;top:14px;width:100px;height:70px;display:none;background:url(/graphics/page_bgnd_sprite.png) -2880px 0 no-repeat}#searchBtn{position:relative;top:3px;left:2px;width:30px;height:20px;background:url(/graphics/page_bgnd_sprite.png) -2880px -70px no-repeat}#plus1Box{position:absolute;top:18px;right:380px;margin:2px}#translateBox{position:absolute;top:15px;right:250px;margin:6px}#searchBox{position:absolute;top:15px;right:22px;margin:2px}span.logoset{border:0;background:url(/graphics/logo_sprite.png) left top no-repeat}#topLogo{position:absolute;left:32px;top:14px;width:155px;height:76px;background-position:0 0}#botLogo{margin:10px;float:left;width:38px;height:50px;background-position:-155px 0}#navbar{position:absolute;right:22px;top:70px;font-size:12pt;font-weight:700;margin:0;padding:0;height:1em}#navbar li{list-style:none;float:left}#navbar a.activeMenu,#navbar a:hover{color:#000}#navbar li a{display:block;padding:5px 8px;margin-right:0;color:#698E80}#navbar li ul{display:none;width:15em;background-color:#F4F4F4}#navbar li.hover ul,#navbar li:hover ul{display:block;position:absolute;margin:0;padding:0;color:#000}#navbar li.hover li,#navbar li:hover li{float:none;color:#000}#navbar li.hover li a,#navbar li:hover li a{background-color:#F4F4F4;border:1px solid #698E80;color:#698E80}#navbar li li a:hover{background-color:#F4F4F4;color:#000}span.orderLink{float:right;color:#344740}ul.sideBar{list-style-type:none;margin-left:0;padding-left:10px}li.sideBar{font-size:8pt;font-weight:700;margin-bottom:2px}a.sideBar{color:#698E80}a.sideBarHilite{color:#000}a.sideBar:hover{color:#000}#mainBody{width:960px;margin:0 auto;background:url(/graphics/page_bgnd_sprite.png) -960px 0 repeat-y;position:relative;border-bottom:1px solid;min-height:400px}#pageNavigation{height:60px}td.contentMargin{width:30px}#treeNavigation{position:absolute;top:10px;left:10px}#toc{position:absolute;top:10px;right:10px;text-align:right}h1{font-size:18pt;font-weight:700;color:#698E80}#purchaseinfo,h2{font-size:14pt;font-weight:700}h2{margin-top:10px;margin-bottom:40px}div.titlebar{background-color:#C2E0D6;font-weight:700;width:auto;padding:5px}.selTab,.tab-links,.tabs{width:100%}fieldset{margin:0;padding:0;border:0}#purchaseinfo{background-color:#F4F4F4;border:1px solid #C2E0D6;padding:5px}a.purchaseinfo:active,a.purchaseinfo:link,a.purchaseinfo:visited{text-decoration:none;color:#306060}li,p{font-size:10pt}.tabs{display:inline-block}.tab-links{padding:0;height:25px;margin:0;background:#F4F4F4;border-bottom:1px solid #698E80;display:none}.tab-links a:hover,li.active a,li.active a:hover{border-bottom:3px solid #698E80}.tab-links:after{padding:0;display:block;clear:both;content:''}.tab-links li{margin:0;float:left;list-style:none;font-size:14pt;font-weight:700;color:#698E80}.tab-links a{display:inline-block;color:#698E80;transition:all linear .15s}#popupimgdiv,.js .hideIfJS{display:none}.stdPict,img{border:0}td,th{font-size:10pt;padding:0}td.sidePict{width:25%;text-align:center}td.col3{width:33%;text-align:center}table.standardTable{border:0;background:#fff}table.standardTable th{padding:5px;background:#C2E0D6}table.standardTable th.blank{padding:5px;background:#fff}table.standardTable ul{padding-left:15px}.partNumber{font-family:courier,courier new,monospace}table.standardTable td{padding:5px;background:#F4F4F4}.alignL{text-align:left}.alignC{text-align:center}.alignR{text-align:right}h3,h4{background:#F4F4F4;text-align:left;margin-bottom:20px;text-decoration:none;font-weight:700}.alignM{vertical-align:middle}.alignB{vertical-align:bottom}h3{height:25px;margin-top:0;border-bottom:1px solid #698E80;font-size:14pt;color:#698E80}h4{margin-top:40px}a.headerlink:active,a.headerlink:link,a.headerlink:visited{text-decoration:none;color:#306060}.stdPict{background-color:#F0F8F8}div.pictureBlock{text-align:center;color:#306060;margin-bottom:20px;position:relative}img.enlargeIcon{width:24px;height:24px;position:absolute;top:2px;right:2px}img.people{border:1px solid #000;float:left;margin:15px;width:200px;height:200px;box-shadow:5px 5px 3px #888}#popupimgdiv{position:absolute;z-index:100;background-color:#fff;padding:5px;border:1px solid gray;text-align:center;text-decoration:none;color:#00008B;margin:0 auto 0 -342px;width:675px;height:470px;left:50%}.tourtable td,.tourtablehead td,.tourtablehead th{padding-left:30px;vertical-align:middle}table.newsBox{position:relative;top:0;width:250px;height:400px;background:url(/graphics/news_bgnd.png) #fff}#maintext{font-size:larger;text-align:center}p.TandCtitle,span.TandCbody{font-family:Verdana,Arial,Helvetica,sans-serif;text-align:justify}p.TandCtitle{font-size:x-small;font-weight:700}span.TandCbody{font-size:xx-small;font-weight:400}#smallPrint,.tourtable img{text-align:center}.tourtablehead{background:url(/graphics/tour_header.png) top left no-repeat;width:660px}.tourtablehead tr{height:49px}.tourtable{background:url(/graphics/tour_table_bg.png) top left repeat-y;width:660px}.tourtable tr{height:50px}.notes{font-size:smaller}#smallPrint{width:960px;margin:0 auto;background:url(/graphics/page_bgnd_sprite.png) -1920px 0 repeat-y;border-bottom:1px solid;font-size:x-small}.js .showIfJS{display:block}@media print{dummy{display:block}}@media screen and (max-width:1060px){#primary{width:67%}#secondary{width:30%;margin-left:3%}}@media screen and (max-width:768px){#primary,#secondary{width:100%}#secondary{margin:0;border:none}}@media (min-width:640px){body{font-size:1rem}}@media (min-width:960px){body{font-size:1.2rem}}@media (min-width:1100px){body{font-size:1.5rem}}7  </style>8  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">9  <title>10   Vinci BMS downloads - Elithion11  </title>12  <meta content="Brochures, manuals, GUI" name="description">13  <meta content="Elithion" name="DC.Creator">14  <meta content="Brochures, manuals, GUI" name="DC.Description">15  <meta content="2023" name="DC.Date">16  <meta content="English" name="DC.Language">17  <meta content="40.036957;-105.249273" name="geo.position">18  <!-- "Mobile friendy". This is not actually used (because we have a separate site for mobile), but is placed here to satisfy bots that analyze this site for mobile compatibility-->19  <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">20  <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">21  <meta content="true" name="HandheldFriendly">22  <meta content="k2bd1FX2r2UYvrIBLzDapUu0u3aFQ3Q8LlnmPYf-77E" name="google-site-verification">23 </head>24 <!--// Body -->25 <body id="body">26  <!--// Header -->27  <div id="header">28   <a name="top">29   </a>30   <!--// Home logo button -->31   <a>32    <span class="logoset" id="topLogo">33    </span>34   </a>35   <!--// Redirect to mobile site button -->36   <a id="mobileRedirectBtn">37   </a>38   <!--// Search and translate -->39   <div id="translateBox">40    <select onchange="code=this[this.selectedIndex].value; if(!(code=='')){document.location.href='https://translate.google.com/translate?js=n&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=2&amp;eotf=1&amp;sl=en&amp;u='+encodeURIComponent(window.location)+'&amp;act=url&amp;tl='+code}" title="Select language">41     <option value>42      Select language...43     </option>44     <option value="af">45      Afrikaans46     </option>47     <option value="sq">48      Albanian49     </option>50     <option value="ar">51      Arabic52     </option>53     <option value="hy">54      Armenian55     </option>56     <option value="az">57      Azerbaijani58     </option>59     <option value="eu">60      Basque61     </option>62     <option value="be">63      Belarusian64     </option>65     <option value="bg">66      Bulgarian67     </option>68     <option value="my">69      Burmese70     </option>71     <option value="ca">72      Catalan; Valencian73     </option>74     <option value="zh-CN">75      Chinese (simpl)76     </option>77     <option value="zh-TW">78      Chinese (trad)79     </option>80     <option value="hr">81      Croatian82     </option>83     <option value="cs">84      Czech85     </option>86     <option value="da">87      Danish88     </option>89     <option value="nl">90      Dutch91     </option>92     <option value="et">93      Estonian94     </option>95     <option value="tl">96      Filipino97     </option>98     <option value="fi">99      Finnish100     </option>101     <option value="fr">102      French103     </option>104     <option value="gl">105      Galician106     </option>107     <option value="ka">108      Georgian109     </option>110     <option value="de">111      German112     </option>113     <option value="el">114      Greek, Modern115     </option>116     <option value="ht">117      Haitian Creole118     </option>119     <option value="he">120      Hebrew (modern)121     </option>122     <option value="hi">123      Hindi124     </option>125     <option value="hu">126      Hungarian127     </option>128     <option value="is">129      Icelandic130     </option>131     <option value="id">132      Indonesian133     </option>134     <option value="it">135      Italian136     </option>137     <option value="ja">138      Japanese139     </option>140     <option value="ko">141      Korean142     </option>143     <option value="lv">144      Latvian145     </option>146     <option value="lt">147      Lithuanian148     </option>149     <option value="mk">150      Macedonian151     </option>152     <option value="ms">153      Malay154     </option>155     <option value="ml">156      Malayalam157     </option>158     <option value="mt">159      Maltese160     </option>161     <option value="nb">162      Norwegian163     </option>164     <option value="fa">165      Persian166     </option>167     <option value="pl">168      Polish169     </option>170     <option value="pt">171      Portuguese172     </option>173     <option value="ro">174      Romanian175     </option>176     <option value="ru">177      Russian178     </option>179     <option value="sr">180      Serbian181     </option>182     <option value="sk">183      Slovak184     </option>185     <option value="sl">186      Slovenian187     </option>188     <option value="es">189      Spanish190     </option>191     <option value="sw">192      Swahili193     </option>194     <option value="sv">195      Swedish196     </option>197     <option value="th">198      Thai199     </option>200     <option value="tr">201      Turkish202     </option>203     <option value="uk">204      Ukrainian205     </option>206     <option value="ur">207      Urdu208     </option>209     <option value="vi">210      Vietnamese211     </option>212     <option value="cy">213      Welsh214     </option>215     <option value="wo">216      Wolof217     </option>218    </select>219   </div>220   <div id="searchBox">221    <!-- The "margin:0" keeps IE from adding an extra line below the form -->222    <form action="" method="GET" style="margin:0;">223     <fieldset>224      <legend>225      </legend>226      <input name="ie" type="hidden" value="UTF-8">227      <input name="oe" type="hidden" value="UTF-8">228      <input name="domains" type="hidden" value="elithion.com">229      <input name="sitesearch" type="hidden" value="elithion.com">230      <input alt="search string entry field" maxlength="255" name="q" size="22" title="Search in Google" type="text" value>231      <input alt="Submit button" id="searchBtn" src="/graphics/dot.gif" type="image">232     </fieldset>233    </form>234   </div>235   <!--// Navigation menus -->236   <ul id="navbar">237    <!-- The strange spacing herein prevents an IE6 whitespace bug. -->238    <li>239     <a>240      Home241     </a>242    </li>243    <li>244     <a class="activeMenu">245      Products246     </a>247     <ul>248      <li>249       <a title="Battery management system">250        Battery management251       </a>252      </li>253      <li>254       <a title="Versatile battery management system for all applications">255        &bull;Lithiumate256        <span class="orderLink" onclick="location.href='lithiumate_ordering.php';return false;">257         Order258        </span>259       </a>260      </li>261      <li>262       <a title="Battery management system for traction packs">263        &bull;Vinci EV264       </a>265      </li>266      <li>267       <a title="Battery management system for grid applications">268        &bull;Vinci HV269       </a>270      </li>271     </ul>272    </li>273    <li>274     <a>275      Applications276     </a>277    </li>278    <li>279     <a>280      Technology281     </a>282     <ul>283      <li>284       <a>285        The Elithion Edge286       </a>287      </li>288      <li>289       <a>290        Consulting services291       </a>292      </li>293      <li>294      </li>295     </ul>296    </li>297   </ul>298  </div>299  <!-- header -->300  <!--// Main body -->301  <div id="mainBody">302   <div id="pageNavigation">303   </div>304   <table cellpadding="0" cellspacing="0" width="100%">305    <!--// Central body of page: left menu (if applicable), left white column, actual contents, right while column -->306    <tbody>307     <tr>308      <td class="contentMargin">309       <!--// Left white margin -->310      </td>311      <td>312       <!--// Page contents -->313       <div id="pageContents">314        <div id="treeNavigation">315         <a>316          home317         </a>318         <span style="color:#698E80;">319320         </span>321         <a>322          products323         </a>324         <span style="color:#698E80;">325326         </span>327         <a>328          vinci329         </a>330         <span style="color:#698E80;">331332         </span>333         vinci_downloads334        </div>335        <table cellpadding="0" cellspacing="0" width="100%">336         <tbody>337          <tr>338           <td style="width:620px;">339            <h1>340             Vinci BMS downloads341            </h1>342            <h2>343             Brochures, manuals, GUI344            </h2>345           </td>346           <td style="width:130px;">347           </td>348          </tr>349         </tbody>350        </table>351        <!--// The remainder of the page is defined in the individual php file, and then by _pageend -->352        <!--//-->353        <a id="Documentation">354        </a>355        <h3>356         <a>357          <span style="color:#698E80;font-weight:bold;float:right;position:relative;top:-10px;font-size:150%;" title="back to top">358359          </span>360         </a>361         <a class="headerlink">362          Documentation363         </a>364        </h3>365        <table cellspacing="4" class="standardTable">366         <tbody>367          <tr>368           <th>369            Vinci EV370           </th>371           <td>372            <a>373             Brochure374            </a>375           </td>376           <td>377            <a href>378             Pamphlet379            </a>380           </td>381           <td>382            <a href>383             Quick manual384            </a>385           </td>386          </tr>387          <tr>388           <th>389            Vinci HV390           </th>391           <td>392            <a>393             Brochure394            </a>395           </td>396           <td>397            <a href>398             Pamphlet399            </a>400           </td>401           <td>402            <a href>403             Quick manual404            </a>405           </td>406          </tr>407         </tbody>408        </table>409        <p>410         The full manual is integrated in the GUI.411         <!--//-->412         <a id="Software">413         </a>414        </p>415        <h3>416         <a>417          <span style="color:#698E80;font-weight:bold;float:right;position:relative;top:-10px;font-size:150%;" title="back to top">418419          </span>420         </a>421         <a class="headerlink">422          Software423         </a>424        </h3>425        <!--//-->426        <h4>427         <a name="Windows">428         </a>429         <a class="headerlink">430          Windows431         </a>432        </h4>433        <ol>434         <li>435          Download the436          <a href>437           Graphics User Interface438          </a>439         </li>440         <li>441          Download the442          <a>443           driver for the CAN-USB adapter444          </a>445         </li>446         <li>447          Run the GUI448         </li>449         <li>450          To connect to the BMS, follow the instructions in the manual, included in the GUI.451         </li>452        </ol>453        <!--// This file ends each and every page in the website  -->454        <!--// The previous portion of the page is defined in _pagestart and in the individual php file  -->455        <p>456         &nbsp;457        </p>458       </div>459      </td>460      <td class="contentMargin">461       <!--// Right white margin -->462      </td>463     </tr>464    </tbody>465   </table>466   <!--// Central body of page: left menu (if applicable), left white column, actual contents, right while column -->467   <!--// TOC: list of links to anchors in the page  -->468   <!-- We do this last, because we had to first collect the anchors in an array, as the page was being built  -->469   <div id="toc">470    In this page:471    <br>472    <a>473     Documentation474    </a>475    <span style="color:#698E80;">476477    </span>478    <br>479    <a>480     Software481    </a>482    <span style="color:#698E80;">483484    </span>485    <br>486   </div>487  </div>488  <!--// Small print at the bottom of the page, maintenance links just for the home page -->489  <div id="smallPrint">490   <a>491    <span class="logoset" id="botLogo">492    </span>493   </a>494   &nbsp;495   <br>496   &copy; 2008~2023 Elithion&trade;, Inc.. All rights reserved.497			The Elithion brand and the logo with an 'ə' (upside down 'e') are Trademarks of Elithion Inc.498   <br>499   <a>500    Policies501   </a>502   &nbsp;-&nbsp;503   <a>504    Contact us505   </a>506   &nbsp;-&nbsp;507   <a>508    Mobile site509   </a>510   Page published on May 26 2017.511   <br>512   &nbsp;513   <br>514   <!--// Extra space, so that when going to the last anchor in the page, the anchor can start at the top of the page  -->515   &nbsp;516   <br>517   &nbsp;518   <br>519   &nbsp;520   <br>521   &nbsp;522   <br>523   &nbsp;524   <br>525   &nbsp;526   <br>527   &nbsp;528   <br>529   &nbsp;530   <br>531   &nbsp;532   <br>533   &nbsp;534   <br>535   &nbsp;536   <br>537   &nbsp;538   <br>539   &nbsp;540   <br>541   &nbsp;542   <br>543   &nbsp;544   <br>545   &nbsp;546   <br>547   &nbsp;548   <br>549   &nbsp;550   <br>551  </div>552  <!--// Pop-up image for enlargements, hidden until needed  -->553  <div id="popupimgdiv" onclick="this.style.display='none'">554   <img alt="Pop-up enlargement" height="450" id="popupimage" src="rick.jpg" width="675">555   <br>556   <span id="popupimgcaption">557   </span>558  </div>559  <!--// Chat  -->560  <!--561-->562  <!-- Piwik web analytics -->563 </body>564</html>565