Giter Club home page Giter Club logo

html-lists-re-coded-erbil-2018's Introduction

HTML Lists

Objectives

  • Learn the basics of HTML list elements

<ul>, <li>

Remember to use httpserver to live test your webpage

list things using the <ul> tag, which stands for unordered list, along with the <li> tag, list item.

To make a list, we write out the opening and closing <ul> tags, and inside them, we'll add <li> tags, each listing a single month:

<ul>
  <li>Dec</li>
  <li>Nov</li>
  <li>Oct tight</li>
</ul>

Lists are very flexible and we can even nest lists inside of lists. If we wanted to add specific dates to a month, we could put a list inside of our Oct list item:

<ul>
  <li>Dec</li>
  <li>Nov</li>
  <li>Oct
    <ul>
      <li>17th</li>
      <li>18th</li>
    </ul>
  </li>
</ul>

Save your file, start up httpserver, and on the browser tab where you've got the server displaying our webpage, add /real-estate-listings.html to the end of the URL path to see our Listings page. In the browser, we'll see that ul produces a bulleted list on the page, and will display nested lists indented further from the left.

<ol>

The other type of list is the ordered list, which is written as <ol> instead of <ul>. Both use <li> tags inside, but this time, <ol> will display a numbered list instead of bullets:

<h3>Popular Listings</h3>
<ol>
  <li>348 Stockton St.</li>
  <li>3742 Belevadere Rd.</li>
  <li>41 Cleaton Ave.</li>
</ol>

View HTML Lists on Learn.co and start learning to code for free.

html-lists-re-coded-erbil-2018's People

Contributors

maxwellbenton avatar sophiedebenedetto avatar sarogers avatar danielseehausen avatar sumaya99 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.