Les balises HTML et CSS de base
Page 1 sur 1
Les balises HTML et CSS de base
CCS : Cascading Style Sheets
<head> Balise d'en tête
Elle peut contenir toutes les balises suivantes
<title> Titre du document (n'apparait que en css)
<style> Pour changer le style du corps, passer du html au css
<base>
<link> pour lier du css codé sur une page internet
<meta>
<script>
<noscript>
LINK:
You can use the <link> element to link the HTML and CSS files together. The <link> element must be placed within the head of the HTML file. It is a self-closing tag and requires the following three attributes:
href - like the anchor element, the value of this attribute must be the address, or path, to the CSS file.
type - this attribute describes the type of document that you are linking to (in this case, a CSS file). The value of this attribute should be set to text/css.
rel - this attribute describes the relationship between the HTML file and the CSS file. Because you are linking to a stylesheet, the value should be set to stylesheet.
<ul></ul> : alinéa
<!-- commentaire -->: ajouter un commentaire (invisible sur le code en lui meme)
<br> (break) permet le retour à la ligne dans un texte
Shall I compare thee to a summer's day?<br />Thou art more lovely and more temperate
Lier :
Ouvrir <link href="lien vers adresse où est rédigé le CSS" type="text/css" rel="stylesheet">
Fermer :
<link href="/lien" type="text/css" rel="stylesheet">
Note mettre ouvrir et fermé à la suite dans le head
FAIRE DES LISTES
<li></li> : Liste non numérotée
<ol></ol> : liste numérotée
LIEN
<a
href=adresse>Nom du lien</a>
IMAGES
<img
src="http:/www.example.com/picture.jpg"/>
<head> Balise d'en tête
Elle peut contenir toutes les balises suivantes
<title> Titre du document (n'apparait que en css)
<style> Pour changer le style du corps, passer du html au css
<base>
<link> pour lier du css codé sur une page internet
<meta>
<script>
<noscript>
LINK:
You can use the <link> element to link the HTML and CSS files together. The <link> element must be placed within the head of the HTML file. It is a self-closing tag and requires the following three attributes:
href - like the anchor element, the value of this attribute must be the address, or path, to the CSS file.
type - this attribute describes the type of document that you are linking to (in this case, a CSS file). The value of this attribute should be set to text/css.
rel - this attribute describes the relationship between the HTML file and the CSS file. Because you are linking to a stylesheet, the value should be set to stylesheet.
<ul></ul> : alinéa
<!-- commentaire -->: ajouter un commentaire (invisible sur le code en lui meme)
<br> (break) permet le retour à la ligne dans un texte
Shall I compare thee to a summer's day?<br />Thou art more lovely and more temperate
Lier :
Ouvrir <link href="lien vers adresse où est rédigé le CSS" type="text/css" rel="stylesheet">
Fermer :
<link href="/lien" type="text/css" rel="stylesheet">
Note mettre ouvrir et fermé à la suite dans le head
FAIRE DES LISTES
<li></li> : Liste non numérotée
<ol></ol> : liste numérotée
LIEN
<a
href=adresse>Nom du lien</a>
IMAGES
<img
src="http:/www.example.com/picture.jpg"/>
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|