WD - HTML - cours Level 2 Flashcards
HTML balise to faire la référence d’un site web (mettre l’hyperlien)
a href=””
You can nominate wheter to open the URL in a new window or the current window with which attributes?
target=
a href=”” target=”” QUACKIT/a
The target attribute can have which values?
_blank (open the url in a new browser window)
_self (loads the url i the current browser window)
_parent (loads the url into the parent frame (still within the current browser window). It is only applicable when using frames)
_top (loads the url in the current browser window, but cancelling out any frames. Therefore, if frames were being used, they aren’t any longer.)
Create the hyperlink to go in a place in the document. (l’éléphant)
- href=”#elephants”* Jump to elephants
* h2* Elephants/h2
Create a hyperlink to an email address with the atribute:
“mailto”
a href=”mailto:king_kong@example.com” Email King Kong/a
Comment choisir le sujet et le contenu de ton mail automatiquement lorsque tu crée ton hyperlink pour un email address?
?subject=
&body=
a href=”mailto:juliaktsuzukic@gmail.com?subject=Questions for you&body=Hey there” Email to Julia /a
Pour inclure une image, dis moi tous les elements à écrire.
src (required attribute, this is the path to the image)
width (specifies la largeur de l’image)
height (specifies la hauteur)
alt (Alternate text. Specifies text to be used in case the browser/user agent can’t render to the image).
*img src=”” height=”” alt=”” *
Dimesions using CSS for the image (comme ça même si tu utilises sur un mobile, l’image ne sera pas trop grande):
max-width et max-height
img style=”max-width:100%”
Image links. Make your images “clickable” so when you click the image, it opens another URL.
- a href=””*
- img*
- /a*
- a href=”https://www.google.fr/”*
- img src=””*
- /a*
How to add a comment in HTML?
!– –
How to create a table
- table*
- tr*
- th* Table Header
* th* Table Header
* th* Table Header
- th* Table Header
- /tr*
- tr*
- td* Table cell
- td* Table cell
* td* Table cell
- /tr*
- tr*
- td* Table cell
* tdTable cell
* tdTable cell
- td* Table cell
- /tr*
- /table*
Coment faire apparaitre une entité? (exemple, le signe €, ou le coeur)
€ ♥
Comment sauvegarder le CSS dans un dossier à part
coupez/collez tout ce qui est dans dans le document HTML, sans écrire style.
Enregistrez-sous avec “monstyle.css” (IL EST IMPORTANT DE METTRE .css).
Après titre, écrivez:
link rel=”stylesheet” href=”monstyle.css”
(Il est important que le fichier css soit dans le même fichier où se trouve le html. Sinon, il va falloir créer le chemin pour y aller. Exemple: “Web Design/monstyle.css”)