Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Tuesday, 7 March 2023

March 07, 2023

HTML List

 

HTML Lists

HTML Lists are used to specify lists of information. All lists may contain one or more list elements. There are three different types of HTML lists:

  1. Ordered List or Numbered List (ol)
  2. Unordered List or Bulleted List (ul)
  3. Description List or Definition List (dl)

HTML Ordered List or Numbered List

In the ordered HTML lists, all the list items are marked with numbers by default. It is known as numbered list also. The ordered list starts with <ol> tag and the list items start with <li> tag.

HTML Unordered List or Bulleted List

In HTML Unordered list, all the list items are marked with bullets. It is also known as bulleted list also. The Unordered list starts with <ul> tag and list items start with the <li> tag.

HTML Description List or Definition List

HTML Description list is also a list style which is supported by HTML and XHTML. It is also known as definition list where entries are listed like a dictionary or encyclopedia.

The definition list is very appropriate when you want to present glossary, list of terms or other name-value list.

The HTML definition list contains following three tags:

  1. <dl> tag defines the start of the list.
  2. <dt> tag defines a term.
  3. <dd> tag defines the term definition (description).

HTML Nested List

A list within another list is termed as nested list. If you want a bullet list inside a numbered list then such type of list will called as nested list.

Example:
Order List Program:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                                                   <ol type=1>

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ol>

                                                   <ol type="I">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ol>

                                                   <ol type="i">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ol>

                                                  <ol type="A">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ol>

                                                   <ol type="a">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ol>

                                                  <ol type="A" start="3">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ol>

                                 

                </body>

</html>

Unorder List Program:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                                             <ul>

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ul>

                                                   <ul type="circle">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ul>

                                            <ul type="disc">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ul>

                                                 

                                                  <ul type="square">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ul>

                                              <ul type="none">

                                                       <li>India</li>

                                                                   <li>America</li>

                                                                   <li>France</li>

                                                                   <li>Itly</li>

                                                                   <li>Japan</li>

                                                  </ul>

                 </body>

</html>

Nested List Program:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                                    <ol>

                                                  <li>India

                                                           <ol>

                                                                  <li>Agra</li>

                                                                    <li>Mumbai</li>

                                                                    <li>Chennai</li>

                                                                    <li>Delhi</li>

                                                           </ol>

                                                  </li>

                                                   <li>America</li>

                                                     <li>France</li>

                                                    <li>Itly</li>

                                                       <li>Japan</li>

                                    </ol>

                             </body>

</html>

Definition List Program:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

            <dl>

                                <dt>Html:-</dt>

                     <dd> HTML is an markup language that is used to create webpage or website </dd>

                     <dt>CSS:-</dt>

                      <dd> CSS is an markup language that is used to create webpage or website</dd>

                        <dt>MS Access:-</dt>

                   <dd> MS Access is an markup language that is used to create webpage or website  </dd>

             </dl>

                </body>

</html>





March 07, 2023

HTML BDO(Bidirectional) Tag

 

HTML <bdo> tag

HTML <bdo> tag stands for "bidirectional override" which is used to overrides the current/default text direction. This tag sets the direction of content within it to render on browser from left to right or right to left.

The <bdo> tag is useful for the languages which are written from right to left such as Arabic and Hebrew.

Syntax

  1. <bdo dir=" "> Content......</bdo>  

Example:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                            <center>

                                    <bdo dir="rtl"> Rajneesh</bdo><br>

                                    <bdo dir="ltr"> Rajneesh</bdo>

                                 </center>

              </body>

</html>




March 07, 2023

HTML Anchor Tag

 

HTML Anchor

The HTML anchor tag defines a hyperlink that links one page to another page. It can create hyperlink to other web page as well as files, location, or any URL. The "href" attribute is the most important attribute of the HTML a tag. and which links to destination page or URL.

href attribute of HTML anchor tag

The href attribute is used to define the address of the file to be linked. In other words, it points out the destination page.

The syntax of HTML anchor tag is given below.

<a href = "..........."> Link Text </a>

Let's see an example of HTML anchor tag.

Example:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                                <ul>

                        <li><a href="dca.html" align="center" target="_blank">DCA Course</a></li>

               <li><a href="pgdca.html" align="center" target="_blank">PGDCA Course</a></li>

                          </ul>

                                  <a href="http://www.google.com">Visit Google</a></br>

                                    <a href="#"> About Me</a><br>

                                <center>

           <a href="http://www.google.com"><img src="1.jpg" height="500" width="500"></a>

                                </center>

                </body>

</html>

Hyper Link on Same Page:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

          <center>

                   <h2>Use of the hyperlink</h2>

                   <a href="#raj"><h1>About Me</h1></a>

                   </center>

                   <br><br><br><br><br><br><br><br><br><br><br><br><br><br>

                   <br><br><br><br><br><br><br><br><br><br><br><br><br><br>

                   <br><br><br><br><br><br><br><br><br><br><br><br><br><br>

         <a name="raj">

 Hello this is Rajneesh Shrivastava from indore i did M.PhilCS and i am a Teacher mentor and Motivator Coach.Hello this is Rajneesh Shrivastava from indore i did M.PhilCS and i am a Teacher mentor and Motivator Coach

         </a> 

          </body>

</html>

________________________________________________________________

                     
                       









March 07, 2023

HTML Font Tag

 

HTML <font> tag:

HTML <font> tag is used to define the font style for the text contained within it. It defines the font size, color, and face or the text in an HTML document.

Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p><font size="1" color="red" face="monotype corsiva">Rajneesh</font><br>
              <font size="2" color="red" face="Timesnew Roman">Rajneesh</font><br>
              <font size="3" color="red" face="vardana">Rajneesh</font><br>
              <font size="4" color="red" face="comic sans MS">Rajneesh</font><br>
              <font size="5" color="red" face="impact">Rajneesh</font><br>
             <font size="6" color="red" face="Arial">Rajneesh</font><br>
             <font size="7" color="red" face="monotype corsiva">Rajneesh</font><br>
      </p>
</body>
</html>






March 07, 2023

HR and BR Tag

HTML hr tag

HTML <hr> tag is used to specify a paragraph-level thematic break in HTML document. It is used when you abruptly change your topic in your HTML document. It draw a horizontal line between them. It is also called a Horizontal Rule in HTML.

HR tag is used to draw a horizontal line within the texts to separate content.

HTML <br> tag

The <br> tag in HTML document is used to create a line break in a text.

It is generally used in poem or address where the division of line is necessary. It is an empty tag, which means it does not need a company of end tag. If you place the <br> tag in the HTML code, then it works the same as pressing the enter key in a word processor.

Example:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                    

                                 <center>

                                   <hr color="red">

                                      <p> This is Raj from jaipur <br>

                                              i like to play cricket    <br>

                                              i like to watch movie  <br>

                                      </p>

                                   <hr color="red">

                                 </center>

                </body>

</html>


 

Full Form of IT and ITes Industry

                                                 Full Form (IT and ITeS) ICT - Information Communication Technology IT - Information Tec...