diff --git a/courses/html/basic/basic-tags-and-elements.md b/courses/html/basic/basic-tags-and-elements.md index 91d46e6e8..db3e7c16b 100644 --- a/courses/html/basic/basic-tags-and-elements.md +++ b/courses/html/basic/basic-tags-and-elements.md @@ -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] --- @@ -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 | -| --- | ----------- | -| `` | Defines the root element of an HTML page | -| `` | Contains meta-information about the document, such as the title and links to external resources | -| `` | 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. @@ -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 - - + +

Welcome to My Web Page

This is a paragraph of text.

- Visit CodeHarborHub

- CodeHarborHub Logo - + Visit CodeHarborHub +

+ CodeHarborHub Logo + ``` @@ -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. \ No newline at end of file +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. diff --git a/courses/html/basic/intro-html.md b/courses/html/basic/intro-html.md index aad81316c..5955b2c34 100644 --- a/courses/html/basic/intro-html.md +++ b/courses/html/basic/intro-html.md @@ -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] ---