Web Page
Web Page
Web development
Structure of a website
• website is mostly made up of
numerous webpages. These webpages
are HTML documents that are stored in
a directory on a domain. The domain
should not be confused with the
website. The domain is the internet
address via which the content of the
website can be called up.
• HTML is not a programming language
but a page description language:
• In the code, it is defined which element is
to be displayed at which point. This
means in the design of a website, there is
not a picture used for the entire site,
rather it is defined in the code how the
font, the colors and, of course, possible
pictures or videos are to be arranged –
depending on what device is being used
(e.g. desktop computer or smartphone)
to access it.
HTML
• HTML stands for HyperText Markup
Language.
• HTML is used to create web pages and
web applications.
• HTML is widely used language on the
web.
• We can create a static website by HTML
only.
HTML text Editors
• <img src="E:/images/
animal.png" height="180" width="300" alt="anima
l image">
Use <img> tag as a link
• We can also link an image with other page or we
can use an image as a link. To do this, put <img>
tag inside the <a> tag.
• Example:
• <a href="https://www.javatpoint.com/what-is-
robotics"><img src="robot.jpg" height="100" widt
h="100"></a>
HTML Table
• HTML table tag is used to display data in tabular form
(row * column). There can be many columns in a row.
• We can create a table to display data in tabular form,
using <table> element, with the help of <tr> , <td>,
and <th> elements.
• In Each table, table row is defined by <tr> tag, table
header is defined by <th>, and table data is defined by
<td> tags.
• HTML tables are used to manage the layout of the page
e.g. header section, navigation bar, body content, footer
section etc. But it is recommended to use div tag over
table to manage the layout of the page .
Tag Description
<table> It defines a table.
<tr> It defines a row in a table.
<th> It defines a header cell in a table.
<td> It defines a cell in a table.
<caption> It defines the table caption.
<colgroup> It specifies a group of one or more
columns in a table for formatting.
<col> It is used with <colgroup>
element to specify column
properties for each column.
<tbody> It is used to group the body
content in a table.
<thead> It is used to group the header
content in a table.
<tfooter> It is used to group the footer
content in a table.
Example
• <table>
• <tr><th>First_Name</th><th>Last_Name</
th><th>Marks</th></tr>
• <tr><td>Sonoo</td><td>Jaiswal</
td><td>60</td></tr>
• <tr><td>James</td><td>William</
td><td>80</td></tr>
• <tr><td>Swati</td><td>Sironi</
td><td>82</td></tr>
• <tr><td>Chetna</td><td>Singh</
td><td>72</td></tr>
• </table>
• 1) HTML Border attribute
• You can use border attribute of table tag in
HTML to specify border. But it is not
recommended now.
• <table border="1">
• <tr><th>First_Name</
th><th>Last_Name</th><th>Marks</
th></tr>
• <tr><td>Sonoo</td><td>Jaiswal</
td><td>60</td></tr>
• </table>
HTML Lists
• Syntax:
• <form>
• //Form elements
• </form>
<html>
• <body>
• <form>
• Enter your name <br>
• <input type="text" name="username">
• </form>
• </body>
• </html>
• <form>
• First Name: <input type="text" name
="firstname"/> <br/>
• Last Name: <input type="text" name
="lastname"/> <br/>
• </form>
HTML <textarea> tag in form