0% found this document useful (0 votes)
3 views2 pages

HTML Features Class10

The document provides examples of various HTML features including headings, paragraphs, links, images, lists, tables, and forms. Each feature is accompanied by code snippets and their corresponding output. This serves as a practical guide for understanding basic HTML elements and their usage.

Uploaded by

amaniasafdar.180
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

HTML Features Class10

The document provides examples of various HTML features including headings, paragraphs, links, images, lists, tables, and forms. Each feature is accompanied by code snippets and their corresponding output. This serves as a practical guide for understanding basic HTML elements and their usage.

Uploaded by

amaniasafdar.180
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HTML Features with Code and Output

Headings
Code:

<h1>Main Heading</h1>
<h3>Sub Heading</h3>

Output:

Main Heading
Sub Heading

Paragraph & Formatting


Code:

<p>This is a <b>bold</b> and <i>italic</i> text.</p>

Output:

This is a bold and italic text.

Link
Code:

<a href="[Link] here</a>

Output:

Click here (link)

Image
Code:

<img src="[Link] alt="Sample">

Output:

Sample image will appear here


List
Code:

<ul>
<li>Apple</li>
<li>Mango</li>
</ul>

Output:

- Apple
- Mango

Table
Code:

<table border="1">
<tr><th>Name</th><th>Age</th></tr>
<tr><td>Ali</td><td>15</td></tr>
<tr><td>Sara</td><td>16</td></tr>
</table>

Output:

Name | Age
Ali | 15
Sara | 16

Form
Code:

<form>
Name: <input type="text"><br>
Email: <input type="email"><br>
<input type="submit" value="Submit">
</form>

Output:

Name: [____]
Email: [____]
[Submit]

You might also like