HTML COLORS & LISTS


<html>
<head>
<title>My First Webpage</title>
</head>
<body bgcolor="#EDDD9E">
<h1 align="center">My First Webpage</h1>
<p>Welcome to my <strong>first</strong> webpage. I am writing this page using a text editor and plain old html.</p>
<p>By learning html, I'll be able to create web pages like a pro....<br>
which I am of course.</p>
Here's what I've learned:
<ul>
<li>How to use HTML tags</li>
<li>How to use HTML colours</li>
<li>How to create Lists</li>
</ul>
</body>
</html>





QUESTIONS

1.  Explain about the HTML code above.
    
    <html> - defines the root of an HTML document
    <head> - defines information about the document
    <title> - defines a title for the document
    <body> - defines the document's body
    <h1> - defines HTML headings
    <p> - defines a paragraph
    <br> - defines a single line break
    <li> - defines a list item
    <ul> - defines an unordered list

2. Change the given HTML code by using an ordered list tags.
    
    <html>
    <head>
    <title>My First Webpage</title>
    </head>
    <body bgcolor="#EDDD9E">
    <h1 align="center">My First Webpage</h1>
    <p>Welcome to my <strong>first</strong> webpage. I am writing this page
    using a text editor and plain old html.</p>
    <p>By learning html, I'll be able to create web pages like a pro....<br>
    which I am of course.</p>
    Here's what I've learned:
    <ol>
    <li>How to use HTML tags</li>
    <li>How to use HTML colours</li>
    <li>How to create Lists</li>
    </ol>
    </body>
    </html>


3. List 10 colours HEX value in HTML codes.
  • black - #000000
  • gray - #736F6E
  • navy blue - #000080
  • turquoise - #43C6DB
  • green apple - #4CC417
  • cream - #FFFFCC
  • caramel - #C68E17
  • mocha - #493D26
  • red - #FF0000
  • rose - #E8ADAA
4. Provide a HTML code for definition lists.

    <html>
    <head>
    <title>My First Webpage</title>
    </head>
    <body bgcolor="#EDDD9E">
    <h1 align="center">My First Webpage</h1>
    <p>Welcome to my <strong>first</strong> webpage. I am writing this page
    using a text editor and plain old html.</p>
    <p>By learning html, I'll be able to create web pages like a pro....<br>
    which I am of course.</p>
    Here's what I've learned:
    <dl>
    <dt>How to use HTML tags</dt>
    <dd>How to use HTML colours</dd>
    <dt>How to create Lists</dt>
    </dl>
    </body>
    </html>


Comments

Popular posts from this blog