HTML Notes Flashcards

1
Q

Describe caching

A

Caching is the process of storing recently used information so that a computer can quickly access it if required. A browser, for example, caches search information on your hard drive

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

Whats a typical workflow for implementing a website?

A
  1. brainstorm 2. mockup 3. site organization 4.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is the home page named index.html?

A

The home page is called index.html because most web servers look for a default page with the name index. In the event that someone accesses your site without specifying a file name, the server uses index as the default

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

What is a markup language?

A

A markup language is a language that uses tags to define elements within a document. A tag is a way to indicate what should be displayed on a screen when a page loads

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

What are the differences between HTML4 and HTML5

A

The differences between html4 and html5 are 1. html5 has a simplified doctype declaration 2. html5 has a canvas element 3. html5 has header and footer elements 4. html5 has the section elements 5. html5 has and elements 6. html5 passed some control to css, eg. no more , and <big> elements</big>

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

What is XHTML?

A

XHTML is extendable HTML, a more stricter version of HTML

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

What are the differences between XHTML and HTML?

A

The differences btwn XHTML and HTML are 1. XHTML is written in lower case, while HTML tags can be a mixture 2. All XHTML elements must have an end tag 3. All attributes in XHTML must be quoted 4. XHTML requires that tags are nested correctly

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

Whats the purpose of the element?

A

The element tells the browser that all of the code within is of HTML type

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

What is the purpose of ?

A

tells the browser what version of html we want to use, like so,

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

What is ?

A

is a language attribute that tells the browser which language code to use when interpreting the page, like so,

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

What type of data goes in the section?

A

The section contains machine code, mostly metadata describing how the page should be displayed, search content, etc

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

What is ?

A

is an attribute describing the character set encoding for the document, eg

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

What is unicode?

A

Unicode is a way to assign unique numbers to characters, for the computer to process, since computers only process numbers. The unique number assigned by Unicode is called a code point

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

What is UTF-8?

A

UTF-8 is a character encoding capable of encoding all possible characters, or code points, in Unicode

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

What is ASCII?

A

ASCII, American Standard Code for Information Interchange is character-encoding scheme, much like UTF-8. It is being replaced by UTF-8, which includes it (ASCII) as a subset

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

What is the target attribute used for?

A

The target attribute is used to specify where to open a linked document: _blank opens a new window _self opens the linked document in the same frame it was clicked _parent opens the linked document in the parent frame _top opens the linked document in the full body of the window

17
Q

What is http-equiv?

A

http-equiv is an attribute that is used by the server to gather information about a page in the http header

18
Q

what does meta http-equiv=’content-type’ content=’type; charset=charset’?

A

meta http-equiv=’content-type’ content=’type; charset=charset’ indicates the type of data sent to the browser

19
Q

What does http-equiv = ‘X-UA-Compatible’ content=’IE=edge” do?

A

http-equiv = ‘X-UA-Compatible’ content=’IE=edge” enables developers to specify which IE version the page should be rendered in. Edge tells IE to display the content in the highest mode available

20
Q

what does meta name=”viewport” content=”width=device-width, intial-scale=1” do?

A

meta name=”viewport” content=”width=device-width, intial-scale=1” enables mobile optimized pages to be displayed correctly on the mobile screen. In other words, viewport meta tag lets you modify the “virtual viewport” of the mobile device to something different than the default, which is to zoom out an a web page

21
Q

in meta name=”viewport” content=”width=device-width, intial-scale=1”, what does width=device-width do?

A

width=device-width sets the viewport to the physical width of the device’s screen

22
Q

in meta name=”viewport” content=”width=device-width, intial-scale=1”, what does initial-scale=1 do?

A

initial-scale=1 sets the initial zoom of the webpage to 1, meaning NO zoom

23
Q

what is HTML5 shim?

A

HTML5 shim is a JavaScript work around that enables browsers below IE9 to support HTML5

24
Q

what does ../ mean?

A

../ means go back one folder

25
Q

what is a div tag?

A

A div tag is an html tag that: 1. defines a division or section in an HTML document 2. is used to group block-elements for formatting with css

26
Q

What is the difference between a block-level element and an inline-level element?

A

A block-level element starts on a new line, and an inline-level element does not

27
Q

What are some HTML authoring best practices?

A
  1. Focus on using clear, semantic code. For example, if you are quoting an author in a book review, use the block element, instead of the paragraph element
  2. structure your code consistently throughout your site
  3. simplify your code whenever possible
  4. Approach initial coding with only the structure and content in mind, not the design