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
4399.html445 linesDownload Raw Back to root
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">2<html xmlns="">3 <head>4  <style>5   /* CSS Reset */6body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{ margin:0;padding:0;}7table{ border-collapse:collapse;border-spacing:0;}8fieldset,img{ border:0;}9ol,ul,li{ list-style:none; list-style-position:outside;}10 11 12/* Generic Styling */13a{ color:#007AAA; text-decoration:none;}14a:hover{color:#00A9DF;text-decoration:underline;}15 16html{ background:#fff url(../images/html_bg.jpg) top repeat-x;}17body{font-family:"Trebuchet MS","Palatino Roman", "Times New Roman", Times, serif; color:#000; font-size:14px;background:url(../images/body_bg.jpg) center top no-repeat;}18 19/* header */20#header{ position: relative; width:1126px; margin:0 auto; overflow:hidden; color:#fff;height: 192px;overflow:hidden;}21#header .logo{ height: 115px; width: 327px; left: 172px; top: 16px; position: absolute; float:left; margin:1px 0 0 50px;display:inline;}22#navigation{ left: 58px; bottom: 0px; position: absolute; width:1010px; clear:both; font-size:18px;margin:0 auto;height:42px;background:url(../images/sprite.jpg) no-repeat 0 0;height:42px;overflow:hidden;}23#navigation ul{height:42px;overflow:hidden;}24#navigation li{ float:left;}25#navigation li a{display:block;height:47px;color:#fff;font-size:14px;text-align:center;line-height:44px;overflow:hidden;}26#navigation li.nav1 a{width:99px;}27#navigation li.nav2 a{width:168px;}28#navigation li.nav3 a{width:164px;}29#navigation li.nav4 a{width:200px;}30#navigation li.nav5 a{width:197px;}31#navigation li.nav6 a{width:170px;}32#navigation li a:hover{text-decoration:none;background:url(../images/sprite.jpg) no-repeat 0px -42px;}33#navigation li.nav1 a:hover{background-position:0px -42px;}34#navigation li.nav2 a:hover{background-position:-99px -42px;}35#navigation li.nav3 a:hover{background-position:-267px -42px;}36#navigation li.nav4 a:hover{background-position:-431px -42px;}37#navigation li.nav5 a:hover{background-position:-631px -42px;}38#navigation li.nav6 a:hover{background-position:-828px -42px;}39 40/* content */41#content{ width: 1008px; overflow:hidden; margin:0 auto;border:1px solid #F3F3F3;border-bottom:4px solid #1E8FB5;border-top:0;background:url(../images/content_bg.gif) repeat-y 0 0 white;position:relative;}42.content_bottom{background:url(../images/content_bottom.jpg) no-repeat right bottom;height:149px;width:271px;display:block;position:absolute;right:0px;bottom:0px;}43 44.index_content{float:left; width:730px; padding-top:20px; line-height:120%;}45.index_sider{float:left; width:278px; padding-top:18px;background:url(../images/sprite.jpg) no-repeat -328px -951px;}46 47/* sider menu */48.menu{width:258px;margin:0 auto 16px;}49.menu h2{background:url(../images/sprite.jpg) no-repeat 0 -1085px;height:33px;line-height:32px;color:#fff;font-size:14px;padding-left:10px;width:230px;margin:0 auto;font-weight:normal;}50.menu ul{background:url(../images/sidemenu_bg.gif) repeat-y left top;padding:8px 0 13px 18px;width:222px;margin:0 auto;}51.menu ul li{height:21px;overflow:hidden;}52.menu ul li a{font-size:13px;padding-left:10px;background:url(../images/sprite-icos.png) no-repeat left -126px;color:#007AAA;}53.menu ul li a:hover{color:#00A9DF}54.menu .bottom{background:url(../images/sprite.jpg) no-repeat 0 -1129px;height:19px;display:block;overflow:hidden;}55 56.index_content .guide{padding:0 20px;}57.index_content .guide h1{color:#37488C;font-size:20px;padding:10px 0 11px;font-weight:normal;}58.index_content .guide p,.entryguide p,.games_introduction p,.payment p{color:#000;font-size:14px;padding-bottom:10px;}59.entryguide h2,.games_introduction h2,.payment h2{color:#37488C;font-size:18px;padding:5px 0 10px;font-weight:normal;}60.games_introduction h3{padding:25px 0 15px;color:#37488C;font-size:18px;font-weight:normal;}61 62.parting_line{background:url(../images/sprite.jpg) no-repeat -674px -1106px;}63.sites{padding-bottom:6px;}64.sites .site_content{background:url(../images/sprite.jpg) no-repeat 0 -231px;width:694px;height:407px;margin:0 16px 0 auto;}65.sites .site_content2{background:url(../images/sprite.jpg) no-repeat 0 -231px;width:694px;height:407px;margin:0 16px 0 auto;}66.sites .site_content img{float:left;margin-left:42px;display:inline;}67.sites .site_content2 img{float:left;margin-left:42px;display:inline;}68.sites .largerlogo{float:left;margin:10px 0 0 42px;display:inline;width:164px;height:86px;background:url(../images/sprite-largerlogos.gif) no-repeat 0px 0px;}69.sites .logo01{background-position:0px -774px;}70.sites .logo02{background-position:0px 0px;}71.sites .logo03{background-position:0px -602px;}72.sites .logo04{background-position:0px -1032px;}73.sites .logo05{background-position:0px -860px;}74.sites .site1,.sites .site2,.sites .site3,.sites .site4,.sites .site5{height:103px;}75.sites dl{float:left;width:250px;padding-left:15px;padding:15px 0 0 25px;}76.sites dl dt{font-size:15px;font-weight:bold;padding-bottom:2px;}77.sites dl dt a:hover{text-decoration:none;}78.sites dl dd{color:#000;font-size:13px;line-height:110%;}79.sites .icoyes{margin:35px 0 0 10px;width:33px;height:33px;background:url(../images/sprite-icos.png) no-repeat 0 -158px;float:left;}80.sites .icono{margin:35px 0 0 10px;width:33px;height:33px;background:url(../images/sprite-icos.png) no-repeat 0 -209px;float:left;}81.entry_button a{background:url(../images/sprite.jpg) no-repeat -328px -848px;width:132px;height:40px;text-indent:-9999em;float:right;margin:35px 22px 0 0;display:inline;overflow:hidden;}82.entry_button a:hover{background-position: -328px -889px;}83 84.entryguide{height:425px;overflow:hidden;}85.entryguide,.games_introduction,.payment{margin-top:16px;padding-left:20px;}86.games .games_introduction{padding-top:0px;margin-top:0;}87.entryguide p,.games_introduction p,.payment p{padding-right:20px;}88.entrys ul li{background:url(../images/sprite.jpg) no-repeat -1010px 0;width:339px;height:73px;float:left;margin-left:10px;display:inline;}89.entrys ul li.nomargin{margin-left:0;}90.entrys ul li img{display:block;overflow:hidden;float:left;margin:6px 0 0 6px;display:inline;}91.entrys ul li a{float:left;margin:24px 0 0 10px;color:#37468C;font-size:16px;background:url(../images/sprite-icos.png) no-repeat right -56px;height:20px;overflow:hidden;padding-right:12px;}92.entrys ul li a:hover{color:#0092CA;background:url(../images/sprite-icos.png) no-repeat right -75px;text-decoration:none;}93 94.navigation_links{background:url(../images/sprite.jpg) no-repeat -694px -190px;width:706px;height:306px;margin:0px auto;}95.games_navigation ul{float:left;width:193px;padding:20px 0 0 35px;line-height:150%;}96.games_navigation ul li a{font-size:13px;padding-left:10px;background:url(../images/sprite-icos.png) no-repeat left -126px;}97.games_navigation ul li a:hover{background-position:3px -126px;padding-left:12px;}98.games_navigation h2,.sites h2{background:url(../images/sprite.jpg) no-repeat 0 -190px;width:674px;height:41px;margin:0 auto;margin-bottom:3px;color:#fff;font-size:16px;line-height:40px;padding-left:20px;overflow:hidden;font-weight:normal;}99 100.payment{height:240px;overflow:hidden;}101.payment ul li {background-position: -1010px -84px; background-repeat: no-repeat; background-image: url(../images/sprite.jpg); float:left;margin-right:10px;display:inline;text-align:center;color:#37488C;font-weight:bold;font-size:13px;}102.payment ul li img{display:block;overflow:hidden;margin-bottom:5px;}103.games_introduction .lastp{padding-bottom:40px;}104 105/* footer */106#footer{ width:990px;background:url(../images/sprite.jpg) no-repeat 0 -84px;height:81px; color:#D6D6D6;margin:0 auto;padding:25px 0 0 20px;font-family:"Verdana","Palatino Roman", "Times New Roman", Times, serif;}	107.copyright{ float:left; padding-top:6px;font-size:13px;}108.copyright strong{display:block;margin-bottom:8px;}109.f_follow{ float:right;width:182px;background:url(../images/sprite-icos.png) no-repeat 0 -248px;height:45px;margin-right:23px;display:inline;}110	111/*------------list-casinos.html---------------*/112.casinos_list .eachlist{width:700px;background:url(../images/sprite.jpg) no-repeat -694px -495px;height:315px;margin:0 auto 20px;}113.casinos_list .last{margin:0 auto 0;}114.casinos_list .eachlist h2{height:43px;color:#fff;font-size:16px;line-height:40px;padding-left:20px;overflow:hidden;font-weight:normal;}115.casinos_list .eachlist_content{height:262px;overflow:hidden;padding-top:10px;}	116.casinos_list .logo{float:right;width:200px;margin-right:45px; height:106px;}117.casinos_list .access{float:right;width:170px; margin-right:35px;}118.casinos_list .introduce{float: left;119    font-size: 14px;120    line-height: 120%;121    padding: 0 10px 0 25px;122    width: 350px;}123.casinos_list .largerlogo{float:left;margin:10px 0 8px 15px;display:inline;width:164px;height:86px;background:url(../images/sprite-largerlogos.gif) no-repeat 0px 0px;}124.casinos_list .logo01{background-position:0px -774px;}125.casinos_list .logo02{background-position:0px 0px;}126.casinos_list .logo03{background-position:0px -602px;}127.casinos_list .logo04{background-position:0px -1032px;}128.casinos_list .logo05{background-position:0px -860px;}129.casinos_list .logo dl{font-weight:bold;}130.casinos_list .logo dt{color:#37468C;font-size:14px;text-align:center;margin-bottom:20px;}131.casinos_list .logo dd{color:#000;font-size:13px;padding:0 0 0 30px;line-height:120%;}132.casinos_list .logo dd span{color:#DF0000;}133.casinos_list .access .support{width:97px;background:url(../images/sprite-icos.png) no-repeat left -416px;height:26px; margin:10px auto 10px;overflow:hidden;}134.casinos_list .access .entry_button a{background:url(../images/sprite.jpg) no-repeat -328px -748px;width:164px;height:50px;text-indent:-9999em;display:block;margin:5px auto 0;overflow:hidden;}135.casinos_list .access .entry_button a:hover{background-position: -328px -798px;}136 137.casinos_list .somemenu{padding-top:30px;}138.casinos_list .somemenu ul li{float:left;width:130px;font-size:13px;height:20px;}139.casinos_list .somemenu ul li a{background:url(../images/sprite-icos.png) no-repeat 0 -10px;padding-left:10px;color:#0079AA;}140.casinos_list .somemenu ul li a:hover{background:url(../images/sprite-icos.png) no-repeat 0 -33px;padding-left:10px;color:#00A9DF;text-decoration:none;}141 142 143/*------------list-games.html---------------*/144.games_list .eachlist{width:700px;background:url(../images/sprite.jpg) no-repeat -694px -810px;height:285px;margin:0 auto 12px;}145.games_list .eachlist h2{height:43px;color:#fff;font-size:16px;line-height:40px;padding-left:20px;overflow:hidden;font-weight:normal;}146.games_list .eachlist_content{overflow:hidden;padding-top:10px;}147.games_list .introduce{float:left;width:425px;font-size:14px;padding:0 20px 0 35px;line-height:120%;}148.games_list .subsidemenu{float:right;width:170px;font-size:14px;padding:0 25px 0 25px;}149.games_list h3{color:#37468C;font-size:15px;}150.games_list p.link{color:#0079AA;margin:10px 0 35px;}151.games_list p.link a{font-weight:600;padding-left:10px;background:url(../images/sprite-icos.png) no-repeat left -126px;}152.games_list p.link a:hover{background-position:3px -126px;padding-left:12px;}153.games_list .software h3{width:150px;background:url(../images/sprite-icos.png) no-repeat right -99px;}154.games_list .subsidemenu h3{width:136px;background:url(../images/sprite-icos.png) no-repeat right -100px;margin-bottom:15px;}155.games_list .subsidemenu li{background:url(../images/sprite-icos.png) repeat-x 0 -460px;height:28px;overflow:hidden;font-size:13px;}156.games_list .subsidemenu li a{padding-left:10px;background:url(../images/sprite-icos.png) no-repeat left -126px;}157.games_list .software ul{padding:18px 0 0 0;height:20px;float:left}158.games_list .software li{float:left;color:#0079AA;margin-right:20px;display:inline;}159.games_list .software li.last{margin-right:0;}160.games_list .software01,.games_list .software02,.games_list .software03{border:1px solid #0179A9;width:18px;height:18px;float:left;margin:-3px 5px 0 0;display:inline;}161.games_list .software01{background:url(../images/sprite-icos.png) no-repeat left -306px;}162.games_list .software02{background:url(../images/sprite-icos.png) no-repeat left -341px;}163.games_list .software03{background:url(../images/sprite-icos.png) no-repeat left -376px;}164 165/*------------text-table.html---------------*/166.text_table{width:328px;float:right;margin-left:20px;display:inline;}167.text_table h2{background:url(../images/sprite.jpg) no-repeat 0 -1048px;width:298px;height:37px;margin:0 auto 2px;}168.text_table .site_content{background:url(../images/sprite.jpg) no-repeat 0 -748px;width:328px;height:230px;margin:0 auto;}169.text_table .site_content2{background:url(../images/sprite.jpg) no-repeat 0 -748px;width:328px;height:230px;margin:0 auto;}170.text_table .smallerlogo{float:left;margin:8px 0 0 42px;display:inline;width:88px;height:42px;background:url(../images/sprite-smallerlogos.png) no-repeat 0px 0px;}171.text_table .logo01{background-position:0px -378px;}172.text_table .logo02{background-position:0px 0px;}173.text_table .logo03{background-position:0px -294px;}174.text_table .logo04{background-position:0px -504px;}175.text_table .logo05{background-position:0px -420px;}176.text_table .site1,.text_table .site2,.text_table .site3,.text_table .site4{height:58px;}177.text_table .site5{height:67px;}178.text_table dl{float:left;width:175px;padding-left:15px;padding:20px 0 0 10px;}179.text_table dl dt{font-size:13px;font-weight:bold;padding-bottom:2px;}180.text_table dl dt a{color:#37468C;}181.text_table dl dt a:hover{color:#0EADE1;}182 183.h2 {color: #37488C;184    font-size: 20px;185    font-weight: normal;186    padding: 10px 0 11px;}187  </style>188  <title>189   Loch Ness Loot Slot - Play RTG's Loch Ness Slot Machine190  </title>191  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">192  <meta content="Loch Ness Loot is RTG's newest slot offering 25 paylines, random progressives and a win - win bonus round. Read our review and find out which online casinos have the Loch Ness loot slot." name="description">193  <meta content="true" name="MSSmartTagsPreventParsing">194  <meta content="no" http-equiv="imagetoolbar">195  <meta content="index, follow" name="robots">196  <!--[if lte IE 6]>197			198			199		<![endif]-->200 </head>201 <body>202  <div id="header">203   <!--end of navigation-->204   <a class="logo">205   </a>206  </div>207  <div id="content">208   <div class="index_content">209    <div class="guide">210     <!--end of header-->211     <!--end of sites-->212     <div class="sites text_table">213      <h2>214       Play Lord of the Review Slots!215      </h2>216      <div class="site_content">217       <div class="site1">218        <div>219         <img alt src="rick.jpg" style="margin-top:15px; padding-left:8px;" width="74">220        </div>221        <dl>222         <dt>223          <a alt>224           Casino Titan225          </a>226         </dt>227        </dl>228       </div>229       <!--end of site1-->230       <div class="site2">231        <div>232         <img alt height="29" src="rick.jpg" style="margin-top:15px; padding-left:8px;" width="74">233        </div>234        <dl>235         <dt>236          <a alt>237           Grand Parker Casino238          </a>239         </dt>240        </dl>241       </div>242       <!--end of site2-->243       <div class="site3">244        <div>245         <img alt height="29" src="rick.jpg" style="margin-top:15px; padding-left:8px;" width="74">246        </div>247        <dl>248         <dt>249          <a alt>250           Win Palace251          </a>252         </dt>253        </dl>254       </div>255       <!--end of site3-->256       <div class="site4">257        <div>258         <img alt height="29" src="rick.jpg" style="margin-top:15px; padding-left:8px;" width="74">259        </div>260        <dl>261         <dt>262          <a alt>263           OnBling Casino264          </a>265         </dt>266        </dl>267       </div>268       <!--end of site4-->269      </div>270     </div>271     <!--end of sites-->272     <h1>273      Loch Ness Loot Slot  Review274     </h1>275     <p>276      Loch Ness Loot is a 25-line progressive  slot machine created by Realtime Gaming, one of the industry leaders in online  casino technology. In this Lock Ness Loot slot review, we&rsquo;ll look at the unique  features of the game, as well as discuss the various payouts and symbols.277     </p>278     <p>279      <strong>280       Loch Ness  Loot Theme281      </strong>282     </p>283     <p>284      As you may have guessed from the title, the  theme of Loch Ness Loot centers around the famous lake located in the Scottish  Highlands. While the area is notable for the underwater creature known  affectionately as &ldquo;Nessie,&rdquo; the game takes a lighthearted approach to the  legend with cartoonish symbols ranging from newspaper headlines to a colorful  Scotsman.285     </p>286     <p>287      <strong>288       Loch Ness Loot Payouts  and Bonus Symbols289      </strong>290     </p>291     <p>292      This online slot machine offers both major  and minor progressive payouts. Since you can play for as little as one cent per  line, this increases your chances of making a major return on your investment.293     </p>294     <p>295      <strong>296       Progressive  Jackpots297      </strong>298      - The major and minor progressive jackpots  can be won at any time, and you don&rsquo;t even need a winning spin to get them.  These prizes are awarded at random, so pay close attention after completing  each spin.299     </p>300     <p>301      <strong>302       Wild  Symbol303      </strong>304      - The game&rsquo;s wild symbol takes the form of  Lochie, a bluish creature who&rsquo;s clearly meant to represent Nessie.305     </p>306     <p>307      <strong>308       Scatter  Symbols309      </strong>310      - Bags of loot represent the scatter  symbols in the game.311     </p>312     <p>313      <strong>314       Traditional  Winning Paylines315      </strong>316      - For standard winnings, get three  or more of the following: newspapers, cameras, blurry photographs, rowboats,  excited Scottish fishermen, and assorted playing card values. The more symbols  you match on a line, the greater your payout will be.317     </p>318     <p>319      <strong>320       Free  Games321      </strong>322      - During the free games, all wins are  doubled.323     </p>324     <p>325      <strong>326       Win  Win Feature327      </strong>328      - If you win less than 10 times your  bet during the free spins round, the makers of the game have included a  built-in consolation prize.329     </p>330     <p>331      <strong>332       A Final Word on Loch Ness  Loot333      </strong>334     </p>335     <p>336      Loch Ness Loot is ideal for those looking  for lighthearted visual entertainment while seeking multiple ways to win at an  online slot machine. The rare ability of the wild symbol to convert into  scatter pays is noteworthy, and fans of Nessie will be thrilled by the ability  to practice for free at most Internet casinos.337     </p>338    </div>339   </div>340   <!--end of index_content-->341   <div class="index_sider">342    <div class="menu">343     <h2>344      Main Menu345     </h2>346     <ul>347      <li>348       <a>349        Online Slots Real Money350       </a>351      </li>352      <li>353       <a>354        Popular Slot Machines355       </a>356      </li>357      <li>358       <a>359        How to Win at Slots360       </a>361      </li>362      <li>363       <a>364        Best Payback Slots365       </a>366      </li>367     </ul>368     <div class="bottom">369     </div>370    </div>371    <div class="menu">372     <h2>373      Slot Machine Software374     </h2>375     <ul>376      <li>377       <a>378        IGT Slots379       </a>380      </li>381      <li>382       <a>383        RTG Slots384       </a>385      </li>386      <li>387       <a>388        TopGame Slots389       </a>390      </li>391      <li>392       <a>393        Aristocrat Slots394       </a>395      </li>396     </ul>397     <div class="bottom">398     </div>399    </div>400    <div class="menu">401     <h2>402      Deposit Menu403     </h2>404     <ul>405      <li>406       <a>407        Deposit Options408       </a>409      </li>410      <li>411       <a>412        Amex Casinos413       </a>414      </li>415      <li>416       <a>417        Visa Online Casinos418       </a>419      </li>420      <li>421       <a>422        MasterCard Casinos423       </a>424      </li>425     </ul>426     <div class="bottom">427     </div>428    </div>429   </div>430   <!--end of index_sider-->431  </div>432  <!--end of content-->433  <div id="footer">434   <div class="copyright">435    <strong>436     &copy; 2023. OnlineSlotsRealMoney.com -437    </strong>438    An online guide to playing slot machines for real money.439   </div>440   <div class="f_follow">441   </div>442  </div>443 </body>444</html>445