Skip to content

Restyle added content in html course #4016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 40 additions & 24 deletions courses/html/basic/basic-tags-and-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ title: Basic Tags and Elements
sidebar_label: Basic Tags and Elements
sidebar_position: 3
description: "Learn the basic tags and elements of HTML, the foundation of web development."
tags: [html courses, web development in html courses, html basic, basic tags and elements]
keywoards: [html courses, web development in html courses, html basic, basic tags and elements]
tags:
[
html courses,
web development in html courses,
html basic,
basic tags and elements,
]
keywoards:
[
html courses,
web development in html courses,
html basic,
basic tags and elements,
]
author: [CodeHarborHub, Ajay Dhangar]
---

Expand All @@ -26,19 +38,19 @@ HTML elements can be nested within each other to create a hierarchy of content.

Here are some of the basic HTML tags that you will use frequently when creating web pages:

| Tag | Description |
| --- | ----------- |
| `<html>` | Defines the root element of an HTML page |
| `<head>` | Contains meta-information about the document, such as the title and links to external resources |
| `<title>` | Defines the title of the document, which is displayed in the browser tab |
| `<body>` | Contains the content of the document, such as text, images, and links |
| `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` | Defines headings of different levels |
| `<p>` | Defines a paragraph of text |
| `<a>` | Defines a hyperlink to another web page or resource |
| `<img>` | Defines an image to be displayed on the page |
| `<ul>`, `<ol>`, `<li>` | Defines unordered and ordered lists |
| `<table>`, `<tr>`, `<th>`, `<td>` | Defines a table with rows, headers, and data cells |
| `<div>`, `<span>` | Defines generic containers for grouping and styling content |
| Tag | Description |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `<html>` | Defines the root element of an HTML page |
| `<head>` | Contains meta-information about the document, such as the title and links to external resources |
| `<title>` | Defines the title of the document, which is displayed in the browser tab |
| `<body>` | Contains the content of the document, such as text, images, and links |
| `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` | Defines headings of different levels |
| `<p>` | Defines a paragraph of text |
| `<a>` | Defines a hyperlink to another web page or resource |
| `<img>` | Defines an image to be displayed on the page |
| `<ul>`, `<ol>`, `<li>` | Defines unordered and ordered lists |
| `<table>`, `<tr>`, `<th>`, `<td>` | Defines a table with rows, headers, and data cells |
| `<div>`, `<span>` | Defines generic containers for grouping and styling content |

These are just a few of the many HTML tags available for creating web pages. As you learn more about HTML, you will discover additional tags and elements that can be used to enhance the structure and appearance of your pages.

Expand All @@ -47,17 +59,22 @@ These are just a few of the many HTML tags available for creating web pages. As
Let's create a simple HTML page that demonstrates the use of some basic tags and elements. Open a text editor and create a new file named `index.html`. Copy and paste the following code into the file:

```html title="index.html"
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<head>
<title>My First Web Page</title>
</head>
<body>
</head>
<body>
<h1>Welcome to My Web Page</h1>
<p>This is a paragraph of text.</p>
<a href="https://codeharborhub.github.io/">Visit CodeHarborHub</a> <br /><br />
<img src="https://github.com/codeharborhub.png" alt="CodeHarborHub Logo" width="40" />
</body>
<a href="https://codeharborhub.github.io/">Visit CodeHarborHub</a>
<br /><br />
<img
src="https://github.com/codeharborhub.png"
alt="CodeHarborHub Logo"
width="40"
/>
</body>
</html>
```

Expand All @@ -83,7 +100,6 @@ In this example, the HTML file contains the following elements:

You can open the `index.html` file in a web browser to see the rendered web page. Experiment with adding and modifying different elements to create your own web pages using HTML tags and elements.


## Summary

In this section, you learned about the basic tags and elements of HTML, the foundation of web development. HTML tags are used to define the structure of a web page, and HTML elements provide information about the content of the page. By using HTML tags and elements, you can create structured documents with text, images, links, and other elements. As you continue to learn HTML, you will discover additional tags and elements that can be used to enhance the appearance and functionality of your web pages.
In this section, you learned about the basic tags and elements of HTML, the foundation of web development. HTML tags are used to define the structure of a web page, and HTML elements provide information about the content of the page. By using HTML tags and elements, you can create structured documents with text, images, links, and other elements. As you continue to learn HTML, you will discover additional tags and elements that can be used to enhance the appearance and functionality of your web pages.
16 changes: 14 additions & 2 deletions courses/html/basic/intro-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ title: Introduction to HTML
sidebar_label: Introduction to HTML
sidebar_position: 1
description: "Learn the basics of HTML, the foundation of web development, and create your first web page."
tags: [html courses, web development in html courses, html basic, introduction to html]
keywoards: [html courses, web development in html courses, html basic, introduction to html]
tags:
[
html courses,
web development in html courses,
html basic,
introduction to html,
]
keywoards:
[
html courses,
web development in html courses,
html basic,
introduction to html,
]
author: [CodeHarborHub, Ajay Dhangar]
---

Expand Down
Loading