Business Studies, asked by dhruvgoyal9474, 8 months ago

Write HTML code to display an ordered list (with uppercase roman numbers) listing any three subjects being taught in your school. The web page should have a red background and the title of the page should be ‘My Subjects’

Answers

Answered by BrainlyYoda
32

Answer:

<!DOCTYPE html>

<html>

<head>

<title>My Subjects</title>

</head>

<body bgcolor = "red">

<ol type = "I">

<li>Physics</li>

<li>Chemistry</li>

<li>Mathematics</li>

</ol>

</body>

</html>

This HTML code will give the desired display.

ol => Ordered List

HTML => Hyper Text MarkUp Language used to make static web pages.

Answered by poojan
10

Mark-up Language used: HTML

Code:

<html>

 <head><title>My Subjects</title></head>

 <body bgcolor="red">

   <ol type="I">

     <li>Html</li>

     <li>CSS</li>

     <li>Javascript</li>

   </ol>

 </body>

</html>

Output:

Have a look at the attachment given below.

Explanation:

Download the notepad file given below and save it with .html extension and run it to get the output.

  • The title tag is used to provide a title to your webpage.

  • The body tag represents the body of the page based on the code you have written between the <body> and </body> tags.

  • The attribute bgcolor within the body tag gives the assigned background color to the body of the web page. Here, we assigned red color to it.

  • In the body, ol tag represents that the elements placed within the open and closed tag should contain ordered elements. The attribute type represents what should be the representation of order. (Default representation starts with 1)

        type = "I" goes as I, II, III, and so on.

        type = "i" goes as i, ii, iii, and so on.

        type = "a" goes like a, b, c, and so on. Same with the cases of "A"/"1"

        So, we go by type = "I"

  • The li tag (list item) tag is used with ordered list tags, to represent the element in the list.

Learn more :

1. Constructing a table using HTML.

https://brainly.in/question/14751808

2.  Tags we mostly use for constructing a table in HTML.

brainly.in/question/7533033

Attachments:
Similar questions