Web Dev 2
Web Dev 2
Web Dev 2
Overview
1. Recap
2. Quiz
3. Discuss and apply
HTML Image elements
Links, anchor tags, tables and
border.
Objectives
1. Understand and apply the basic
structure of HTML.
2. Explain HTML
3. Differentiate an HTML and a
programming language
4. Identify the best IDE for the users
5. Identify the different types of
programmers.
What is HTML?
What is HTML?
HTML describes the structure of the pages. It uses elements and tags.
It is the most basic building block of the Web.
Is HTML a Programming Language?
The 10 Best IDE for Web Development
Best IDE Alternatives
Attributes
Provides additional information about the html tags or elements
ATTRIBUTE
ATTRIBUTE
ELEMENT NAME VALUE
NAME
<!--- --> Insert comment in the source code. A short description of code.
Not displayed in the browser
HTML Image Elements
Example
HTML Attribute
Hyperlink Hypertext
HTML Links and Anchor Tags
Example
<ol>
<li>Number one on the list</li>
<li>Number two</li>
<li>A third item</li>
</ol>
HTML LIST
Unordered List
Non sequential list. List with bullets. In HTML5, type attribute of
unordered list is deprecated.
Ordered List
Sequential list. Use numbers, alphabets and Roman characters as list
style.
Description List
List with description term and description data.
Syntax:
<dl>
<dt>Description Term</dt>
<dd>Description Data</dd>
</dl>
HTML List Tags
DL Example 1:
<dl>
<dt>HTML</dt>
<dd>Language to create a website. </dd>
</dl>
HTML
Language To create web page.
Activity 1.2: Re-create The World’s First Website
1. Create a new html file.
2. Apply what you have learned about HTML tags, attributes and lists.
3. Save your page as an Actitivy2_html file on your system.
4. Present your version of World’s First Website!
The World’s First Website
Source: http://info.cern.ch/hypertext/WWW/TheProject.html
HTML Code Challenge
1
HTML Table CODE CHALLENGE
<table>
<tr>
<td><img src="images/profile.jpg"
alt="myprofile"></td>
<td>
<h1><strong>Kae Soriano</strong></h1>
<p> Web Development Instructor - Kodego</p>
<p>I love teaching and milk tea</p>
</td>
</tr>
</table>
HTML Table CODE CHALLENGE
<h1>Welcome to my Site!</h1>
<table cellspacing=”30”>
<tr>
<td><img src="images/profile.jpg" alt="myprofile"></td>
<td>
<h1><strong>Kae Soriano</strong></h1>
<p> Web Development Instructor - Kodego</p>
<p>I love teaching and milk tea</p>
</td>
</tr>
</table>
HTML Table CODE CHALLENGE
<h1>Welcome to my Site!</h1>
<table cellspacing=”30”>
<tr>
<td><img src="images/profile.jpg" alt="myprofile"></td>
<td>
<h1><strong>Kae Soriano</strong></h1>
<p> Web Development Instructor - Kodego</p>
<p>I love teaching and milk tea</p>
</td>
</tr>
</table>
Presentation of Output
HTML - My Portfolio
HTML Reference
https://www.w3schools.com/html/default.asp
https://developer.mozilla.org/en-US/docs/Learn/HTML
Wrap up
HTML Tables are used to arrange data like text, images, links, other
tables, etc. into rows and columns of cells.
Note: To add borders to the table you can use the border attribute.
To define the width of the table you can also use the width attribute.
HTML Tables
<table>
<thead> <th> Name </th> <th> Age </th> <th> Email </th> </thead>
</table>
HTML Table Head
<table>
<thead> <th> Name </th> <th> Age </th> <th> Email </th> </thead>
</table>
HTML Table Colspan
Colspan attribute is used to make a cell span for more than 1 column.
Syntax:
<td colspan=”2”> Name Contact Number
Rowspan attribute is used to make a cell span for more than 1 row.
Syntax:
<td rowspan=”2”>
12345 13579
Contact Number
67890 24680
HTML Table Rowspan
Rowspan attribute is used to make a cell span for more than 1 row.
Syntax:
<td rowspan=”2”>
12345 13579
Contact Number
67890 24680
HTML Table Example (Try to add a table in your webpage, no need to add color)
<table>
<tr>
<td>2022 - 2023</td>
<td>Teacher 1</td>
<td>ABC School</td>
</tr>
<tr>
<td>2020 - 2022</td>
<td>Teacher 2</td>
<td>Dream School</td>
</tr>
</table>
HTML Table Example (Try to add a table in your webpage)
<table>
<tr>
<td>2022 - 2023</td>
<td>Teacher 1</td>
<td>ABC School</td>
</tr>
<tr>
<td>2020 - 2022</td>
<td>Teacher 2</td>
<td>Dream School</td>
</tr>
</table>
Table with Emoji
Table with Emoji
<table>
<th rowspan="4"> Skills </th>
<tr>
<td>Front-end Web Development</td>
<td>⭐⭐⭐⭐⭐</td>
<td>Back-end Web Development</td>
<td>⭐⭐⭐⭐⭐</td>
</tr>
<tr>
<td> Photography</td>
<td>⭐⭐⭐⭐</td>
<td> Social Media
Management</td>
<td>⭐⭐⭐</td>
</tr>
</table>
Table with style
<td> <b>Name</b></td>
<td> <strong>Name</strong></td>
Code Challenge 2 - HTML Table
3
HTML Table Forms
HTML Forms are used to collect different kinds of user inputs, such as
contact details like name, email address, phone numbers, or details like
credit card information, etc.
HTML Table Form
<table>
<form>
<table>
<tr>
<tr>
<td>2022 <td>Name:</td>
- 2023</td>
<td><input type="text" name="name"></td>
<td>Teacher 1</td>
</tr>
<td>ABC School</td>
<tr>
</tr>
<td>Email:</td>
<td><input type="email" name="email"></td>
<tr> </tr>
<td>2020
<tr>- 2022</td>
<td>Password:</td>
<td>Teacher 2</td>
<td><input type="password" name="password"></td>
<td>Dream
</tr>School</td>
</tr>
</table>
</table>
</form>
HTML Table Form
<table>
<form>
<tr>
<td>2022<tr>- 2023</td>
<td>Number:</td>
<td>Teacher 1</td>
<td><input type="number" name="number"></td>
<td>ABC </tr>
School</td>
</tr> <tr>
<td>Feedback:</td>
<td><textarea name="message"></textarea></td>
<tr> </tr>
<td>2020 - 2022</td>
<tr>
<td>Teacher 2</td>
<td></td>
<td>Dream<td><input
School</td>
type="submit" value="Submit"></td>
</tr>
</tr> </table>
</table>
</form>
Thank you!