I am creating a webpage using html and javscript I have the
I am creating a webpage using html and javscript. I have the html part done. When I click bulletPoints, it outputs the text \"I am red\" in color of red and \"i am blue\" in the color of blue onto the new, blank webpage. Each line of text must have a bullet point next to it. Here is my html code:
<tr>
<td> Entities</td>
<td> Outputs bullet point text</td>
<td> <button onclick=\"bulletPoints()\">text</button></td>
</tr>
Solution
This can go something like this:
<tr>
<td> Entities</td>
<td> Outputs bullet point text</td>
<td> <button onclick=\"bulletPoints()\">text</button></td>
</tr>
<script>
function bulletPoints(){
document.write(\"<ul><li>Unordered list item 1</li><li>Unordered list item 2</li><li>Unordered list item 3</li></ul>\");
}
