The <ul> tag is used to define unorder list.This tag is used when we want to create ordered bulleted lists in a webpage document.To Create a unordered list We Use the <ul> tag together with the <li> tag.This tag is generally use to create dropdown menu,navigations bars etc.This tag is used to give special design to a webpage When we use it with css.
We put <li> tag inside the <ul> tag and inside different <li> tags we put different list items.When we want to create a ordered list we have to use <ol> tag that stand for ordered list. In <ul> tag we can define inline css by using <style> tag.

You can understand use of <ul> tag by a simple example:-

e.g.

<!DOCTYPE html>
<html>
<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>


Result:-
  • Coffee
  • Tea
  • Milk


Conclusion:--

So the <ul> tag is used to define unordered list inside a webpage.

<ul> tag का उपयोग unordered लिस्ट बनाने के लिए किया जाता है unordered लिस्ट में item के आगे नंबर ना होकर बुलेट्स(bullets) का उपयोग किया जाता है


0 comments:

Post a Comment