Skip to main content

Html#2

Basic HTML Tags with Results

Basic HTML Tags with Results

This document demonstrates basic HTML tags along with the corresponding rendered output.

1. Headings

Headings are defined using <h1> to <h6> tags:

<h1>This is a Heading 1</h1>

This is a Heading 1

<h2>This is a Heading 2</h2>

This is a Heading 2

2. Paragraphs

Paragraphs are created with the <p> tag:

<p>This is a paragraph of text.</p>

This is a paragraph of text.

3. Links

Links are defined using the <a> tag:

<a href="https://learnhtmlcodefree.blogspot.com/2024/10/revision-and-more.html">This is a link</a>

4. Images

Images can be added using the <img> tag:

<img src="https://via.placeholder.com/150" alt="Description of image">
Description of image

5. Lists

HTML supports ordered (<ol>) and unordered lists (<ul>):

<ul>
    <li>Item 1</li>
    <li>Item 2</li>
</ul>
  • Item 1
  • Item 2
<ol>
    <li>First Item</li>
    <li>Second Item</li>
</ol>
  1. First Item
  2. Second Item

6. Strong and Emphasis

To make text bold or italic, use <strong> and <em> tags:

<strong>This text is bold.</strong>
This text is bold.
<em>This text is italicized.</em>
This text is italicized.

7. Blockquotes

Blockquotes are used for quoting text:

<blockquote>
    <p>This is a blockquote.</p>
</blockquote>

This is a blockquote.

Example HTML Document

Here’s a small code snippet that combines these tags:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First Web Page</title>
</head>
<body>
    <h1>Welcome to My First Web Page</h1>
    <p>This is a paragraph about my web page.</p>
    <a href="https://www.example.com">Visit Example</a>
</body>
</html>

Welcome to My First Web Page

This is a paragraph about my web page.

Visit Example

Comments

Popular posts from this blog

Javascript #3 Revision and more

Why Learn Advanced JavaScript? Why Learn Advanced JavaScript? JavaScript is one of the most popular programming languages today. It's used for everything from building interactive websites, creating games, to developing full-stack web applications. As a student, advancing your knowledge of JavaScript opens up a variety of career paths and development opportunities. But why exactly should you learn advanced JavaScript, and how can it benefit you? Key Benefits of Learning Advanced JavaScript In-Demand Skill: JavaScript is the language of the web, and it's used by companies all over the world. Developers who know advanced JavaScript are highly sought after for front-end, back-end, and full-stack development roles. Framework Mastery: Many modern front-end frameworks like React, Vue.js, and Angular are based on JavaScript. Mastering advanced JavaScript concepts will help you better understand and use these frameworks efficiently. D...

Why should you have to learn javascript ?

Why You Should Learn JavaScript Why You Should Learn JavaScript In today's digital world, programming languages play a crucial role in developing applications and websites. Among them, JavaScript stands out as one of the most essential languages to learn. Here are several compelling reasons why you should consider adding JavaScript to your skill set. 1. Ubiquity in Web Development JavaScript is the backbone of web development. It is used by almost every website on the internet to enhance interactivity and user experience. With JavaScript, you can create dynamic web applications, manipulate HTML and CSS, and respond to user actions without reloading the page. Learning JavaScript allows you to build modern web applications and keep up with the latest industry standards. 2. Versatility JavaScript is not limited to just web browsers. It can also be used on the server side with environments like Node.js , enabling developers to create full-stack app...

Javascript #2

Advanced JavaScript: How to Start and Resources How to Get Started with Advanced JavaScript: Free and Paid Resources Once your students have grasped the basics of JavaScript, moving to an advanced level will open doors to building complex applications, mastering frameworks, and even diving into full-stack development. Below is a comprehensive guide on how they can get to an advanced level in JavaScript, including where to find free and paid resources, how to start, and the requirements. 1. Understanding the Requirements Before jumping into advanced JavaScript, your students should be comfortable with: Basic JavaScript concepts: Variables, data types, functions, loops, and arrays. DOM Manipulation: Understanding how to interact with HTML elements using JavaScript. Event Handling: Understanding how JavaScript responds to user actions (like clicks, keypresses, etc.). Basic problem-solving: The ability to break down coding proble...