HTML Flashcards
Abrevation of HTML ?
Hyper Text Markup Language
Which is the Parent Element of HTML Doc ?
<
html><
/html>
What is the Hierarchical Structure of HTML ?
html –> head –> body
html Element Describes the entire document.
head Element Describes all Settings
body Element describes the main content
What is an HTML Attribute ?
An HTML attribute modifies the default functionality of an element.Attributes are always specified in the start tag.
What is the Difference between src & href attributes ?
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
What is an inline Elements ?
An inline element does not start on a new line.
It flows with the line where it used.
What is inline script ?
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 to load JavaSript file to HTML Document ?
We have to use script element to load any script file in the body of HTML Document
<
script src=”script.js”><
/script>
How to create relative path in src attribute ?
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.
Where to Specify Attributes ?
Attributes are always Specified in Starting Tag