14.Write a HTML code for creating a unordered list with the type as square and the heading of the unordered list should be scrolling in the screen.
Answers
Steps for creating an unordered list -
<html>
<head>
</head>
<body>
<ul>
<li>Content here<li>
<li>Content here<li>
<li>Content here<li>
<li>Content here<li>
<ul>
</body>
</html>
Don't forgert to use the "tab" key when needed
Answer:
Write a HTML code for creating a unordered list with the type as square and the heading of the unordered list should be scrolling in the screen.
Explanation:
HTML provides unordered, ordered, and definition list types.
Ordered lists are numbered in some fashion, while unordered lists are bulleted.
Definition lists consist of a term followed by its definition.
Both ordered and unordered lists require start and end tags as well as the use of a special element to indicate where each list item begins (the <LI> tag).
<LI> Tag: List Item <LI> is a singleton tag. It is a child element that is used to create a list item in an ordered list, unordered list, menu list, or directory list.
When an ordered list <OL> is used, the <LI> element will be rendered with a number. One can control that number’s appearance with the <TYPE> Attribute
<UL> Tag : Unordered List
Similarly, inside an unordered list < UL>, one can control the type of bullet; displayed with <TYPE>. VALUE = number changes the count of ordered lists as they progress.
To create an unordered list, you can put your content inside <UL> and </UL> tag. This creates an unordered list with bullets preceding each list item. Unordered lists can be preceded by anyone of several bullet styles; a closed circle, an open circle, or a square.
Attributes: Renders the list as compactly as possible by reducing line leading and spacing. TYPE (DISC | SQUARE | CIRCLE)
The type of bullet can be suggested with the <TYPE> attribute. The CIRCLE attribute value is used for a hollow bullet, the DISC type creates a solid bullet, and the SQUARE attribute value renders a solid block.
The default appearance for a list is with a disc.
You can use an optional </LI> end tag at the end of each list item.