0% found this document useful (0 votes)
4 views1 page

HTML Elements and Attributes Guide

The document outlines various HTML elements and their attributes, including <img> for embedding images, <table> for creating tables, and list elements like <ul> and <ol>. Key attributes such as src, alt, colspan, rowspan, and type are discussed for enhancing accessibility and formatting. It serves as a reference for understanding the structure and functionality of HTML elements.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

HTML Elements and Attributes Guide

The document outlines various HTML elements and their attributes, including <img> for embedding images, <table> for creating tables, and list elements like <ul> and <ol>. Key attributes such as src, alt, colspan, rowspan, and type are discussed for enhancing accessibility and formatting. It serves as a reference for understanding the structure and functionality of HTML elements.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<img>: Used to embed images in an HTML page.

Attributes discussed:

src: Specifies the path to the image.

alt: Provides alternative text for the image, crucial for accessibility and when
the image cannot be displayed.

width: Sets the width of the image.

height: Sets the height of the image.

<table>: Defines an HTML table.

<tr>: Defines a row in an HTML table.

<th>: Defines a header cell in an HTML table.

<td>: Defines a standard data cell in an HTML table.

Attributes discussed:

colspan: Specifies the number of columns a cell should span.

rowspan: Specifies the number of rows a cell should span.

<caption>: Provides a title or caption for an HTML table.

<thead>: Groups the header content in a table.

<tbody>: Groups the body content in a table.

<tfoot>: Groups the footer content in a table.

<br>: Inserts a single line break.

<ul>: Defines an unordered (bulleted) list.

Attribute discussed:

type: Specifies the style of the list item marker (e.g., square, circle, disc).

<ol>: Defines an ordered (numbered) list.

Attribute discussed:

type: Specifies the type of numbering (e.g., 1, a, A, i, I).

<li>: Defines a list item within an ordered or unordered list.

<dl>: Defines a definition list.

You might also like