MVC

  • Home
  • HTML
    • Overview
    • Formatting
  • Java Script
    • Overview
    • Validation
  • CSS
    • Overview
  • Sql
    • Overview
    • SQL Select
    • SQL Command
    • Advance Query
    • SQL Create
    • Function
    • Function vs StoreProcedure
    • Stored Procedures
  • MVC
    • OverView
    • Evolution of MVC
    • Install VisualStudio-2015
    • Create First Application
  • LINQ
    • Introduction
  • Privacy Policy

Saturday, 6 May 2017

Ordered and Unordered list in Html

  Unknown       10:45       HtmlOverview       No comments    

Types of list in html


We define any defination and content in list form then we give order and unorder. Basically 3 types of list use in-
Unorder list
Order list
Defination list

Unordered list


An unordered The list items are marked with bullets (typically small black circles). An unordered list is a list of items. This list starts with the <ul> tag. Every list item starts with the <li> tag.
Example
<!DOCTYPE html>
<html>
<body>
<ul>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</u1>
</body>
</html>
Output-
.List 1
.List 2
.List 3

Ordered list


An ordered list is also a list of items. The list items are Started with numbers. This ordered list starts with the <ol> tag. Every list item starts with the <li> tag.
Example
<!DOCTYPE html>
<html>
<body>
<ol>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</o1>
</body>
</html>

Output-
1. List 1
2. List 2
3. List 3

Definition Lists


A definition list is a list of items (terms), with a description of every item (term).It is not a list of items.
A definition list starts with a <dl> tag (definition list).
Every term starts with a <dt> tag (definition term).
Each description starts with a <dd> tag (definition description).
Example
<!DOCTYPE html>
<html>
<body>
<dl>
<dt>List 1</dt>
<dd>This is List1</dd>
<dt>List 2</dt>
<dd>This is List2</dd>
<dt>List 3</dt>
<dd>This is List3</dd>
</d1>
</body>
</html>

Output-
List 1
This is List1
List 2
This is List2
List 3
This is List3

Forms


HTML Forms are used to select different kinds of user input we describe many input.
Html formis defined with <form> tag
In this tag you can use many input tag like text box, drop down and radio button etc. Use form tag and write any content in between form tag then only show content rather then form tag because form tag is not visible user only hold content and input type.
Ex.
   <form>
         Write content
   </form>

Write Input element

Html language support many input element like-

Text Field


Text fields are used when you want the user to type Word, numbers, any content etc. in a form.Then use this text field like-
Example
<!DOCTYPE html>
<html>
<body>
<form >
Name:
<input type="text" id="txtname" name="name" /> </form >
</body>
</html>

Output-

  Name:


Radio Buttons


Radio Buttons are used when you want the user to select one of choices. It's called single selection.
Example
<!DOCTYPE html>
<html>
<body>
<form >
<input type="radio" name="sex" value="male" /> Male
<input type="radio" name="sex" value="Female" /> FeMale
</form >

</body>
</html>
Output- Male Female

Checkboxes


Use checkbox for multiple selection. Checkboxes are used when you want the user to select one or more options of choices.
Example
<!DOCTYPE html>
<html>
<body>
<form >
<input type="checkbox" name="Hobby" value="Dancing" /> Dancing
<input type="checkbox" name="Hobby" value="Singing" /> Singing
<input type="checkbox" name="Hobby" value="Cooking" /> Cooking
<input type="checkbox" name="Hobby" value="Gardning" /> Gardning
</form >

</body>
</html>
Output-Dancing SingingcookingGardening

Drop Down

It is use single select of multi list.In his drop down list we define many options value in the list.
Example
<!DOCTYPE html>
<html>
<body>
<form >
<select name="hobbies"> <option value="0">Select </option> <option value="1">Dancing </option> <option value="2">Singing </option> <option value="3">Cycling </option> </select< </form >

</body>
</html>
Output-
Example
<!DOCTYPE html>
<html>
<body>
<form >
<input type="checkbox" name="Hobby" value="Dancing" /> Dancing
<input type="checkbox" name="Hobby" value="Singing" /> Singing
<input type="checkbox" name="Hobby" value="Cooking" /> Cooking
<input type="checkbox" name="Hobby" value="Gardning" /> Gardning
</form >

</body>
</html>
 Output-
    

Label


Label = Label is also a control.It is used to dispaly any content.
It is denoted by <label>
<label for="lable1"> Label </label>
Output

Textarea

This is another control it is input type control and multiline textbox . This field is editable and denoted this tag
<textarea >

Button


Button control in html we use button for fire a event then use and save data on click this button then we use button.
<input type="button" value="button" />
<input type="submit" value="submit" />
Output-
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
Email This BlogThis! Share to X Share to Facebook
Newer Post Older Post Home

0 comments :

Post a Comment

learningmvctutorial

Popular Posts

  • Difference Between function v/s store procedure
    Definition  of Store Procedure In a database management system (DBMS), a  stored procedure  is a set of Structured Query Language (SQL...
  • Overview of HTML
    What is HTML? First developed by Tim Berners-Lee in 1990 . HTML is used to create electronic documents (called pages) that are displ...
  • What is LINQ
    LINQ  (Language Integrated Query) is a Microsoft programming model and methodology that essentially adds formal query capabilities into Mic...
  • What is Function in Sql Server
    A function is a block of code that has a name and it has a property that it is reusable. We use function in store Procedure and queries in...
  • About Javascript
    What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting langua...
  • Overview
      SQL (Structured Query Language)   SQL  is a language that interacts with the database on the server-side. This dynamite duo has changed ...
  • Create Duplicate Table of existing table in SQL Server
    In This Tutorial we create table and want to same structure and same data then We create new table with data type after that  insert in ta...
  • Operator in JavaScript
    What is an operator? JavaScript has both binary and unary operators, and one special ternary operator, the conditional operator. A binar...
  • Create First Application in MVC
    We want to create Firstly application in MVC first of how we create first application Show Steps   as below-     STEP 1 .  Start Computer ...
  • Advantage and Disadvantage of LINQ
    Advantages Faster development Unit of work pattern (context) Auto-generated domain objects that are usable small projects Lazy loadin...

Blog Archive

  • ▼  2017 ( 35 )
    • ►  November ( 1 )
    • ►  October ( 2 )
    • ►  September ( 4 )
    • ►  August ( 1 )
    • ►  July ( 1 )
    • ▼  May ( 3 )
      • CSS Selectors
      • Types of CSS
      • Ordered and Unordered list in Html
    • ►  April ( 7 )
    • ►  March ( 13 )
    • ►  February ( 3 )
Powered by Blogger.

Categories

  • AdvanceQuery
  • CreateApplication
  • CreateDb
  • CssOverview
  • Evolution
  • Formatting
  • Function
  • FunctionVSSp
  • HtmlOverview
  • InstallVisualStudio
  • Introduction
  • javascriptOverview
  • JsValidation
  • Mvc-vs-Asp.Net
  • OverView
  • Select
  • SqlCommand
  • SQLOverview
  • StoredProcedures

Text Widget

Sample Text

Pages

  • Home

Copyright © MVC | Powered by Blogger
Design by Vibha Acharya