WD - HTML - cours Level 2 Flashcards

1
Q

HTML balise to faire la référence d’un site web (mettre l’hyperlien)

A

a href=””

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You can nominate wheter to open the URL in a new window or the current window with which attributes?

A

target=

a href=”” target=”” QUACKIT/a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The target attribute can have which values?

A

_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.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Create the hyperlink to go in a place in the document. (l’éléphant)

A
  • href=”#elephants”* Jump to elephants

* h2* Elephants/h2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Create a hyperlink to an email address with the atribute:

A

“mailto”

a href=”mailto:king_kong@example.com” Email King Kong/a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Comment choisir le sujet et le contenu de ton mail automatiquement lorsque tu crée ton hyperlink pour un email address?

A

?subject=
&body=

a href=”mailto:juliaktsuzukic@gmail.com?subject=Questions for you&body=Hey there” Email to Julia /a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Pour inclure une image, dis moi tous les elements à écrire.

A

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=”” *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Dimesions using CSS for the image (comme ça même si tu utilises sur un mobile, l’image ne sera pas trop grande):

A

max-width et max-height

img style=”max-width:100%”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Image links. Make your images “clickable” so when you click the image, it opens another URL.

A
  • a href=””*
  • img*
  • /a*
  • a href=”https://www.google.fr/”*
  • img src=””*
  • /a*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to add a comment in HTML?

A

!– –

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to create a table

A
  • table*
  • tr*
    • 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
      * td
      Table cell
  • /tr*
  • /table*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Coment faire apparaitre une entité? (exemple, le signe €, ou le coeur)

A

€ ♥

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Comment sauvegarder le CSS dans un dossier à part

A

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”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly