Computer Science, asked by adityarana1, 1 year ago

about HTML and its function and draw a HTML table

Answers

Answered by ddigvijaysingh24
0

Answer:

form of HTML is hypertext markup language

Answered by Anonymous
12

\huge\bold\orange{HTML}

HTML stands for Hyper Text Markup Language.

▪︎Hyper text is simply a piece of text which contains links to other texts whereas Markup language is a way of writing style and layout information within a text document.

\Large\underline\bold\purple{Functions\:of\:HTML}

1. Web pages development

2. Web document Creation

3. Internet navigation

4. Cutting edge feature

5. Responsive images on web pages

6. Game development usage

\small\underline\bold\orange{How\:to\:create\:table\:on\:HTML}

HTML table allows you to arrange data into rows and columns. They are commonly used to display tabular data like product listings, customer's details, financial reports, and so on.

You can create a table using the <table> element. Inside the <table> element, you can use the <tr> elements to create rows, and to create columns inside a row you can use the <td> elements. You can also define a cell as a header for a group of table cells using the <th> element.

The following example demonstrates the most basic structure of a table.

&lt;!DOCTYPE html&gt;</p><p>&lt;html lang="en"&gt;</p><p>&lt;head&gt;</p><p>    &lt;title&gt;HTML Table with Collapsed Borders&lt;/title&gt;</p><p>    &lt;style&gt;</p><p>        table {</p><p>            border-collapse: collapse;</p><p>        }</p><p>        table, th, td {</p><p>            border: 1px solid black;</p><p>        }</p><p>        th, td {</p><p>            padding: 10px;</p><p>        }</p><p>        th {</p><p>            text-align: left;</p><p>        }</p><p>    &lt;/style&gt;</p><p>&lt;/head&gt;</p><p>&lt;body&gt;</p><p>    &lt;h2&gt;Table with Collapsed Borders&lt;/h2&gt;</p><p>    &lt;table&gt;</p><p>        &lt;tr&gt;</p><p>            &lt;th&gt;No.&lt;/th&gt;</p><p>            &lt;th&gt;Name&lt;/th&gt;</p><p>            &lt;th&gt;Age&lt;/th&gt;</p><p>        &lt;/tr&gt;</p><p>        &lt;tr&gt;</p><p>            &lt;td&gt;1&lt;/td&gt;</p><p>            &lt;td&gt;Peter Parker&lt;/td&gt;</p><p>            &lt;td&gt;16&lt;/td&gt;</p><p>        &lt;/tr&gt;</p><p>        &lt;tr&gt;9. Game development usage</p><p>            &lt;td&gt;2&lt;/td&gt;</p><p>            &lt;td&gt;Clark Kent&lt;/td&gt;</p><p>            &lt;td&gt;34&lt;/td&gt;</p><p>        &lt;/tr&gt;</p><p>        &lt;tr&gt;</p><p>            &lt;td&gt;3&lt;/td&gt;</p><p>            &lt;td&gt;Harry Potter&lt;/td&gt;</p><p>            &lt;td&gt;11&lt;/td&gt;</p><p>        &lt;/tr&gt;</p><p>    &lt;/table&gt;</p><p>&lt;/body&gt;</p><p>&lt;/html&gt;

\huge\underline{\underline{\texttt{\purple{C}\blue{O}\green{D}\pink{E}}}}

<!DOCTYPE html>

<html lang="en">

<head>

<title>HTML Table with Collapsed Borders</title>

<style>

table {

border-collapse: collapse;

}

table, th, td {

border: 1px solid black;

}

th, td {

padding: 10px;

}

th {

text-align: left;

}

</style>

</head>

<body>

<h2>Table with Collapsed Borders</h2>

<table>

<tr>

<th>No.</th>

<th>Name</th>

<th>Age</th>

</tr>

<tr>

<td>1</td>

<td>Peter Parker</td>

<td>16</td>

</tr>

<tr>9. Game development usage

<td>2</td>

<td>Clark Kent</td>

<td>34</td>

</tr>

<tr>

<td>3</td>

<td>Harry Potter</td>

<td>11</td>

</tr>

</table>

</body>

</html>

Similar questions