html basic coding language
html basic coding language
Here's a clear and concise overview of the basic HTML coding language,
including common elements and their usage:
---
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page Title</title>
</head>
<body>
<!-- Your content goes here -->
</body>
</html>
```
---
### 2. **Paragraph**:
```html
<p>This is a paragraph of text.</p>
```
### 3. **Images**:
```html
<img src="your-image.jpg" alt="Description of image" width="300">
```
### 4. **Audio**:
```html
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support audio playback.
</audio>
```
### 5. **Video**:
```html
<video controls width="320" height="240">
<source src="video.mp4" type="video/mp4">
Your browser does not support video playback.
</video>
```
### 6. **Links**:
```html
<a href="https://example.com">Visit Example.com</a>
```
### 7. **Lists**:
- **Unordered List**
```html
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
```
- **Ordered List**
```html
<ol>
<li>First</li>
<li>Second</li>
</ol>
```
### 9. **Tables**:
```html
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
```
---
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My HTML Page</title>
</head>
<body>
<h1>Welcome to My Page</h1>
<p>This page demonstrates basic HTML elements.</p>
<h2>Image Example</h2>
<img src="photo.jpg" alt="A beautiful scenery" width="300">
<h2>Audio Example</h2>
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support audio playback.
</audio>
<h2>Video Example</h2>
<video controls width="320" height="240">
<source src="video.mp4" type="video/mp4">
Your browser does not support video playback.
</video>
<h2>Contact Form</h2>
<form action="/submit-form" method="post">
Name: <input type="text" name="name"><br>
Email: <input type="email" name="email"><br>
<button type="submit">Send</button>
</form>
</body>
</html>
```