HTML
HTML
• The essential tags that are required to create a HTML document are:
• <HTML>.............</HTML>
• <HEAD>.............
• <TITLE>….. </TITLE>
• </HEAD>
• <BODY>.............</BODY>
STRUCTURE OF HTML
• <HTML>
• <HEAD>
• .............
• .............
• .............
• </HEAD>
• <BODY>
• .............
• .............
• .............
• </BODY>
• </HTML>
FOLLOW THE STEPS TO CREATE AND VIEW IN
BROWSER
• Step-1: Open VS code
• Step-2: Enter the following lines of code:
• <HTML>
• <HEAD>
• <TITLE>
• My first Page
• </TITLE>
• </HEAD>
• <BODY>
• WELCOME TO MY FIRST WEB PAGE
• </BODY>
• </HTML>
SAVING AND VIEWING HTML DOCUMENT
• The <marquee> tag in HTML is used to create scrolling text or image in a webpages. It
scrolls either from horizontally left to right or right to left, or vertically top to bottom or
bottom to top.
<marquee>
<--- contents --->
</marquee>
HTML TEXT FORMATTING
• HTML contains several elements for defining text with a special meaning.
• Example:
This text is bold
This text is italic
This is subscript and superscript
HTML FORMATTING ELEMENTS
• HTML tables allow web developers to arrange data into rows and columns.
• A table in HTML consists of table cells inside rows and columns.
• Table tags
Each table cell is defined by a <td> and a </td> tag.
Each table row starts with a <tr> and ends with a </tr> tag.
Sometimes you want your cells to be table header cells. In those cases use the <th> tag
instead of the <td> tag
HTML TABLES
<table>
<tr>
<th>Person 1</th>
<th>Person 2</th>
<th>Person 3</th>
</tr>
<tr>
<td>Emil</td>
<td>Tobias</td>
<td>Linus</td>
</tr>
<tr>
<td>16</td>
<td>14</td>
<td>10</td>
</tr>
</table>