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

Chapter 6

Uploaded by

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

Chapter 6

Uploaded by

jauhar420
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BASICS OF HTML

CHApTer-6
Q1 – What are the types of list elements? Write down their syntaxes.
Ans – Numbered List (Ordered List) Displays items in a sequentially numbered order.
1. First item
2. Second item
3. Third item
Bulleted List (Unordered List) Displays items with bullet points instead of numbers.
- First item
- Second item
- Third item

Q2 – Give an example of how can you add an image in an HTML web page.
Ans - <img src="image.jpg" alt="Description of the image" width="500" height="300">
src="image.jpg": Specifies the path to the image file.
alt="Description of the image": Provides alternative text if the image cannot be
displayed.
width and height: Set the dimensions of the image in pixels.

Q3 – Explain the use of the ALIGN and VALIGN attributes.


Ans – ALIGN Attribute
Use: Specifies the horizontal alignment of an element, such as images or text within
tables. Values are left, right and center.

VALIGN Attribute

Use: Specifies the vertical alignment of content within table cells or other elements.
Values are top, bottom and middle.
Q4 – How can you create a table in an HTML document using the various attributes
available?
Ans - <table>: Creates the table.
<caption>: Adds a title.
<thead>: Groups header rows.
<tbody>: Groups body rows.
<tr>: Defines a row.
<th>: Defines a header cell.
<td>: Defines a data cell.

Q5 – What is hyperlinking? How does a hyperlink appear in a web page?


Ans - Hyperlinking connects one page to another. It appears as clickable text or images.
Example: <a href="https://www.example.com">Click here</a>
<a>: Creates the link.
href: Specifies the target URL.

You might also like