HTML Flashcards

1
Q

HTML Boilerplate

A
(start head)
meta
stylesheet
fonts
favicons
jquery
(close head)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Elements of a Body

A
h1 to h6
paragraph ('p')
div, section, main
anchor ('a') for links
'img' tag for images

(‘script’) always at the very end. even when its linked to external source

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

Forms Inpuut and Labels

A

input tag helps in making input fields where user can input data as needed.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

The link above discusses different type of input.

Important thing to note is - Always have an #id to your input.
Because (label) have a ‘for’ keyword where you insert the input #id so they can be related to each other.

This label can be styled as a button now!

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

stylesheet

A

Stylesheets are LINKED by using LINK tag.

‘link’ tag is used with a rel=”stylesheet” after it to refer to inserting CSS stylesheet.

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

Fonts

A

Fonts can be brought in free from fonts.google.com. Or any other site you know of.
They get inserted at the header of a HTML.

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

Meta

A

Meta is used by algorithms to search for information for your page
Meta tag is also used to define the initial scale of your page.

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

DIV and Section have same or different browser-default style?

A

Div and Section have totally different user-agent stylesheet so be careful when using them.

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

Img tag

A

Used to insert image into a HTML.

Within img tag - you can easily define height and width in the same line as href.

href is the tag where you define the location of your image.

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