Write an HTML program to display the following in an
unordered list (in largest size) in the following format. (set the
position of the text also)
• S
• SC
• SCH
• SCHO
• SCHOO
• SCHOOL
Answers
HTML stands for HyperText Markup Language. It is used for creation of webpages. It is a Markup Language and not a Programming language. HTML describes the structure of a website. HTML elements are also known as tags. HTML tells the browsers how to display the content.
⠀
Unordered Lists in HTML can be created with the <ul> tag.
⠀
HTML CŌDE:
<!DOCTYPE html>
<html>
<head>
<title>Brainly</title>
</head>
<body>
<ul>
<li>S</li>
<li>Sc</li>
<li>Sch</li>
<li>Scho</li>
<li>Schoo</li>
<li>School</li>
</ul>
</body>
</html>
The above code has been written in the <body> section of the HTML document.
⠀
The <ul> tag can take the attribute known as type, which specifies what kind of bullets do we want in the unordered list.
⠀
OUTPUT:
• S
• SC
• SCH
• SCHO
• SCHOO
• SCHOOL