{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/freecodecamp/frontend/html/fcc-challenge-26-create-an-ordered-list/","result":{"data":{"site":{"siteMetadata":{"title":"Be Brav3"}},"markdownRemark":{"id":"9ee37087-5589-590c-a93f-8c2745b6e45a","excerpt":"Free Code Camp Challenge 26 is very similar to the last challenge. Instead of unordered lists, we’re creating an ordered list. HTML has a special element for…","html":"<p><a href=\"https://www.freecodecamp.com/challenges/create-an-ordered-list\">Free Code Camp Challenge 26</a> is very similar to the last challenge. Instead of unordered lists, we’re creating an ordered list.</p>\n<blockquote>\n<p>HTML has a special element for creating ordered lists, or numbered-style lists.</p>\n<p>Ordered lists start with a [html]<ol>[/html] element. Then they contain some number of [html]<li>[/html] elements.</p>\n<p>For example:</p>\n<p>[html]</p>\n</blockquote>\n<blockquote>\n<ol>\n</blockquote>\n<blockquote>\n<li>Garfield</li>\n</blockquote>\n<blockquote>\n<li>Sylvester</li>\n</blockquote>\n<blockquote>\n</ol>\n</blockquote>\n<blockquote>\n<p>[/html]</p>\n<p>would create a numbered list of “Garfield” and “Sylvester”.</p>\n<p>Create an ordered list of the top 3 things cats hate the most. </p>\n</blockquote>\n<p>The original code is below:</p>\n<p>[html]</p>\n<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">\n  \n<style>\n    \n.red-text {\n      \ncolor: red;\n    \n}\n<p>h2 {</p>\n<p>font-family: Lobster, Monospace;</p>\n<p>}</p>\n<p>p {</p>\n<p>font-size: 16px;</p>\n<p>font-family: Monospace;</p>\n<p>}</p>\n<p>.thick-green-border {</p>\n<p>border-color: green;</p>\n<p>border-width: 10px;</p>\n<p>border-style: solid;</p>\n<p>border-radius: 50%;</p>\n<p>}</p>\n<p>.smaller-image {</p>\n<p>width: 100px;</p>\n<p>}</p>\n</style>\n<h2 class=\"red-text\">CatPhotoApp</h2>\n<p>Click here for <a href=\"#\">cat photos</a>.</p>\n<p><a href=\"#\"><img class=\"smaller-image thick-green-border\" alt=\"A cute orange cat lying on its back. \" src=\"https://bit.ly/fcc-relaxing-cat\"></a></p>\n<p>Things cats love:</p>\n  \n<ul>\n    \n<li>cat nip</li>\n    \n<li>laser pointers</li>\n    \n<li>lasagna</li>\n  \n</ul>\n  \n<p>Top 3 things cats hate:</p>\n  \n[/html]\n<p>The updated code below has the added ordered list:</p>\n<p>[html highlight=”41-45″]</p>\n<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">\n  \n<style>\n    \n.red-text {\n      \ncolor: red;\n    \n}\n<p>h2 {</p>\n<p>font-family: Lobster, Monospace;</p>\n<p>}</p>\n<p>p {</p>\n<p>font-size: 16px;</p>\n<p>font-family: Monospace;</p>\n<p>}</p>\n<p>.thick-green-border {</p>\n<p>border-color: green;</p>\n<p>border-width: 10px;</p>\n<p>border-style: solid;</p>\n<p>border-radius: 50%;</p>\n<p>}</p>\n<p>.smaller-image {</p>\n<p>width: 100px;</p>\n<p>}</p>\n</style>\n<h2 class=\"red-text\">CatPhotoApp</h2>\n<p>Click here for <a href=\"#\">cat photos</a>.</p>\n<p><a href=\"#\"><img class=\"smaller-image thick-green-border\" alt=\"A cute orange cat lying on its back. \" src=\"https://bit.ly/fcc-relaxing-cat\"></a></p>\n<p>Things cats love:</p>\n  \n<ul>\n    \n<li>cat nip</li>\n    \n<li>laser pointers</li>\n    \n<li>lasagna</li>\n  \n</ul>\n  \n<p>Top 3 things cats hate:</p>\n  \n<ol>\n  \n<li>mice</li>\n  \n<li>dogs</li>\n  \n<li>dirt</li>\n  \n</ol>\n  \n[/html]","frontmatter":{"title":"FCC Challenge 26: Create an Ordered List","date":"March 10, 2016","description":null}}},"pageContext":{"slug":"/blog/freecodecamp/frontend/html/fcc-challenge-26-create-an-ordered-list/","previous":{"fields":{"slug":"/blog/freecodecamp/frontend/html/fcc-challenge-25-create-a-bulleted-unordered-list/"},"frontmatter":{"title":"FCC Challenge 25: Create a Bulleted Unordered List"}},"next":{"fields":{"slug":"/blog/selenium/locating-a-webelement-for-selenium-webdriver-with-firebug/"},"frontmatter":{"title":"Locating a WebElement for Selenium WebDriver With Firebug"}}}}}