NOTE:-All HTML Program Save One FOLDER in your Computer.
HTML headings :- Are defined with the <h1> to <h6> tags.
<html
<head>
<title>heading tags</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
output:-
<h1> headings should be used for main headings, followed by <h2> headings, then the less important <h3> ,and so on.
Q2:-What is Paragraph Tags?
Ans.The HTML <p> element defines a paragraph.
<html>
<body>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</html>
Output:-
Q3:-Subscript and Superscript tags?
Ans.
<html>
<head><title>create a sub and super scrip tag</title>
</head>
<body>
H<sup>2</sup><br><br>
H<sub>2</sub>
</body>
</html>
output:-
H2
H2
Note:- In this program used <br> tag.
- The <br> tag inserts a single line break.
- The <br>tag is an empty tag which means that it has no end tag.
- Comments can be used to hide content.
- This can be helpful if you hide content temporarily
- You can add comments to your HTML source by using the following syntax:
<!-- Write your comments here -->
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->
</body>
</html>
You clways restore the look of your document to the original contained in your current template.
</p>
</body>
</html>
#Pre Tag:-
The <pre> tag in HTML preserves spaces and line breaks, displaying text exactly as written in the code.
<pre> tag defines pre-text formating.
WAP:-
You clways restore the look of your document to the original contained in your current template.
</pre>
</body>
</html>
You can
easily change the formatting of selected text in the document text by choosing
a look for the selected text from the Quick Styles gallery on the Home tab. You
can also format text directly by using the other controls on the Home tab. Most
controls offer a choice of using the look from the current theme or using a
format that you specify directly.
Example
An unordered HTML list:
- Item
- Item
- Item
- Item
An ordered HTML list:
- First item
- Second item
- Third item
- Fourth item
HTML List Tags:-
Tag |
Description |
Defines an
unordered list |
|
Defines an
ordered list |
|
Defines a
list item |
|
Defines a
description list |
|
Defines a
term in a description list |
|
Describes
the term in a description list |
#Unordered HTML List
An unordered list starts with the <ul> tag. Each list
item starts with the <li> tag.
The list items will be marked with bullets (small black
circles) by default:
WAP Unorder list:-Three types of unorder list circle,square and disc....
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</html>
# Circle type
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</html>
#square type
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</html>
#Disc type
<html>
<body>
<li type="disc">Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</html>
#Ordered HTML List
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.Types of order list like 1,A,a,i,reversed alphabet ,start any number ect....
The list items will be marked with numbers by default:
1].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
2].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
3].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
4].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
5].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
6].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
7].
<html>
<body>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</html>
#HTML Description Lists
HTML also supports description lists.
The <dl> tag defines the description list,
the <dt> tag defines the term (name), and the <dd> tag
describes each term:
Example:
<html>
<body>
<dt>Computer</dt>
<dd>computer isa electronicdevice.</dd>
<dt>CPU</dt>
<dd>cpu is a central processing uni.</dd>
</dl>
</html>
#Sublists:-
<html>
<body>
<li>computer</li>
<li>hardware</li>
<li>software
<ol type="a">
<li>System software</li>
<li>Application softwarer</li>
</ol>
</li>
<li>CPU</li>
</ol>
</body>
</html>
Q9:-How you can change Text color,text size and face?
Ans:-Font is a tag that is used to change a text color size and face. Many types of font face are avaliable .WAP ............
<html>
<head>
<title>Change text color and size, face</title>
</head>
<body>
<font color="red" size="5%" face="arial">COMPUTER</font>
</body>
</html>
#HTML Symbols:-
<html>
<head>
<title>symbol and alphabets code available in internet</title>
</head>
<body>
<p>♦</p>
<p>♥</p>
<p> €</p>
<p> ∃;</p>
<p> ∑</p>
</body>
</html>
#Using Emojis in HTML
Emojis are characters or Emojis look like images, or
icons :- 😄 😍 💗 🗽 👮👯👰👱👲
helpful
ReplyDelete