Learn HTML by Examples : 2nd Tutorial

Posted on:
tags: , , ,

The Second  HTML  Code:
<html>
<head>
            <title>INFORMATION TECHNOLOGY</title>
</head>
<body text="navy">
            <h2>My Second HTML code</h2>
            <h4>Syllabus</h4>
            <p>
            <ol>
                        <li>Web publication.
                        <li>Cyber law.
                        <li>E-Commerce.
                        <li value=7>HTML.
                        <li>JavaScript.
                        <li>Cyber security.
                        <li value=14>VBScript.
                        <li>DBMS.
            </ol>
            <ul>
                        <li>Web publication.
                        <li>Cyber law.
                        <li>E-Commerce.
            </ul>


</body>
</html>

The Output:

Example Explained
  • The text between <html> and </html> describes the web page
  • The text between <body text=”navy”> and </body> is the visible page content and content will be color with navy blue
  • The text between <title> and </title> describes the title of the web page
  • The text between <h2> and </h2> is displayed as a heading
  • The text between <h4> and </h4> is displayed as a heading
  • The text between <p> and </p> is displayed as a paragraph
  • The text between <ol> and </ol> is displayed as a ordered list used when the sequence of items is important.
  • The text between <li> and </li> is displayed as a list item
  • The text between <ul> and </ul> is displayed as a unordered list
Ordered list has three attributes<ol>:
1.    START: Change the start value of the list.
2.    TYPE: Set the numbering style to A,a,I,I,1.
3.    VALUE: The value of the list item in the ordered list can be changed at any point.  You can change the sequence by setting new value(As I did in the above code).

Unordered list has attributes <ul>:
<ul TYPE :’’CIRCLE/DISC/SQUARE”>
(above <ul> type is circle by default)

2 comments:

  1. y there is no close tag for list tag

    ReplyDelete
  2. because it doesnot require close tag... but you can give close tag and it will give output as it is.. there are more like this such as p paragragh...etc..

    ReplyDelete

< >