N O T I C E

Project on Computer topics, Programs for practicals for BCA Students, and Mobile Android app requirements. Please pay less and get more immediate delivery for school and higher level. Thank You. Contact me - at +91-8800304018(w)

Saturday, November 28, 2026

C Programming Exam Guide for Students



TOOLS FOR TEACHERS & STUDENTS: The Practical Guide to AI for Learning, Teaching, Research & Productivity

=================================================================

Title: C Programming Exam Guide for Students

Subtitle: Master C Fundamentals, Control Structures, Functions, Arrays, Pointers & Dynamic Memory — with Solved Programs and 4 Projects

Struggling with C programming? Learn it step by step and get ready for your exams.

C Programming Exam Guide for Students is a practical, exam-focused book for school and college students and first-time programmers. Each topic is explained in simple language, the syntax is laid out clearly, and worked programs with verified output show exactly how the code behaves.

What you will learn:

• C fundamentals: keywords, identifiers, variables, constants, data types and operators

• Input and output, with exam-focused definitions

• Decision-making, loops and logic-building practice programs

• Functions and recursion

• Arrays and matrices

• Pointers and dynamic memory allocation

• Four complete projects to apply everything you have learned


Who is this book for?

• School and college computer science students

• First-time programmers starting their coding journey

• Students preparing for university lab exams and technical interviews


Whether you are revising before a practical exam or learning your first programming language, this guide bridges the gap between classroom lectures and exam readiness. Start coding with confidence today.

  1. C programming for BCA students
  2. C language practical file programs with output
  3. C programming step by step solved programs
  4. learn C pointers arrays functions beginners
  5. C programs for lab exam preparation
  6. C programming mini projects for beginners
  7. computer science college exam notes C language

Only Rs. 199/- 


Scan my QR code for India 

 

Saturday, September 19, 2026

CSS Image Opacity and Hover Effects:, and Navigaion Complete Guide with Examples

 

Opacity using CSS

AI TOOLS FOR TEACHERS & STUDENTS: The Practical Guide to AI for Learning, Teaching, Research & Productivity

=============================

“100 Programming Problems with Solutions, Algorithms & Output”: A Practical Guide for Students (C / C++ / Basic Programming Concepts)

=============================

https://www.amazon.in/dp/B0GY9NQ9W1

C Programming Practical Guide for BCA:100 Exam-Based Questions : A Complete Practice Book with MCQs, Short & Long Programs, File Handling and Case-Based Questions for BCA Practical Exams

=============================

CSS Image Hover Effects & Navigation Menu: Complete Tutorial with Full Code

CSS Image Opacity

The opacity property specifies the opacity/transparency of an element.

The opacity property can take a value from 0.0 - 1.0:

  • 0.0 - The element will be completely transparent
  • 0.5 - The element will be 50% transparent
  • 1.0 - Default. The element will be fully opaque

Full Code is bel

<!DOCTYPE html>

<html>

<head>

<style>

img {

  opacity: 0.5;

}

</style>

</head>

<body>

<h2>The opacity Property</h2>

<p>The opacity property specifies the opacity of an element. The lower the value, the more transparent:</p>

<p>Image with 50% opacity:</p>

<img src="img_forest.jpg" alt="Forest" width="170" height="100">

</body>

</html>

Opacity and :hover

The opacity property is often used with :hover to change the opacity on mouse-over:

<!DOCTYPE html>

<html>

<head>

<style>

img {

  opacity: 0.5;

}

 

img:hover {

  opacity: 1.0;

}

</style>

</head>

<body>

 

<h2>Opacity and :hover</h2>

<p>Opacity is often used with :hover to change the opacity on mouse-over:</p>

 

<img src="img_forest.jpg" alt="Forest" width="170" height="100">

<img src="img_mountains.jpg" alt="Mountains" width="170" height="100">

<img src="img_5terre.jpg" alt="Italy" width="170" height="100">

 

</body>

</html>


CSS Image Hover Effects & Navigation Menu: Complete Tutorial with Full Code

Complete Opacity and hover example:

<!DOCTYPE html>

<html>

<head>

<style>

img {

  opacity: 0.5;

}

 

img:hover {

  opacity: 1.0;

}

</style>

</head>

<body>

 

<h2>Opacity and :hover</h2>

<p>Opacity is often used with :hover to change the opacity on mouse-over:</p>

 

<img src="img_forest.jpg" alt="Forest" width="170" height="100">

<img src="img_mountains.jpg" alt="Mountains" width="170" height="100">

<img src="img_5terre.jpg" alt="Italy" width="170" height="100">

 

</body>

</html>

=============

CSS Image Hover Effects & Navigation Menu: Complete Tutorial with Full Code

When you run this code you will see that three images are shown, if you hover on any one image shows the hover with opacity .

CSS Navigation Bars

A navigation bar is an important component of web design.

Navigation bars helps users to easily navigate between different sections of a website.

Navigation bars are typically built with HTML list elements ( <ul> and <li>), and then styled with CSS to get a great look.

A navigation bar is typically located at the top or at the side of a webpage.

Example

<ul>
  <li><a href="default.asp">Home</a></li>
  <li><a href="news.asp">News</a></li>
  <li><a href="contact.asp">Contact</a></li>
  <li><a href="about.asp">About</a></li>
</ul>

You can set the navigation bar vertical or Horizontal as you wish.

The full code of Horizontal Navigations is as below:

<!DOCTYPE html>

<html>

<body>

 

<h2>Basic HTML code for Navbar</h2>

<ul>

  <li><a href="#home">Home</a></li>

  <li><a href="#news">News</a></li>

  <li><a href="#contact">Contact</a></li>

  <li><a href="#about">About</a></li>

</ul>

<p>Note: We use href="#" for links. In a real website this would be URLs.</p>

</body>

</html>

=============

CSS Vertical Navbar Example

Here, we create a basic vertical navigation bar with a gray background color, and we also change the background color and the text color of the links when the user mouse over them:

  • Home
  • News
  • Contact
  • About

·         Example

·         ul {
  list-style-type
: none;
  margin
: 0;
  padding
: 0;
  width
: 200px;
  background-color
: #f1f1f1;
}

li a
{
  display
: block;
  color
: black;
  padding
: 8px 16px;
  text-decoration
: none;
}

/* Change the link and background color on hover */
li a:hover
{
  background-color
: #555555;
  color
: white;
}

 ----------------------------

CSS Image Hover Effects & Navigation Menu: Complete Tutorial with Full Code

Complete Code is below:

<!DOCTYPE html>

<html>

<head>

<style>

ul {

  list-style-type: none;

  margin: 0;

  padding: 0;

  width: 200px;

  background-color: #f1f1f1;

  border: 1px solid #555555;

}

 

li a {

  display: block;

  color: black;

  padding: 8px 16px;

  text-decoration: none;

}

 

li {

  text-align: center;

  border-bottom: 1px solid #555555;

}

 

li:last-child {

  border-bottom: none;

}

 

li a.active {

  background-color: #04AA6D;

  color: white;

}

 

li a:hover:not(.active) {

  background-color: #555555;

  color: white;

}

</style>

</head>

<body>

 

<h2>Vertical Navbar with Border and Centered Text</h2>

<p>In this example, we center the navigation links and add a border to the navigation bar.</p>

<ul>

  <li><a class="active" href="#home">Home</a></li>

  <li><a href="#news">News</a></li>

  <li><a href="#contact">Contact</a></li>

  <li><a href="#about">About</a></li>

</ul>

</body>

</html>

==================

 

 

 

 

 


 

 

Saturday, September 5, 2026

What is CSS? A Beginner’s Guide to Styling Websites That Stand Out

 


What is CSS? A Beginner’s Guide to Styling Websites That Stand Out


What is CSS?

The language we use to style a web page is called CSS.

Cascading Style Sheets are referred to as CSS.
CSS specifies how HTML elements should appear on a screen, paper, or in other media.
A lot of work is saved via CSS. It has the ability to simultaneously manage the layout of several web pages.
CSS files contain external stylesheets.

What Makes CSS Useful?

Your web pages' styles, including its layout, design, and display variations for various screen sizes and devices, are defined using CSS.

CSS Reduces Work Significantly!
Typically, an external.css file contains the CSS definitions.

An external stylesheet file allows you to modify a single file to alter the appearance of a complete website!

============

What is CSS? A Beginner’s Guide to Styling Websites That Stand Out

CSS Syntax

A CSS rule is made up of a declaration block and a selector:

CSS chooser

You can style an HTML element by using the selector.

Semicolons are used to separate one or more declarations within the declaration block.

Each declaration contains a value and the name of a CSS property, separated by a colon.

Declaration blocks are encircled by curly braces, and several CSS declarations are separated by semicolons.

An illustration
In this example, the text will be red and all <p> elements will be centered:

p {
  color: red;
  text-align: center;
}

Explained Example:

In CSS, p is a selector that refers to the HTML element you wish to style: <p>.
One property is color, and its value is red; another property is text-align, and its value is center.

=========
CSS Selectors You can "find" (or choose) the HTML elements you wish to style using CSS selectors.

What is CSS? A Beginner’s Guide to Styling Websites That Stand Out

CSS selectors fall into five categories:


Simple selectors (choose elements according to class, id, and name)
Combinator selectors (choose components according to a particular relationship between them)
Select elements according to a specific state using pseudo-class selectors.
Selectors for pseudo-elements (select and style a portion of an element)
Selecting items according to an attribute or attribute value is known as an attribute selector.

The CSS element Selector

The element selector selects HTML elements based on the element name.

Example
Here, all <p> elements on the page will be center-aligned, with a red text color: 

p {
  text-align: center;
  color: red;
}
The CSS id Selector
The id selector uses the id attribute of an HTML element to select a specific element.

The id of an element is unique within a page, so the id selector is used to select one unique element!

To select an element with a specific id, write a hash (#) character, followed by the id of the element.

Example
The CSS rule below will be applied to the HTML element with id="para1": 

#para1 {
  text-align: center;
  color: red;
}

Complete Exxample :
<!DOCTYPE html>
<html>
<head>
<style>
#para1 {
  text-align: center;
  color: red;
}
</style>
</head>
<body>

<p id="para1">Hello World!</p>
<p>This paragraph is not affected by the style.</p>

</body>
</html>
==============

What is CSS? A Beginner’s Guide to Styling Websites That Stand Out


The CSS Universal Selector


Example:

<!DOCTYPE html>
<html>
<head>
<style>
* {
  text-align: center;
  color: blue;
}
</style>
</head>
<body>

<h1>Hello world!</h1>

<p>Every element on the page will be affected by the style.</p>
<p id="para1">Me too!</p>
<p>And me!</p>

</body>
</html>
============
The CSS Grouping Selector
The grouping selector selects all the HTML elements with the same style definitions.

Look at the following CSS code (the h1, h2, and p elements have the same style definitions):

Example:

h1 {
  text-align: center;
  color: red;
}

h2 {
  text-align: center;
  color: red;
}

p {
  text-align: center;
  color: red;
}

Full code:
<!DOCTYPE html>
<html>
<head>
<style>
h1, h2, p {
  text-align: center;
  color: red;
}
</style>
</head>
<body>

<h1>Hello World!</h1>
<h2>Smaller heading!</h2>
<p>This is a paragraph.</p>

</body>
</html>

======

How to Include CSS

A browser will format an HTML document based on the information found in a style sheet after it has read it.

A style sheet can be inserted in three different ways:

Linking to an external.css file is known as external CSS.
Use the <style> element in the head section for internal CSS.
Use the style attribute on HTML elements when using inline CSS.
External CSS
An external style sheet allows you to modify just one file to alter the appearance of a full website!

The <link> element in the head section of every HTML page must contain a reference to the external style sheet file.

This is an HTML code file, you can link an external file called "mystyle.css" file using Link

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
======
This is an external css file that is linked in the HTML code file.

"mystyle.css"
body {
  background-color: lightblue;
}

h1 {
  color: navy;
  margin-left: 20px;
}

==============

What is CSS (Cascading Style Sheets),


how to write CSS code for beginners,

CSS website design rules,

CSS best practices and performance,

improve website traffic with CSS,

Thursday, August 27, 2026

10 Standard HTML5 Document Outlines & Templates

 



10 standard HTML5 document outlines and templates tailored for different use cases, ranging from a basic boilerplate to specific page layouts.


Best for the New Learners/Students.

=====================


1. Basic HTML5 Boilerplate
The standard starting template for any simple web page.


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document Title</title>

</head>

<body>

    <h1>Hello, World!</h1>

</body>

</html>

=====================

Code Explanation: 

=====================

1. Basic HTML5 Boilerplate


<!DOCTYPE html>: Declares the document type as HTML5, ensuring browsers render the page in standard mode.


<html lang="en">: The root element of the HTML document, with the lang attribute specifying English for screen readers and search engines.


<head>: Contains metadata, which is information about the document that isn't directly displayed on the page.


<meta charset="UTF-8">: Sets the character encoding to UTF-8, supporting almost all characters and symbols.


<meta name="viewport" content="...">: Configures the viewport for mobile devices so the page scales correctly on all screen sizes.


<title>: Sets the text shown in the browser tab or window title.


<body>: Contains all the visible content of the web page.

=====================

10 standard HTML5 document outlines and templates tailored for different use cases, ranging from a basic boilerplate to specific page layouts.



2. Standard HTML5 with External Assets
Includes linked CSS stylesheets and JavaScript files.


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Site Title</title>

    <link rel="stylesheet" href="style.css">

</head>

<body>

    <header>

        <nav>Navigation</nav>

    </header>

    <main>

        <section>Main Content</section>

    </main>

    <footer>Footer Content</footer>

    <script src="script.js"></script>

</body>

</html>

=====================

Code Explanation: 

=====================

2. Standard HTML5 with External Assets

Includes linked CSS stylesheets and JavaScript files.



<link rel="stylesheet" href="style.css">: Connects an external CSS file to style the document layout and appearance.


<header>: Semantic element representing introductory content or a navigation bar.


<nav>: Defines a block of navigation links.


<main>: Represents the dominant, unique content of the <body>.


<section>: Defines a thematic grouping of content.


<footer>: Represents a footer for its nearest sectioning content, typically containing authorship, copyright, or links.


<script src="script.js">: Loads an external JavaScript file, typically placed right before the closing </body> tag for optimal page loading performance.

======================

3. Responsive Mobile-First Outline
Optimized for mobile devices and modern CSS frameworks like Tailwind or Bootstrap.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta name="description" content="Page description for SEO">

    <title>Responsive Page</title>

    <!-- CSS frameworks can be linked here -->

</head>

<body>

    <div class="container">

        <header></header>

        <main></main>

        <footer></footer>

    </div>

</body>

</html>

=====================

Code Explanation: 

=====================

3. Responsive Mobile-First Outline

<meta name="description" content="...">: Provides a summary of the page for search engine optimization (SEO).


<div class="container">: A generic container wrapper often used in CSS frameworks (like Bootstrap) to center content and apply maximum width constraints.

======================

10 standard HTML5 document outlines and templates tailored for different use cases, ranging from a basic boilerplate to specific page layouts.


4. Blog Post / Article Layout
Semantic structure optimized for articles, blogs, and documentation.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Blog Post Title</title>

</head>

<body>

    <header>

        <nav>Site Nav</nav>

    </header>

    <main>

        <article>

            <header>

                <h1>Article Title</h1>

                <p>Published on <time datetime="2026-06-07">June 7, 2026</time> by Author</p>

            </header>

            <section>

                <p>Article body content goes here...</p>

            </section>

            <footer>

                <p>Tags: HTML, Web Development</p>

            </footer>

        </article>

        <aside>

            <h3>Related Posts</h3>

        </aside>

    </main>

    <footer>

        <p>&copy; 2026 Blog Name</p>

    </footer>

</body>

</html>

==================

Code Explanation:

==================

4. Blog Post / Article Layout

<article>: Represents a self-contained composition in a document, such as a blog post, news story, or comment, which is independently distributable.


<time datetime="2026-06-07">: Machine-readable time element, useful for SEO and automated scrapers.


<aside>: Represents a portion of a document whose content is only indirectly related to the main content (often rendered as sidebars or callout boxes).

=====================

10 standard HTML5 document outlines and templates tailored for different use cases, ranging from a basic boilerplate to specific page layouts.


5. Landing Page / Marketing Outline
Built for high-conversion marketing pages with distinct sections (Hero, Features, CTA).


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Product Landing Page</title>

</head>

<body>

    <header>

        <nav>Logo & Menu</nav>

    </header>

    <main>

        <section class="hero">

            <h1>Catchy Headline</h1>

            <p>Subheadline explaining value proposition.</p>

            <button>Get Started</button>

        </section>

        <section class="features">

            <h2>Features</h2>

            <div>Feature 1</div>

            <div>Feature 2</div>

        </section>

        <section class="cta">

            <h2>Ready to dive in?</h2>

            <button>Sign Up Now</button>

        </section>

    </main>

    <footer>

        <p>Footer links & copyright</p>

    </footer>

</body>

</html>

=====================

Code Explanation:

=====================

5. Landing Page / Marketing Outline

class="hero": A common CSS class name used to target the high-impact banner section at the top of a marketing page.


<button>: Creates an interactive clickable button element used to trigger actions like signing up or submitting.

===================

10 standard HTML5 document outlines and templates tailored for different use cases, ranging from a basic boilerplate to specific page layouts.


6. Contact Form Page Outline
Structured layout specifically for a contact page containing user input fields.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Contact Us</title>

</head>

<body>

    <header>

        <nav>Navigation</nav>

    </header>

    <main>

        <h1>Contact Us</h1>

        <form action="/submit-form" method="POST">

            <div>

                <label for="name">Name:</label>

                <input type="text" id="name" name="name" required>

            </div>

            <div>

                <label for="email">Email:</label>

                <input type="email" id="email" name="email" required>

            </div>

            <div>

                <label for="message">Message:</label>

                <textarea id="message" name="message" rows="5" required></textarea>

            </div>

            <button type="submit">Send Message</button>

        </form>

    </main>

    <footer>Footer</footer>

</body>

</html>

===================

Code Explanatio:

===================

6. Contact Form Page Outline

<form action="..." method="POST">: Wraps user input elements and defines where (action) and how (method) the data is sent to a server.


<label for="...">: Defines a label for a form control, improving accessibility for screen readers when clicked.


<input type="text|email">: Creates single-line input fields for text or validated email addresses.


<textarea>: Creates a multi-line plain-text editing control, ideal for user messages.


type="submit": A button type that automatically submits the parent form data.

==========================


7. Portfolio Page Outline
Designed for showcasing creative work, projects, and personal profiles.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>My Portfolio</title>

</head>

<body>

    <header>

        <h1>My Name</h1>

        <nav>

            <a href="#about">About</a>

            <a href="#projects">Projects</a>

            <a href="#contact">Contact</a>

        </nav>

    </header>

    <main>

        <section id="about">

            <h2>About Me</h2>

            <p>Short bio about skills and background.</p>

        </section>

        <section id="projects">

            <h2>Featured Projects</h2>

            <div class="project-card">Project 1</div>

            <div class="project-card">Project 2</div>

        </section>

    </main>

    <footer>

        <p>Social Links</p>

    </footer>

</body>

</html>

======================

Code Explanatio:

======================

7. Portfolio Page Outline

href="#about": Internal anchor links that smoothly scroll the user to specific id sections (id="about", id="projects") on the same page.


<section id="...">: Creates targeted bookmarkable sections for single-page portfolio navigation.

=================


8. Dashboard / Admin Layout Outline
Structured for web applications featuring sidebars and data sections.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Admin Dashboard</title>

</head>

<body>

    <div class="dashboard-container">

        <aside>

            <nav>

                <ul>

                    <li><a href="#">Home</a></li>

                    <li><a href="#">Analytics</a></li>

                    <li><a href="#">Settings</a></li>

                </ul>

            </nav>

        </aside>

        <div class="main-content">

            <header>

                <h2>Dashboard Overview</h2>

            </header>

            <main>

                <section class="widgets">Widget Area</section>

                <section class="data-table">Table Area</section>

            </main>

        </div>

    </div>

</body>

</html>

========================

Code Explanation:

========================

8. Dashboard / Admin Layout Outline

class="dashboard-container": Typically styled using CSS Grid or Flexbox to create a multi-column application layout (like a fixed sidebar next to a main scrollable content area).


<ul> and <li>: Unordered list and list items used here to structure navigation sidebars.

======================


9. E-commerce Product Page Outline
Layout for showcasing and selling an individual item.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Product Name - Store</title>

</head>

<body>

    <header>

        <nav>Store Nav & Cart</nav>

    </header>

    <main>

        <div class="product-gallery">

            <img src="product.jpg" alt="Product Image">

        </div>

        <div class="product-details">

            <h1>Product Title</h1>

            <p class="price">$99.99</p>

            <p>Product description goes here...</p>

            <button>Add to Cart</button>

        </div>

    </main>

    <footer>Store Footer</footer>

</body>

</html>

====================

Code Explanation:

====================

9. E-commerce Product Page Outline

class="product-gallery": A designated layout section to house product photography or image carousels.


class="price": A styling hook typically used to highlight product pricing prominently.

=============

10. Minimalist Single-File Layout
An ultra-lean template with embedded styling for rapid prototyping or testing snippets.


HTML

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>Minimal Template</title>

    <style>

        body { font-family: sans-serif; max-width: 600px; margin: 40px auto; padding: 0 20px; }

    </style>

</head>

<body>

    <h1>Minimal Page</h1>

    <p>Ready for quick testing.</p>

</body>

</html>

==================

10. Minimalist Single-File Layout

<style>: Embeds CSS directly inside the HTML document <head>, eliminating the need for an external stylesheet file during quick testing or rapid prototyping.

=======================


By Md. Farrukh Asif

==================


Wednesday, April 15, 2026

Practical with HTML day by day

 




Dear viewers, A computer is a practical technology. If we learn only theory, then it will cause severe harm to us.

 


Day-1:  Practical Session


What is HTML?

  1. HTML stands for Hyper Text Markup Language
  2. HTML elements label pieces of content such as "this is a heading",
  3. HTML is the standard markup language for creating Web pages
  4. HTML describes well the structure of a Web page
  5. HTML consists of a series of elements
  6. HTML elements handle the browser how to display the content

"this is a paragraph", "this is a link", etc.

 

My First Simple HTML Page

<!DOCTYPE html>
<html>
<head>
<title>My First HTML Web Page</title>
</head>
<body bgcolor=’pink’>

<h1>My First Heading</h1>
<p>My first paragraph. </p>
</body>
</html>

=====================

 

Output

=====


Example Explained

  • The <!DOCTYPE html> declaration defines that this is an HTML5 document
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the HTML page
  • The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
  • The <body> element defines the document's body, how will look and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • The <h1> element defines a large heading or bigger in size
  • The <p> element defines a paragraph and its’ content

====================================


 Day-2:  Practical Session


What is an HTML Element?

An HTML element is defined by a start tag, some content, and an end tag:

<tagname> Content goes here... </tagname>

The HTML element is everything from the start tag to the end tag:

<h1>My First Heading</h1>

<p>My first paragraph.</p>

Start tag

Element content

End tag

<h1>

My First Heading

</h1>

<p>

My first paragraph.

</p>

<br>

none

none

 Practical with HTML day by day

Note: Some HTML elements have no content (like the <br> element) are called empty elements.

 

HTML Page Structure

Below is a visualization of an HTML page structure:

 


Note: 

The content that is inside the <body> section will be displayed in a browser.

The content inside the <title> element will be shown in the browser's title bar.

Now Full code is :

<!DOCTYPE html>

<html>

<head>

<title>My First HTML Web Page</title>

</head>

<body bgcolor='lightblue'>

<h1>This is a heading</h1>

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

<p>This is another paragraph.</p>

</body>

</html>

=================

Output:


Practical with HTML day by day

==================================