b) Write html code to generate following output. [15 Marks]
• Coffee
• Tea
o Black Tea
o Green Tea
• Milk
class 10 experts plz answer
Answers
Answered by
49
Answer:
<!DOCTYPE html>
<html>
<body>
<h4>An Unordered List:</h4>
<ul>
<li>Coffee</li>
<li>Tea</li>
<ul>
<li>Black Tea</li>
<li>Green Tea</li>
</ul>
<li>Milk</li>
</ul>
</body>
</html>
Explanation:
The <ul> tag defines an unordered (bulleted) list. while if you want number or order wise list than use <ol></ol> instead of <ul></ul>.
Answered by
19
Below are the code for the above question:
Explanation:
<HTML> <! –– HTML open tag ––>
<HEAD><TITLE>The list</TITLE></HEAD>
<BODY> <! –– BODY open tag ––>
<UL> <! –– LIST open tag ––>
<LI>Coffee</LI>
<LI>Tea</LI>
<LI type="circle">Black Tea</LI>
<LI type="circle">Green Tea</LI>
<LI>Milk</LI>
</UL> <! –– LIST close tag ––>
</BODY> <! –– BODY close tag ––>
</HTML> <! –– HTML close tag ––>
Output:
- The above code will render the output which is demand by the list.
Code Explanation:
- The above code is in html langauage which renders the output of list which is defined by the question by the help of unordered list.
- The type attributes is used to define the list type.
Learn More:
- HTML : https://brainly.in/question/15121796
Similar questions