html legend

#legend in html
<ul class="legend">
    <li><span class="greendot"></span>Text</li><br></br>
    <li><span class="yellowdot"></span>Text</li><br></br>
    <li><span class="reddot"></span>Text</li><br></br>
    <li><span class="blackdot"></span>Text</li><br></br>
</ul>
<style>
  .legend { list-style: none; margin-left:10px;}
    .legend li { float: left; margin-right: 15px;}
    .legend span { border: 1px solid #ccc; float: left; width: 10px; height: 12px; margin: 2px;}
    .legend {
             position: fixed;
             top: 62%;
             left: 10%; 
  /* bring your own prefixes */
             transform: translate(-50%, -50%);
            }
    /* your colors */
    .legend .greendot { background-color: #00ff00;}
    .legend .yellowdot { background-color: #ffff33; }
    .legend .reddot { background-color: #ff3333; }
    .legend .blackdot{ background-color: #000000; }
</style>

4.1
10
Alaa Mustafa 130 points

                                     &lt;ul class=&quot;legend&quot;&gt;
    &lt;li&gt;&lt;span class=&quot;greendot&quot;&gt;&lt;/span&gt;High amounts of available beds&lt;/li&gt;&lt;br&gt;&lt;/br&gt;
    &lt;li&gt;&lt;span class=&quot;yellowdot&quot;&gt;&lt;/span&gt;Medium amounts of available beds&lt;/li&gt;&lt;br&gt;&lt;/br&gt;
    &lt;li&gt;&lt;span class=&quot;reddot&quot;&gt;&lt;/span&gt;Low amounts of available&lt;/li&gt;&lt;br&gt;&lt;/br&gt;
    &lt;li&gt;&lt;span class=&quot;blackdot&quot;&gt;&lt;/span&gt;Data of available beds N/A&lt;/li&gt;&lt;br&gt;&lt;/br&gt;
  &lt;/ul&gt;
https://hospitable.live to see how it works

4.1 (10 Votes)
0
3.25
4
Grimolatto 130 points

                                    The HTML &lt;legend&gt; element represents a title caption for the content of 
its parent &lt;fieldset&gt;.

3.25 (4 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
html tags legend legend html example different legend class in html what is legend tag in legend legend in html css legend examples html tags legend html syntax legend in html form legend in htm what is legend&gt; tag in html used for what i&iacute; the &lt;legend&gt; in html html legend example html legend sample chart legend in html legend element in html html legend tag defination html does does legend work html legende how to make a legend HTML balise legend html what is legend used for in html legend tag in html form legend class html create legend in html legend tag html\ legend html5 tag legend legende html legend html w3schools what is legend tag do in html legend tag in css form legend in html legend htlm legend html what is legend in html &lt;legend&gt; tag HTML adding legend in html html why use legend tag &quot;&lt;legend&gt;&quot; html legend form html html create a legend legend w3schools html legend element legend in form html legend tag used in html what is a legend html legend en html create chart legend in html legend html set html legend tag introduced in which html how to use legend tag in html css alter legend bootstrap lenged css legend property css legend property html legend in w3 schools legend tag in html div id legend legend html color use of legend tag in html why we use legend in html legend tag in bootstrap 4 add legend to html legent in html html legend tag bootstrap legend html bootstrap set legend html template data-legend html legend design css how to use legend in hml how to use legend in css legend in html for color showing legend title html input text box legend html legend font style legend for input tag input with legend html css &lt;legend&gt; in html fieldset legend border legend in htgml html5 legend &lt;legend&gt; in htl input with legend tag html tag suitable for legend chart html tag suitable for legend legend in html react js input legend &lt;legend&gt; html Legends in HTML is the legend tag still used html page list legend html css legend add legend to html table legenda html html set legend text with javascript html legend properties html color legende html fieldset website legend examples add legends to html add a legend to div html legend with color html how to add legend in div css color legend html w3school legend legend area html css html scc legand html scc leganda show input label like legends legend for input field from legend in css css leyend form create a legend in html legend tag in react js color legend in html ul legend legends css leganda html css legend elementhtml html colr legend how to customize legend - css - html legend htnl text legend on image css html legend tag style textarea legend how to add legend html css form with legend add legend in html for legend tag and p tag fieldset Add a &lt;legend&gt; tag to this forms legend css legend reduce size css html reduce legend size css legend input html legend html text form in legend element Legend example html legend and label html html p legend bootstarp legend legend in bootstrap w3schools fieldset and legend tag in html margin from legend tag html legend color css how to use legend in html legend using bootstrap label as legend html html tag legend legend with title html legend form html legend width w3schools legend make a legend in html legend javascript ledgend in js legend tag in html 5 how to select one legend element in javascript add section legend css number and legend html css lengend in html beutiful legend css html css legend for data what does legend do in html css legend html color legend what is the main purpose of legend in html css bootstrap legend css form legend html html legend property legend in html with css how to make a legend in html html legend styling left side html legend styling legend tag html &lt;legend&gt; html tag legend tag in html change legend style css html table add legend bootstrap legend tag legend html tag html legend tag html form legend html video legend html legend making a legend in html what is legend tag in html bootstrap legend legend element html legend tag form legend legend html legend in html
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source