Shivajirao Kadam Institute of Technology and Management (Atc), Indore
Shivajirao Kadam Institute of Technology and Management (Atc), Indore
Shivajirao Kadam Institute of Technology and Management (Atc), Indore
Presented by:
Guided by: Aashutosh Solanki
Prof. Chaitanya Das Enroll:
0875CS181004
HTML
BASICS
What is HTML?
HTML stands for Hyper Text Markup Language.
It is used to create web pages.
It is a platform independent language.
The HTML file is saved using the extension .html or .htm
HTML documents can be made in any text editor.
A web browser is used to view the pages created in HTML.
HTML Elements
HTML elements tell the browser how to display the content
An HTML element is defined by a start tag, some content, and an end tag
<html>
<body>
<h1> H1 </h1>
<h2> H2 </h2>
<h3> H3 </h3>
<h4> H4 </h4>
<h5> H5 </h5>
<h6> H6 </h6>
</body>
</html>
Paragraph Tag
<!DOCTYPE html>
:::OUTPUT:::
<html>
<body>
<h2>Grocery list</h2>
<ul>
<li>Bread</li>
<li>Eggs</li>
<li>Milk</li>
<li>Coffee</li>
</ul>
</body>
</html>
Tables
A table is an arrangement of data in rows and columns, or possibly in a more
complex structure.
Tables are useful for various tasks such as presenting text information and
numerical data.
An HTML table is defined with the “table” tag.
Each table row is defined with the “tr” tag.
A table header is defined with the “th” tag. Table headings are bold and centered.
A table data/cell is defined with the “td” tag.
• Example of a table
<!DOCTYPE html>
<html>
<body>
<table style="width:100%">
<tr>
<th>Firstname</th>
:::OUTPUT:::
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Aashutosh</td>
<td>Solanki</td>
<td>20</td>
</tr>
<tr>
<td>Lakshya</td>
<td>Solanki</td>
<td>16</td>
</tr>
<tr>
<td>Priya</td>
<td>Solanki</td>
<td>40</td>
</tr>
</table>
</body>
Advantages and Disadvantages
Advantages:
HTML is used to build a websites.
It is supported by all browsers.
It can be integrated with other languages like CSS, JavaScript etc.
Disadvantages:
HTML can create only static webpages so for dynamic web page other languages
have to be used.
Large amount of code has to be written to create a simple web page.
Security feature is not good.