Code Monkey home page Code Monkey logo

my_demo_repo's People

Contributors

xectech avatar

Watchers

 avatar

my_demo_repo's Issues

Files

<title>Login</title>
<style>
    body{
        background: url(image.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        
    }

    .box{
        background-color: aqua;
        width: 400px;
        margin: 200px 0px 0px 700px;
        padding: 20px 0px 40px 30px;
        border: 2px solid rgb(0, 0, 0);
        border-radius: 20px;
    }
    .grp{
        margin: 20px;
    }

    input[type="text"],input[type="password"]{
        width: 330px;
    }

    button{
        width: 50px;
        margin: 0px 0px 0px 140px;
        background-color: green;
        border-radius: 25px;
    }
    button:hover{
        background-color: greenyellow;
    }
    
</style>

Login page

Username:
Password:
Login
<script>
    function validate(){
        //let or var to initialise a variable
        var uname = document.forms.myform.username.value;
        var pass = document.forms.myform.password.value;

        //username validation
        if(uname === ""){
            alert("username should not be empty!!");
            return false;
        }
        if(pass === ""){
            alert("password should not be empty!!");
            return false;
        }

        //username and password check
        if(uname === "Saqlin" && pass === "satarkar"){
            window.location.href="home.html";
        }else{
            alert("Wrong username or password");
        }
    }
</script>
Login page

โ€ ***********
Answers of all this

CRUD Operations

CRUD is an acronym for Create, Read, Update, and Delete, which are the four basic data manipulation operations. These operations are essential for any application that needs to store and manage data.

  • Create: This operation allows the user to insert new data into the database.
  • Read: This operation allows the user to retrieve data from the database.
  • Update: This operation allows the user to modify existing data in the database.
  • Delete: This operation allows the user to remove data from the database.

JavaScript Validations

JavaScript validations are used to ensure that the data entered by the user is correct and complete. This can help to prevent errors and improve the overall user experience.

There are many different types of JavaScript validations, but some of the most common include:

  • Required fields: These are fields that the user must enter a value for before the form can be submitted.
  • Data types: These are validations that ensure that the data entered by the user is of the correct type, such as a number, email address, or date.
  • Range: These are validations that ensure that the data entered by the user falls within a specific range.
  • Length: These are validations that ensure that the data entered by the user is of a specific length.

Basics of Inline CSS

Inline CSS is a way of applying CSS styles to an HTML element directly in the HTML code. This can be a useful way to quickly style an element without having to create a separate CSS file.

To use inline CSS, you simply add the style attribute to the HTML element and then specify the CSS styles you want to apply. For example, the following code will set the background color of a paragraph element to red:

<p style="background-color: red;">This is a paragraph with inline CSS.</p>

Login Page and Navigation to Next Page

A login page is a web page that allows users to enter their username and password in order to access a secure area of a website. After a successful login, the user is typically navigated to a home page or other relevant page.

There are many different ways to implement a login page, but the basic steps are as follows:

  1. Create a login form with fields for the username and password.
  2. When the user submits the form, send the username and password to the server for validation.
  3. If the username and password are valid, log the user in and navigate them to the next page.
  4. If the username and password are not valid, display an error message to the user.

XML to Schema Conversion

An XML schema is a document that describes the structure of an XML document. It defines the elements, attributes, and data types that can be used in the document.

There are two main ways to convert an XML document to an XML schema:

  1. Manually: This involves creating the schema by hand. This can be a time-consuming process, but it is the most accurate way to create a schema.
  2. Automatically: There are a number of tools that can automatically generate an XML schema from an XML document. These tools are not always accurate, but they can be a good starting point.

XML to DTD Conversion

An XML DTD (Document Type Definition) is another type of document that describes the structure of an XML document. It is similar to an XML schema, but it is less powerful and less flexible.

There are two main ways to convert an XML document to an XML DTD:

  1. Manually: This involves creating the DTD by hand. This can be a time-consuming process, but it is the most accurate way to create a DTD.
  2. Automatically: There are a number of tools that can automatically generate an XML DTD from an XML document. These tools are not always accurate, but they can be a good starting point.

File 3

xml and then convert xml to dtd/ schema


abc efc

****************************************""

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="doctors">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="doctor" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="type" type="xs:string"/>
                        <xs:element name="name" type="xs:string"/>
                    </xs:sequence>
                    <xs:attribute name="type" type="xs:string" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>

<xs:element name="doctor">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="type" type="xs:string"/>
            <xs:element name="name" type="xs:string"/>
        </xs:sequence>
        <xs:attribute name="type" type="xs:string" use="required"/>
    </xs:complexType>
</xs:element>

<xs:element name="name">
    <xs:simpleType>
        <xs:restriction base="xs:string"/>
    </xs:simpleType>
</xs:element>

</xs:schema>


abc efc

Files 2

xml and then convert xml to dtd/ schema


abc efc

****************************************""

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="doctors">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="doctor" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="type" type="xs:string"/>
                        <xs:element name="name" type="xs:string"/>
                    </xs:sequence>
                    <xs:attribute name="type" type="xs:string" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>

<xs:element name="doctor">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="type" type="xs:string"/>
            <xs:element name="name" type="xs:string"/>
        </xs:sequence>
        <xs:attribute name="type" type="xs:string" use="required"/>
    </xs:complexType>
</xs:element>

<xs:element name="name">
    <xs:simpleType>
        <xs:restriction base="xs:string"/>
    </xs:simpleType>
</xs:element>

</xs:schema>


abc efc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.