Git Product home page Git Product logo

modals's Introduction

Code HTML :

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"> <!-- Définit l'encodage des caractères de la page -->
    <link rel="stylesheet" href="style.css"> <!-- Importe une feuille de style externe -->
</head>
<body>
    <div id="titre" style="padding: 50%;"> <!-- Définit une division avec l'identifiant "titre" et un style inline pour le padding -->
        <h1 style="color: red; text-align: center;">Hello World!</h1> <!-- Affiche un titre de niveau 1 centré en rouge -->
    </div>

    <script>
        const titre = document.getElementById('titre'); // Sélectionne l'élément avec l'identifiant "titre"
        titre.addEventListener('click', () => { // Ajoute un écouteur d'événements au clic sur l'élément "titre"
            alert("Hello World!"); // Affiche une boîte de dialogue avec le message "Hello World!"
        });
    </script>
</body>
</html>

README :

Titre : Projet "Hello World" HTML

Description :

Ce projet contient un fichier HTML qui affiche un simple message "Hello World!" centré en rouge. Lorsque l'utilisateur clique sur le titre, une boîte de dialogue affiche à nouveau le message "Hello World!".

Instructions d'utilisation :

  1. Clonez ou téléchargez ce projet sur votre ordinateur.
  2. Ouvrez le fichier index.html dans votre navigateur web préféré.
  3. Cliquez sur le titre "Hello World!" pour afficher une boîte de dialogue avec le même message.

Technologies utilisées :

  • HTML
  • CSS

Auteur :

Paul-Franck Dencausse

Licence :

Open Source

modals's People

Contributors

paul-franckdencausse avatar

Stargazers

 avatar

Watchers

 avatar

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.