HTML Flashcards

1
Q

Abrevation of HTML ?

A

Hyper Text Markup Language

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

Which is the Parent Element of HTML Doc ?

A

<
html><
/html>

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

What is the Hierarchical Structure of HTML ?

A

html –> head –> body

html Element Describes the entire document.
head Element Describes all Settings
body Element describes the main content

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

What is an HTML Attribute ?

A

An HTML attribute modifies the default functionality of an element.Attributes are always specified in the start tag.

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

What is the Difference between src & href attributes ?

A

The href attribute specifies the location (URL) of a resource,While the src attribute is used to embed a resource - usually URLs - into a document, think embedded images (<img></img>) and tags

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

What is an inline Elements ?

A

An inline element does not start on a new line.

It flows with the line where it used.

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

What is inline script ?

A

A Code other than HTML is considered as script in HTML Document.
Script written under HTML Document is known inline script.Advantage of an inline script is, we dont have to link another file.

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

How to load JavaSript file to HTML Document ?

A

We have to use script element to load any script file in the body of HTML Document

<
script src=”script.js”><
/script>

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

How to create relative path in src attribute ?

A

To get one level up relative pah,we have to use this notation ../ for one level up, for two level up we use
../../ , for getting multilevel up use the notation multiple times, like ../../../../ upto ntimes.

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

Where to Specify Attributes ?

A

Attributes are always Specified in Starting Tag

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