Skip to main content

learning html : part - 1

Introduction to HTML



Also Watch This Video!

HTML (HyperText Markup Language) is the backbone of every webpage on the internet. It provides the structure and content of a webpage, defining elements that browsers use to interpret and display information.

What is HTML?

HTML is a markup language composed of various elements, tags, and attributes. These elements help organize content on a webpage, creating headings, paragraphs, lists, links, images, and more. The structure of HTML consists of nested elements, forming a tree-like structure known as the Document Object Model (DOM).

Basic Structure of HTML

An HTML document starts with a <!DOCTYPE html> declaration, followed by an <html> element that wraps the entire content. Within the <html> element, there are two main sections:

  • Head Section (<head>): Contains meta-information about the document, such as the title of the page, links to external stylesheets, and scripts.
  • Body Section (<body>): Contains the visible content of the webpage.

HTML Elements

Elements are the building blocks of HTML and consist of a start tag, content, and an end tag. Some elements, like line breaks or images, are self-closing (only have a start tag).

  • Tags: Enclosed in angle brackets, such as <tagname>. Examples include <p> for paragraphs, <h1> to <h6> for headings, <a> for links, etc.
  • Attributes: Provide additional information about an element and are placed within the opening tag. Attributes have a name and a value. For example, the href attribute specifies the link's destination in an anchor (<a>) tag.

Example of a Simple HTML Document

        <!DOCTYPE html>

        <html>

        <head>

            <title>My First Webpage</title>

        </head>

        <body>

            <h1>Welcome to My Page</h1>

            <p>This is a simple introduction to HTML.</p>

            <a href="https://creationdheeraj.blogspot.com">Visit Example</a>

        </body>

        </html>

    

Conclusion

HTML forms the foundation of web development, allowing you to create and structure content for the web. Learning HTML is the first step toward becoming proficient in web development.

In future articles, we'll delve deeper into HTML, exploring more elements, attributes, and best practices to create stunning web pages.



Comments

Post a Comment

Popular posts from this blog

Download youtube video using termux

How to Download YouTube Videos Using Termux If you're interested in downloading YouTube videos directly through Termux, this guide will walk you through the process. We’ll explain each command step-by-step and ensure you can execute them successfully. Introduction Termux is a powerful terminal emulator for Android that allows you to use Linux commands. In this guide, we’ll use Termux to install and run a script for downloading YouTube videos. The script we’ll use is hosted on GitHub, and by following the commands below, you’ll be able to download videos easily. Commands Explanation Below is the list of commands you need to execute, along with an explanation of what each does. 1. Update and Upgrade Packages pkg up -y -y -y -y This command updates and upgrades all existing packages in Termux. The pkg up is a shorthand for pkg update && pkg upgrade . The -y flag automatically answers “yes” to any prompt...

linux on any phone using termux

How to Install Kali Linux on Android Using Termux (Step-by-Step Guide) Kali Linux is a powerful penetration testing and security auditing platform. While it's primarily used on PCs, you can also run it on your Android phone using Termux . In this guide, we'll walk you through the step-by-step process. Prerequisites Before starting, ensure you have: Android 7.0 or higher (root not required but helpful for full functionality) Termux app (download from F-Droid Stable internet connection (for downloading packages) At least 5GB free storage (Kali Linux tools take space) Step 1: Install & Update Termux Download Termux from F-Droid Open Termux and run the following commands to update packages: pkg update -y && pkg upgrade -y Install essential dependencies: pkg install wget proot -y Ste...

Uninstall Installed Apps in Linux

🐧 How to Completely Uninstall Apps in Linux (Advanced Guide) Removing apps in Linux is not just about running one command. Sometimes apps are installed using different methods (APT, Snap, Flatpak, .deb files, manual install), and each requires a different removal approach. 📌 Step 1: Identify the App Source (Most Important) Before uninstalling, you MUST know how the app was installed: which app_name Explanation: /usr/bin/ → Installed via APT or .deb /snap/ → Snap package /var/lib/flatpak/ → Flatpak Alternative checks: dpkg -l | grep app_name snap list flatpak list ⚙️ Method 1: Remove APT / .deb Installed Apps Normal uninstall: sudo apt remove app_name Complete uninstall (recommended): sudo apt purge app_name Fix broken packages (important): sudo apt --fix-broken install Remove unused dependencies: sudo apt autoremo...