Balaba, Edward Hunter C. - ITEC 50 - Web System and Technologies 1
Balaba, Edward Hunter C. - ITEC 50 - Web System and Technologies 1
➔ <h1></h1> → This is the highest level of heading and usually represents the
main heading or title of the page.
➔ <h2></h2> → This tag represents a subheading or a section within the main
content.
➔ <h3></h3> → Represents a subsection within a <h2> section.
➔ <h4></h4> → Represents a subsection within a <h3> section.
➔ <h5></h5> → Represents a subsection within a <h4> section.
➔ <h6></h6> → This is the lowest level of heading and represents the least
importance within the hierarchy.
● HTML List
- In HTML (HyperText Markup Language), a list is a way to display a group of
related items or information in a structured and organized manner. There are three main
types of lists in
HTML: unordered lists, ordered lists, and definition lists.
Example:
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
● Item 1
● Item 2
● Item 3
Example:
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
First item
Second item
Third item
Example:
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2</dt>
<dd>Definition 2</dd>
</dl>
Term 1
Definition 1
Term 2
Definition 2
● HTML Links Links
- In HTML (HyperText Markup Language), links are used to create a clickable
connection between one web page and another, or between different sections of the
same web page. Links are a fundamental feature for navigation on the web.
<a href="https://example.com">
<img src="path/to/image.jpg" alt="Image Description">
</a>
● HTML Image
- To display an image in HTML, you use the <img> (image) element.
❖ src (source): Specifies the URL or file path to the image. It's required.
❖ alt (alternate text): Provides alternative text for the image. This text is displayed if the
image cannot be loaded or is read by screen readers for accessibility. It's recommended
for accessibility and SEO purposes.
Example:
Example:
Syntax:
<video controls>
<source src="video_path" type="video/file_type">
Your browser does not support the video tag.
</video>
Example:
<video controls>
<source src="path/to/your/video.mp4" type="video/mp4">
<source src="path/to/your/video.webm" type="video/webm">
<source src="path/to/your/video.ogv" type="video/ogg">
Your browser does not support the video tag.
</video>
● HTML Audio
-To embed audio into an HTML document, you can use the <audio> element. The
<audio> element allows you to play audio files directly within a web page.
Syntax:
<audio controls>
<source src="audio_path" type="audio/file_type"> Your
browser does not support the audio tag.
</audio>
Explanation of the attributes and elements:
➢ controls: This attribute displays the default audio controls (play, pause, volume, etc.) for
the user.
➢ <source>: This element specifies the source of the audio using the src attribute and the
type of the audio using the type attribute. You can include multiple <source> elements to
provide different file formats for cross-browser compatibility.
○ src: Specifies the URL or file path to the audio.
○ type: Specifies the MIME type of the audio file (e.g., audio/mp3, audio/wav,
audio/ogg).
➢ Fallback text: The text "Your browser does not support the audio tag." is displayed if the
browser does not support the <audio> element.
Example:
<audio controls>
<source src="path/to/your/audio.mp3" type="audio/mp3">
<source src="path/to/your/audio.wav" type="audio/wav">
<source src="path/to/your/audio.ogg" type="audio/ogg">
Your browser does not support the audio tag.
</audio>
● HTML Tables
- In HTML (HyperText Markup Language), the <table> element is used to create
tables for organizing and displaying data in rows and columns.
Syntax:
<table>
<tr>
<th>Header 1</th> <th>Header 2</th>
<!-- Add more headers as needed -->
</tr>
<tr>
<td>Data 1,1</td> <td>Data 1,2</td>
<!-- Add more data cells as needed -->
</tr>
<tr>
<td>Data 2,1</td> <td>Data 2,2</td>
<!-- Add more data cells as needed -- >
</tr>
<!-- Add more rows as needed -->
</table>
● HTML divs and css
- HTML <div> elements and CSS (Cascading Style Sheets) are commonly used
together to structure and style web content. <div> elements are generic containers that
allow you to group and style various elements in your HTML document, providing
structure and organization to your webpage. CSS is used to control the appearance,
layout, and styling of HTML elements, including <div> elements.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="header">
<h1>Welcome to our Website</h1>
</div>
<div class="footer">
<p>© 2023 Your Website</p>
</div>
</div>
</body>
</html>
CSS (styles.css)