<htmllang="fr"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>MégaPageHTML-ChampsSignificatifs</title># CSS externe
<linkrel="stylesheet"href="style.css"># CSS interne
<style>body{font-family:Arial,sans-serif;background-color:#f9f9f9;
color:#333;
margin:20px;}h1,h2,h3{color:#2a7ae2;
}form{background-color:#eee;
padding:15px;margin:20px0;border-radius:8px;}label{display:block;margin-top:10px;}input,select,textarea{margin-top:5px;padding:5px;width:250px;}ul,ol{margin-left:20px;}</style></head><body># ##################################################
# TITRES ET PARAGRAPHES
# h1, h2, h3, p
# ##################################################
<h1>Exempledetitresetparagraphes</h1><h2>TitreH2</h2><h3>TitreH3</h3><p>Ceciestunparagraphesimple.Balise<code><p></code>.</p># ##################################################
# LIEN
# ##################################################
<h1>Lien</h1><ahref="https://www.example.com">Lienversexample.com</a># ##################################################
# IMAGE
# ##################################################
<h1>Image</h1><imgsrc="image.jpg"alt="Exemple d'image"width="200"># ##################################################
# LISTES
# ul et ol
# ##################################################
<h1>Listes</h1><h2>Listenonordonnée</h2><ul><li>Premieritem</li><li>Deuxièmeitem</li><li>Troisièmeitem</li></ul><h2>Listeordonnée</h2><ol><li>Premieritem</li><li>Deuxièmeitem</li><li>Troisièmeitem</li></ol># ##################################################
# COULEURS
# ##################################################
<h1>Couleurs</h1><pstyle="color: red;">Texterouge</p><pstyle="color: green;">Textevert</p><pstyle="background-color: yellow;">Fondjaune</p># ##################################################
# FORMULAIRE COMPLET
# Champs texte, mot de passe, radio, checkbox,
# liste déroulante, textarea, submit
# ##################################################
<h1>Formulairecomplet</h1><formaction="traitement.php"method="POST"># Champ texte : nom complet
<labelfor="champ_nom">Nomcomplet:</label><inputtype="text"id="champ_nom"name="nom_complet"suiteplaceholder="Entrez votre nom complet"># Champ texte : adresse email
<labelfor="champ_email">Email:</label>suit<inputtype="email"id="champ_email"name="email_utilisateur"placeholder="exemple@mail.com"># Mot de passe
<labelfor="champ_mdp">Motdepasse:</label><inputtype="password"id="champ_mdp"name="mot_de_passe"suiteplaceholder="Votre mot de passe"># Radio boutons : sexe
<label>Sexe:</label><inputtype="radio"id="radio_homme"name="sexe"value="homme"><labelfor="radio_homme">Homme</label><inputtype="radio"id="radio_femme"name="sexe"value="femme"><labelfor="radio_femme">Femme</label><inputtype="radio"id="radio_autre"name="sexe"value="autre"><labelfor="radio_autre">Autre</label># Checkbox : langues parlées
<label>Languesparlées:</label><inputtype="checkbox"id="chk_fr"name="langues[]"value="francais"><labelfor="chk_fr">Français</label><inputtype="checkbox"id="chk_en"name="langues[]"value="anglais"><labelfor="chk_en">Anglais</label><inputtype="checkbox"id="chk_es"name="langues[]"value="espagnol"><labelfor="chk_es">Espagnol</label># Liste déroulante : pays
<labelfor="liste_pays">Pays:</label><selectid="liste_pays"name="pays_utilisateur"><optionvalue="">--Sélectionnezvotrepays--</option><optionvalue="france">France</option><optionvalue="espagne">Espagne</option><optionvalue="italie">Italie</option><optionvalue="belgique">Belgique</option></select># Zone de texte : commentaire
<labelfor="zone_commentaire">Commentaire:</label><textareaid="zone_commentaire"name="commentaire_utilisateur"rows="5"suite->cols="50"placeholder="Écrivez votre message ici..."></textarea># Bouton submit
<br><br><inputtype="submit"value="Envoyer le formulaire"></form># ##################################################
# JAVASCRIPT
# ##################################################
<h1>JavaScript</h1><script># Exemple JS : message console et alert
console.log("Bienvenue sur la page HTML interactive !");alert("Bonjour utilisateur !");</script># Pour JS externe : <script src="script.js"></script>
# ##################################################
# PHP
# ##################################################
<h1>PHP</h1><?php# Exemple PHP simple (affiche texte côté serveur)
echo"<p>Bonjour depuis PHP !</p>";?></body></html>
During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:
Ensure the proper functioning of the site (essential cookies); and
Track your browsing to send you personalized communications if you have created a professional account on the site and can be contacted (audience measurement cookies).
With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.