test

Welcome to ITeS by Vikas

Go and check all the topics on ITeS

Welcome to ITeS by Vikas

Go and check all the topics of Skills

Welcome to ITeS by Vikas

Go and check all the topics of Computer

Welcome to ITeS by Vikas

Go and surf this website

Welcome to ITeS by Vikas

Go and surf this educational site designed for vocational education

Showing posts with label Web Development. Show all posts
Showing posts with label Web Development. Show all posts

Friday, 23 September 2022

How to Working with HTML Lists?

 HTML lists are used to present list of information in well-formed and semantic way. There are three different types of list in HTML and each one has a specific purpose and meaning.

1. Unordered list <ul>….</ul>

2. Ordered list <ol>……</ol>

3. Description list <dl>…..</dl>

1. HTML Unordered List :- An unordered list is a collection of related items that have no special order or sequence. This list is created by using HTML <ul> tag and each list item starts with the <li> element.. Each item in the list is marked with a bullet.

We can use type attribute for <ul> tag to specify the type of bullet you like. By default, it is a disc.

Following are the possible <ul> type options are −

<ul type = "square">

<ul type = "disc">

<ul type = "circle">

Example:-

<!DOCTYPE html>

<html>

<head><title>Use of Unordered list</title></head>

<body bgcolor="lightGreen" Text="Red">

<h2>Fruits Name</h2>

<ul type="square">

<li>Apple</li>

<li>Banana</li>

<li>Mango</li>

</ul>

<h2>Vagetables Name</h2>

<ul type="disc">

<li>Bringle</li>

<li>Ladyfinger</li>

<li>Potato</li>

</ul>

<h2>Books Name</h2>

<ul type="circle">

<li>ITeS</li>

<li>Hindi</li>

<li>English</li>

</ul>

</body>

</html>

2. HTML Ordered List :- If we are required to put our items in a numbered list instead of bulleted, then HTML ordered list will be used. This list is created by using <ol> tag and each list item starts with the <li> element.

We can use type attribute for <ol> tag to specify the type of numbering you like. By default, it is a number.

Following are the possible <ol> type options are:-

<ol type = "1"> - Default-Case Numerals.

<ol type = "I"> - Upper-Case Numerals.

<ol type = "i"> - Lower-Case Numerals.

<ol type = "A"> - Upper-Case Letters.

<ol type = "a"> - Lower-Case Letters.

Example:

<!DOCTYPE html>

<html>

<head><title>Use of ordered list elements</title></head>

<body>

<h2>Arts Subjects Name</h2>

<ol type="i">

<li>English</li>

<li>History</li>

<li>Pol Science</li>

</ol>

<h2>Commerce Subjects Name</h2>

<ol type="1">

<li>English</li>

<li>Accountancy</li>

<li>Business Studies</li>

</ol>

<h2>Science Subjects Name</h2>

<ol type="A">

<li>English</li>

<li>Chemistry</li>

<li>Physics</li>

</ol>

</body>

</html>

3. HTML Description Lists :- HTML supports a list style which is called definition lists where entries are listed like in a dictionary or encyclopedia. The definition list is the ideal way to present a glossary, list of terms, or other name/value list. This list is created without numbering and bulleted.

Definition List makes use of following three tags.

1. <dl> − Defines the start of the list

2. <dt> − A term

3. <dd> − Term definition

Example:

<!DOCTYPE html>

<html>

<head><title>Use of Definition list elements</title></head>

<body>

<dl>

<h2><dt>List of Fruits</dt></h2>

<dd>Apple</dd>

<dd>Mango</dd>

<dd>Banana</dd>

<dd>Pinepple</dd>

</dl>

</body>

</html>




What is HTML Text Formatting?

HTML Formatting is a process of formatting text for better look and feel. There are many formatting tags in HTML. These tags are used to make text bold, italicized, or underlined etc. These tags are used to provide the visual appearance to the text.

HTML contains several elements for defining text with a special meaning.

<b> - Bold text </b>

<strong> - Important text </strong>

<i> - Italic text </i>

<u> - Underlined text </u>

<mark> - Marked text <mark>

<small> - Smaller text <small>

<del> - Deleted text </del>

<ins> - Inserted text </ins>

<sub> - Subscript text </sub>

<sup> - Superscript text </sup>




How to add paragraph in HTML?

 A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph. The HTML <p> element defines a paragraph.

Example :-

<!DOCTYPE html>

<html>

<head>

<title>Using HTML Heading</title>

</head>

<body>

<p>This is a paragraph 1.</p>

<p>This is a paragraph. 2</p>

</body>

</html>




Thursday, 22 September 2022

What are the HTML Headings ?

The heading tag is used in HTML to define headings of a page. HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading.

Example :

<!DOCTYPE html>

<html>

<head>

<title>Using HTML Heading</title>

</head>

<body>

<h1>This is heading 1</h1>

<h2>This is heading 2</h2>

<h3>This is heading 3</h3>

<h4>This is heading 4</h4>

<h5>This is heading 5</h5>

<h6>This is heading 6</h6>

</body>

</html>



What is an attribute?

 An attribute is used to define the characteristics of an HTML element and is placed inside the element's opening tag. All attributes are made up of two parts − a name and a value.

1. The name is the property we want to set. For example, the paragraph <p> element in the example carries an attribute whose name is align, which you can use to indicate the alignment of paragraph on the page.

2. The value is what you want the value of the property to be set and always put within quotations. The below example shows three possible values of align attribute: left, center and right.

For Example :-

This example shows bgcolor or text is the name of attribute and “green” or “Red” is

Example (Alignment Program)

<!DOCTYPE html>

<html>

<head>

<title>Attribute Example</title>

</head>

<body bgcolor=”green” text=”red”>

<p align = "left">This is left aligned</p>

<p align = "center">This is center aligned</p>

<p align = "right">This is right aligned</p>

</body>

</html>




What is an HTML Element and tag?

 An HTML element is an individual component of an HTML document. It represents semantics, or meaning. An HTML element is defined by a start tag, some content, and an end tag. For Example:-

<tagname>Content goes here...</tagname>

There are two types of tags are used in HTML. They are:

1. Container tag

2. Empty Tag

1 Container Tag:- The HTML element is everything from the start tag to the end tag, these tags are called container tag. For Example:-

<h1>My First Heading</h1>

<p>My first paragraph.</p>

2 Empty Tag :- Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!

Answer:- An attribute is used to define the characteristics of an HTML element and is placed inside the element's opening tag. All attributes are made up of two parts − a name and a value.

1. The name is the property we want to set. For example, the paragraph <p> element in the example carries an attribute whose name is align, which you can use to indicate the alignment of paragraph on the page.

2. The value is what you want the value of the property to be set and always put within quotations. The below example shows three possible values of align attribute: left, center and right.

For Example :-

This example shows bgcolor or text is the name of attribute and “green” or “Red” is

Example (Alignment Program)

<!DOCTYPE html>

<html>

<head>

<title>Attribute Example</title>

</head>

<body bgcolor=”green” text=”red”>

<p align = "left">This is left aligned</p>

<p align = "center">This is center aligned</p>

<p align = "right">This is right aligned</p>

</body>

</html>

the value of attribute of <body>element.

For Example: <BR>, <Img>,<input>,<linl> <frame> Etc.




What is HTML?

HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages. HTML was created by Berners-Lee in late 1991. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML

4.01 version is widely used but currently we are having HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012.

1. Hypertext refers to the way in which Web pages (HTML documents) are linked together. Thus, the link available on a webpage is called Hypertext.

2. As its name suggests, HTML is a Markup Language which means we use HTML to simply "mark-up" a text document with tags that tell a Web browser how to structure it to display.

A Simple HTML Document Example

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

This is my first program in HTML

</body>

</html>

Example Explained

1. The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly. It must only appear once, at the top of the page. The <!DOCTYPE> declaration is not case sensitive.

2. The <html> element is the root element of an HTML page

3. The <head> element contains meta information about the HTML page

4. The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)

5. The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.