Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Wednesday, May 8, 2024

React Class 2

Run First Page in React

Run First Page in React

In this guide, we'll walk through running your first page in a React application.

Step 1: Create a React Component

Start by creating a new React component. You can create a file called FirstPage.js in the src folder of your React project.

// FirstPage.js

import React from 'react';

function FirstPage() {
    return (
        <div>
            <h1>Welcome to Your First Page</h1>
            <p>This is the first page of your React application.</p>
        </div>
    );
}

export default FirstPage;

Step 2: Import and Render the Component

Next, import and render the FirstPage component in your App.js file or any other main component of your React application.

// App.js

import React from 'react';
import FirstPage from './FirstPage';

function App() {
    return (
        <div className="App">
            <FirstPage />
        </div>
    );
}

export default App;

Step 3: Run Your React Application

Now, run your React application by executing the following command in your terminal:

npm start

This command will start the development server, and you should be able to view your first page in your browser at http://localhost:3000.

That's it! You've successfully run your first page in a React application.

Wednesday, November 8, 2023

Sample Calculater Preview

Scientific Calculator










Sunday, May 21, 2023

how to Make a 3d slider with html and css

Slide 1

Slide 2

Slide 3

Slide 1

Slide 2

Slide 3

.slider-container { width: 400px; height: 300px; perspective: 1000px; margin: 0 auto; } .slider { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: slide-rotate 15s infinite; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); } .slide { position: absolute; width: 90%; height: 90%; top: 5%; left: 5%; backface-visibility: hidden; transform-style: preserve-3d; display: flex; justify-content: center; align-items: center; color: white; font-size: 24px; font-weight: bold; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); border-radius: 10px; transform: translateZ(-200px); } .slide1 { background-color: #ff6384; } .slide2 { background-color: #36a2eb; transform: translateZ(0); } .slide3 { background-color: #cc65fe; transform: translateZ(200px); } @keyframes slide-rotate { 0% { transform: rotateY(0); } 25% { transform: rotateY(-90deg); } 50% { transform: rotateY(-180deg); } 75% { transform: rotateY(-270deg); } 100% { transform: rotateY(-360deg); } }

Certainly! The code provided is an HTML and CSS implementation of a 3D slider. Here's a description of the code and its functionality:


HTML:

- The slider is contained within a `<div>` element with the class "slider-container".

- Inside the container, there is another `<div>` element with the class "slider" that holds the slides.

- The slides are represented by `<div>` elements with the classes "slide slide1", "slide slide2", and "slide slide3". Each slide contains an `<h1>` element with the slide's content.


CSS:

- The ".slider-container" class sets the dimensions of the slider container and applies a perspective effect to create the 3D view.

- The ".slider" class represents the container for the slides and specifies its positioning and appearance.

- The ".slide" class represents each individual slide. It sets the position, dimensions, and styling of the slides, such as their background color, font size, font weight, box shadow, and border radius.

- The ".slide1", ".slide2", and ".slide3" classes define the specific styles for each slide.

- The "@keyframes slide-rotate" rule specifies the animation of the slider. It rotates the slider around the Y-axis at different percentages to create a spinning effect.


The code positions the slides in a 3D space using the `translateZ` property. Each slide is positioned at a different distance from the viewer, allowing them to overlap and create a 3D effect. The slides rotate around the Y-axis to create a spinning motion.


Please note that this code provides a basic foundation for a 3D slider, and you can further customize it according to your preferences by adjusting the styles, dimensions, animation timings, or adding additional functionality.


Let me know if you need any further clarification or assistance!

Saturday, January 28, 2023

list of common HTML tags:

 The following is a list of common HTML tags:

  1. <html>
  2. <head>
  3. <title>
  4. <body>
  5. <h1> - <h6> (headings)
  6. <p> (paragraph)
  7. <a> (anchor)
  8. <img> (image)
  9. <div> (division)
  10. <span>
  11. <ul> (unordered list)
  12. <ol> (ordered list)
  13. <li> (list item)
  14. <header>
  15. <nav>
  16. <main>
  17. <section>
  18. <article>
  19. <aside>
  20. <footer>
  21. <form>
  22. <input>
  23. <label>
  24. <select>
  25. <option>
  26. <textarea>
  27. <button>
  28. <table>
  29. <tr> (table row)
  30. <th> (table header)
  31. <td> (table data)
  32. <style>
  33. <link>
  34. <meta>
  35. <script>

Thursday, November 11, 2021

Source Code of HTML Form Styling With CSS


<!DOCTYPE html>
<html>
<head>
<title>Wasim Teach</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="" type="text/css"/>
</head>
<body>
<div class="div1">
<h3  class="dmo">Demo log in Form</h3>
<input class="inp" placeHolder= "E-mail"></input>
<input class="inp" placeHolder= "Password"></input>
<button class= "btn">Log in</button>
<font  color= "white" size= "3">Forgot Password.</font>
</div>

<style>
.div1{
background-color:#000000;
width:200px;
height:250px;
position:relative;
top:50px; left:50px;
border:solid;
border-radius:0px 50px 0px 50px;
padding:40px;


}

.dmo{
color:#ffffff;
padding:0px;
border:solid;
padding:5px;
border-color:#ffff00;
border-width:0px 0px 3px 0px;
margin:10px;
}


.inp{
background-color:#8F0873;
color:#ffffff;
border:solid;
border-color:#ffffff;
border-radius: 0px 16px 0px 16px;
padding:10px;
margin:10px;

}

.inp::placeholder {
  color: yellow;
  font-size: 1.2em;
  font-style: italic;
}

.btn
{
background-color:#8F0873;
color:#ffffff;
border:solid;
border-color:#ffff00;
border-radius: 16px;
padding:4px;
margin:10px;
width:150px;
font-size:20px;


}

</style>

</body>
</html>


View Out Put of this Code

Click Here


Monday, November 8, 2021

Demo Log in Form Using HTML

This form Create with using HTML and CSS.
For Source Code Click on Source code button to view source code of this form.

Demo log in Form

Forgot Password.


For Source Code

Source Code of Calculator


Source Code of Calculator.

<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="" type="text/css"/>
</head>
<body>
<div  class="div1">
<div  class="div3">
<div  class="div2">
<font color= "white" class="result">0123456789</font>
</div>
</div>
<div  class="btn">



<button onClick="" class="sym">C</button>
<button onClick="" class="sym">00</button>
<button onClick="" class="sym">%</button>
<button onClick="" class="sym">^</button>

<br>
<button onClick="" class="num">7</button>
<button onClick="" class="num">8</button>
<button onClick="" class="num">9</button>
<button onClick="" class="sym">÷</button>
<br>
<button onClick="" class="num">4</button>
<button onClick="" class="num">5</button>
<button onClick="" class="num">6</button>
<button onClick="" class="sym">×</button>
<br>
<button onClick="" class="num">1</button>
<button onClick="" class="num">2</button>
<button onClick="" class="num">3</button>
<button onClick="" class="sym">-</button>
<br>
<button onClick="" class="num">0</button>
<button onClick="" class="num">.</button>
<button onClick="" class="num">=</button>
<button onClick="" class="sym">+</button>


</div>

</div>

<style>
.div1{
background-color:#ABAAA7;
width:350px;
height:540px;
border:solid;
border-width:5px;
border-radius:20px;
box-shadow: 4px 7px #202714;
}

.div2{
background-color:#3F393B;
width:328px;
height:70px;
border:solid;
border-radius:20px;
position:relative;
top:10px; left:3px;
padding:0px;
margin:0px;

}

.result{
padding:13px;
font-size:55px;

}

.btn{
position:relative;
top:30px;
padding:5px;
}
.num{
background-color:#1B393B;
color:#ffffff;
width:70px;
height:70px;
font-size:50px;
margin:5px;
box-shadow:2px 3px #ffffff;
}

.sym{

background-color:#703135;
color:#ffffff;
width:70px;
height:70px;
font-size:50px;
margin:5px;
box-shadow:2px 3px #ffffff;

}


.div3{
background-color:#000000;
width:340px;
height:90px;
border:solid;
border-radius:20px;
position:relative;
top:10px; left:3px;
padding:0px;
margin:0px;
box-shadow:2px 3px #ffffff;

}

</style>

</body>
</html>


How to Make Calculator By Using CSS and HTML

This Calculator design using HTML and CSS. For Source Code of this Calculator Click on View Source Code Button.
the source code and all the designs of this site is free.


 
0123456789





.
For Source Code of the Calculator
Please  


Monday, January 14, 2019

HTML Class 1 #.











Asslam o Alaikum;
dear Friends today i start a new course of Web Designing for you . A complete course with short and easy classes. so let's start your
First Class.

HTML Class 1 #.
There is first class for you making your first page with written "My first web page" . Welcome to your First Class. You know For better Website experience you need basic to advanced Knowledge of Web developing . for this you need to learn firs Basic HTML , CSS , JAVASCRIPT and then PHP.

  • HTML stand for Hyper Text Markup Language . it use for creating Webpages.
  • CSS stand for Cascade Style Sheet . it use for Styling the Webpage.
  • JAVASCRIPT it is a Scripting Language that use for Web Programming.
  • PHP stand for Personal Home Page . it use for Server Side Web Programming.
NOTE : JAVASCRIPT EXECUTE IN CLIENT SIDE AND PHP EXECUTE SERVER SIDE. Code of your first Webpage :


CODE

<!DOCTYPE html>

   <html>

      <head>

<title>www.wasimteach.blogspot.com</title>

<meta charset="UTF-8"/>

<link rel="stylesheet" href="" type="text/css"/>

      </head>

<body>

                   <font>My first web page</font>

        </body>

   </html>

OUTPUT


My first web page

HTML Class 2 #.



HTML Class 2 #.

Asslam o Alaikum dear Friends. A complete course with short and easy classes. so let's start your HTML Class.

HTML Class 2 #.
In your second class i tell you how to you style your text in a page . Styling the text like Bold Italic Underline Strike etc.


CODE

<!DOCTYPE html>
 <html>
 <head>
<title>Untitled</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="" type="text/css"/>
 </head>
<body>
<b>this text is bold<b>
<br>
<i>this text is italic<i>
<br>
<u>this text is underline<u>

 </body>
 </html>

OUTPUT


this text is bold
this text is italic
this text is underline

Sunday, January 13, 2019

HTML Class 3 #.




HTML Class 3 #.

Asslam o Alaikum
dear Friends. A complete course with short and easy classes. so let's start your HTML Class.

HTML Class 3 #.
In This class i tell you how to change color of your text in a page .


CODE

<!DOCTYPE html>
 <html>
 <head>
 <title>Untitled</title>
 <meta charset="UTF-8"/>
 <link rel="stylesheet" href="" type="text/css"/>
 </head>
 <body>
  <font color="red">This text color i set Red<font>
<font color="green">This text color i set Green<font>
<font color="blue">This text color i set Blur<font>
 </body>
 </html>

OUTPUT


This text color i set Red
This text color i set Green
This text color i set Blur

Saturday, January 12, 2019

HTML Class 4 #.


HTML Class 4 #.

Asslam o Alaikum dear Friends. A complete course with short and easy classes. so let's start your HTML Class.

HTML Class 4 #.

In This class i tell you how to change size of your text in a page .

Code :



<!DOCTYPE html>
 <html>
 <head>
 <title>Untitled</title>
 <meta charset="UTF-8"/>
 <link rel="stylesheet" href="" type="text/css"/>
 </head>
 <body>
  <font size="12">This is text of size 12<font>
<br>
<font size="16">This is text of size 14<font>
<br>
<font size="22">This is text of size 22<font>
 </body>
 </html>


OUTPUT

This is text of size 12
This is text of size 16
This is text of size 22

Thanks For reading :

Meet you in next Class.

Comment me if you have any trouble or question .

Friday, January 11, 2019

HTML Class 5 # .


HTML Class 5 #.

Asslam o Alaikum dear Friends. A complete course with short and easy classes. so let's start your HTML Class.

HTML Class 5 #.

In This class i tell you how to start a new line in a page .

Code :



<!DOCTYPE html>
 <html>
 <head>
 <title>Untitled</title>
 <meta charset="UTF-8"/>
 <link rel="stylesheet" href="" type="text/css"/>
 </head>
 <body>
  Hi their i break a line with "br tag" <br> this text will print in new line.
 </body>
 </html>


OUTPUT

  Hi their i break a line with "br tag"
  this text will print in new line.

Thanks For reading :

Meet you in next Class.

Comment me if you have any trouble or question .

Recent added

TypeScript Class 5

Common Syntax Errors in TypeScript and How to Avoid Them Syntax errors are among the most common issues developers encounter when writing Ty...