Ans.1
There are four different position values:
•static
•relative
•fixed
•absolute
(a) Static:
This is default position. And they are not affected by any tag properties like top,left,bottom and
right.
Ex:
Hello this is Static
Explanation: The property left:50px will not do any affect to this p tag, as said it just displays as
normal flow.
(b)Relative
An element with position: relative; is positioned relative to its normal position.
That is if theres any other element above this element, then it wont effect or cover that above
element.
Ex:
Please dont come here!
Hello this is relative
Explanation: Give any top,left,right or bottom value to the p tag it wont affect the h1 tag above
it, instead it will arrange itself at a position relative to that h1 tag.
(c)Fixed
This is somewhat powerful than static and relative.
An element with position: fixed; is positioned relative to the viewport.
Ex:
Hey you will hide me for sure.
Im fixed element!
Explanation: The line in p tag is positioned to top:0px, so the element above p tag which is h1
tag will be affected by this p tag. Inorder to put at right place you need to position it carefully.
(d)Absolute
This is somewhat similar to fixed and relative.
Here the element is positioned(or fixed) according to the last element.And can't go top of its top
element.
Ex:
Hi I won't be coveredHello I will be covered
Hi Im absolute element.
Explanation: The p tag which is 'absolute' positioned to top= 0px will affect its tag above it,
that is h2 tag. But it wont affect h1 tag, so you need to position accordingly.
Ans.2
In the HTML5 standard, the <"article"> element defines a complete, self-contained block of
related elements.
The <"section"> element is defined as a block of related elements.
The article element got headers.
Ex:
Ans.3
HTML5 semantic elements:
tag Description
Defines an article
Defines content aside from the page content
Defines additional details that the user can view or hide
Defines a caption for a element
Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
Defines a footer for a document or section
Specifies a header for a document or section
Specifies the main content of a document
Defines marked/highlighted text
Defines navigation links
Defines a section in a document
Defines a visible heading for a element
Defines a date/time
Ans.4
a.
#myId, .myClass p, #myidTwo p:first-child a {
color;blue;
}
b.
#myId {
color:blue;
}
.myClass p {
color:blue;
}
#myidTwo p:first-child a {
color:blue;
}
Explanation:
Actually both (a) and (b) do same job that is putting blue color property, but they are
implemented in different ways:
In (a) it includes style property defined on set of classes and ids. So any property defined inside
it will be applied to all classes/ids(#myId, .myClass p, #myidTwo p:first-child a).This is useful
when you are going to give same colour to some set of elements .
In (b) it defines css style properties for each class/id separately. It is usefull when you want to
give different colours for different elements.
Solution
Ans.1
There are four different position values:
•static
•relative
•fixed
•absolute
(a) Static:
This is default position. And they are not affected by any tag properties like top,left,bottom and
right.
Ex:
Hello this is Static
Explanation: The property left:50px will not do any affect to this p tag, as said it just displays as
normal flow.
(b)Relative
An element with position: relative; is positioned relative to its normal position.
That is if theres any other element above this element, then it wont effect or cover that above
element.
Ex:
Please dont come here!
Hello this is relative
Explanation: Give any top,left,right or bottom value to the p tag it wont affect the h1 tag above
it, instead it will arrange itself at a position relative to that h1 tag.
(c)Fixed
This is somewhat powerful than static and relative.
An element with position: fixed; is positioned relative to the viewport.
Ex:
Hey you will hide me for sure.
Im fixed element!
Explanation: The line in p tag is positioned to top:0px, so the element above p tag which is h1
tag will be affected by this p tag. Inorder to put at right place you need to position it carefully.
(d)Absolute
This is somewhat similar to fixed and relative.
Here the element is positioned(or fixed) according to the last element.And can't go top of its top
element.
Ex:
Hi I won't be coveredHello I will be covered
Hi Im absolute element.
Explanation: The p tag which is 'absolute' positioned to top= 0px will affect its tag above it,
that is h2 tag. But it wont affect h1 tag, so you need to position accordingly.
Ans.2
In the HTML5 standard, the <"article"> element defines a complete, self-contained block of
related elements.
The <"section"> element is defined as a block of related elements.
The article element got headers.
Ex:
Ans.3
HTML5 semantic elements:
tag Description
Defines an article
Defines content aside from the page content
Defines additional details that the user can view or hide
Defines a caption for a element
Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
Defines a footer for a document or section
Specifies a header for a document or section
Specifies the main content of a document
Defines marked/highlighted text
Defines navigation links
Defines a section in a document
Defines a visible heading for a element
Defines a date/time
Ans.4
a.
#myId, .myClass p, #myidTwo p:first-child a {
color;blue;
}
b.
#myId {
color:blue;
}
.myClass p {
color:blue;
}
#myidTwo p:first-child a {
color:blue;
}
Explanation:
Actually both (a) and (b) do same job that is putting blue color property, but they are
implemented in different ways:
In (a) it includes style property defined on set of classes and ids. So any property defined inside
it will be applied to all classes/ids(#myId, .myClass p, #myidTwo p:first-child a).This is useful
when you are going to give same colour to some set of elements .
In (b) it defines css style properties for each class/id separately. It is usefull when you want to
give different colours for different elements.

More Related Content

PPT
Advanced Cascading Style Sheets
PPT
SDP_-_Module_4.ppt
PDF
Html5 p resentation by techmodi
PPTX
Introduction to Html5, css, Javascript and Jquery
PPT
HTML 5 Complete Reference
PDF
HTML5 & CSS3 Flag
PPT
Html5 accessibility
Advanced Cascading Style Sheets
SDP_-_Module_4.ppt
Html5 p resentation by techmodi
Introduction to Html5, css, Javascript and Jquery
HTML 5 Complete Reference
HTML5 & CSS3 Flag
Html5 accessibility

Similar to Ans.1 There are four different position values •static •relat.pdf (20)

PDF
1. Advanced Web Designing (12th IT) (1).pdf
PDF
[Access U 2010] HTML5 & Accessibility
PPT
Semantically Correct And Standards Compliance Html
KEY
Html5, a gentle introduction
PPTX
Html,CSS & UI/UX design
PPT
How Cascading Style Sheets (CSS) Works
PDF
Html5 deciphered - designing concepts part 1
PPTX
HTML/CSS/java Script/Jquery
PPT
Css class-02
PDF
HTML_Training_101
PDF
Introduction to html5
PPTX
css v1 guru
KEY
Html 5, a gentle introduction
PDF
HTML5 - An introduction
PDF
Html5 tutorial
PDF
Html5 tutorial
PDF
Html5 tutorial
PDF
Html5 tutorial
PDF
Html5 tutorial
PPTX
An Overview of HTML, CSS & Java Script
1. Advanced Web Designing (12th IT) (1).pdf
[Access U 2010] HTML5 & Accessibility
Semantically Correct And Standards Compliance Html
Html5, a gentle introduction
Html,CSS & UI/UX design
How Cascading Style Sheets (CSS) Works
Html5 deciphered - designing concepts part 1
HTML/CSS/java Script/Jquery
Css class-02
HTML_Training_101
Introduction to html5
css v1 guru
Html 5, a gentle introduction
HTML5 - An introduction
Html5 tutorial
Html5 tutorial
Html5 tutorial
Html5 tutorial
Html5 tutorial
An Overview of HTML, CSS & Java Script

More from anandf0099 (20)

PDF
Riboflavin is required in the conversion of carbo.pdf
PDF
PbS,Ag2O and CaSO4 are stable as they are insolub.pdf
PDF
Optio D is the correct one. .pdf
PDF
Image not seenfound .pdf
PDF
If multiple orbitals of the same energy are avail.pdf
PDF
What is a Distributed System Compare it with a computer network sys.pdf
PDF
USES OF FINANCIAL STATEMENT ANALYSISFINANCIAL STATEMENT ANALYSIS .pdf
PDF
The movement of watersolvent across the osmotic gradient takes plac.pdf
PDF
These groups are closely related not only is SO(2) a subgroup of O(.pdf
PDF
The probability of atom has zero quanta of energy is      P=Number.pdf
PDF
Copper turns green because it oxidizes. Coppe.pdf
PDF
CO2 and NO2 are acidic oxides as non-metal form a.pdf
PDF
Ques-1 Development of tube feet of CRINOIDEADevelopment of tube f.pdf
PDF
Program.csusing System; using System.Collections.Generic; usin.pdf
PDF
B. propene. Solution B. p.pdf
PDF
L{e^{-t}} = int _0 to infinty [e^{st}e^{2-t} dt = int _0 to infinty.pdf
PDF
Issue of Equity or Debt are commonly used methods for business finan.pdf
PDF
In probability we have two types of eventsIndependent Events who.pdf
PDF
i have written ths code as per your requirements with clear comments.pdf
PDF
Hi,Please fidn the Answer.Sorting,h is Header .pdf
Riboflavin is required in the conversion of carbo.pdf
PbS,Ag2O and CaSO4 are stable as they are insolub.pdf
Optio D is the correct one. .pdf
Image not seenfound .pdf
If multiple orbitals of the same energy are avail.pdf
What is a Distributed System Compare it with a computer network sys.pdf
USES OF FINANCIAL STATEMENT ANALYSISFINANCIAL STATEMENT ANALYSIS .pdf
The movement of watersolvent across the osmotic gradient takes plac.pdf
These groups are closely related not only is SO(2) a subgroup of O(.pdf
The probability of atom has zero quanta of energy is      P=Number.pdf
Copper turns green because it oxidizes. Coppe.pdf
CO2 and NO2 are acidic oxides as non-metal form a.pdf
Ques-1 Development of tube feet of CRINOIDEADevelopment of tube f.pdf
Program.csusing System; using System.Collections.Generic; usin.pdf
B. propene. Solution B. p.pdf
L{e^{-t}} = int _0 to infinty [e^{st}e^{2-t} dt = int _0 to infinty.pdf
Issue of Equity or Debt are commonly used methods for business finan.pdf
In probability we have two types of eventsIndependent Events who.pdf
i have written ths code as per your requirements with clear comments.pdf
Hi,Please fidn the Answer.Sorting,h is Header .pdf

Recently uploaded (20)

PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
20th Century Theater, Methods, History.pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
IGGE1 Understanding the Self1234567891011
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Weekly quiz Compilation Jan -July 25.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
History, Philosophy and sociology of education (1).pptx
20th Century Theater, Methods, History.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Empowerment Technology for Senior High School Guide
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
IGGE1 Understanding the Self1234567891011
LDMMIA Reiki Yoga Finals Review Spring Summer
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
My India Quiz Book_20210205121199924.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Hazard Identification & Risk Assessment .pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Weekly quiz Compilation Jan -July 25.pdf

Ans.1 There are four different position values •static •relat.pdf

  • 1. Ans.1 There are four different position values: •static •relative •fixed •absolute (a) Static: This is default position. And they are not affected by any tag properties like top,left,bottom and right. Ex: Hello this is Static Explanation: The property left:50px will not do any affect to this p tag, as said it just displays as normal flow. (b)Relative An element with position: relative; is positioned relative to its normal position. That is if theres any other element above this element, then it wont effect or cover that above element. Ex: Please dont come here! Hello this is relative Explanation: Give any top,left,right or bottom value to the p tag it wont affect the h1 tag above it, instead it will arrange itself at a position relative to that h1 tag. (c)Fixed This is somewhat powerful than static and relative. An element with position: fixed; is positioned relative to the viewport. Ex: Hey you will hide me for sure. Im fixed element! Explanation: The line in p tag is positioned to top:0px, so the element above p tag which is h1 tag will be affected by this p tag. Inorder to put at right place you need to position it carefully. (d)Absolute This is somewhat similar to fixed and relative. Here the element is positioned(or fixed) according to the last element.And can't go top of its top element. Ex:
  • 2. Hi I won't be coveredHello I will be covered Hi Im absolute element. Explanation: The p tag which is 'absolute' positioned to top= 0px will affect its tag above it, that is h2 tag. But it wont affect h1 tag, so you need to position accordingly. Ans.2 In the HTML5 standard, the <"article"> element defines a complete, self-contained block of related elements. The <"section"> element is defined as a block of related elements. The article element got headers. Ex: Ans.3 HTML5 semantic elements: tag Description Defines an article Defines content aside from the page content Defines additional details that the user can view or hide Defines a caption for a element Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. Defines a footer for a document or section Specifies a header for a document or section Specifies the main content of a document Defines marked/highlighted text Defines navigation links Defines a section in a document Defines a visible heading for a element Defines a date/time Ans.4 a. #myId, .myClass p, #myidTwo p:first-child a { color;blue; } b. #myId { color:blue; }
  • 3. .myClass p { color:blue; } #myidTwo p:first-child a { color:blue; } Explanation: Actually both (a) and (b) do same job that is putting blue color property, but they are implemented in different ways: In (a) it includes style property defined on set of classes and ids. So any property defined inside it will be applied to all classes/ids(#myId, .myClass p, #myidTwo p:first-child a).This is useful when you are going to give same colour to some set of elements . In (b) it defines css style properties for each class/id separately. It is usefull when you want to give different colours for different elements. Solution Ans.1 There are four different position values: •static •relative •fixed •absolute (a) Static: This is default position. And they are not affected by any tag properties like top,left,bottom and right. Ex: Hello this is Static Explanation: The property left:50px will not do any affect to this p tag, as said it just displays as normal flow. (b)Relative An element with position: relative; is positioned relative to its normal position. That is if theres any other element above this element, then it wont effect or cover that above element. Ex: Please dont come here!
  • 4. Hello this is relative Explanation: Give any top,left,right or bottom value to the p tag it wont affect the h1 tag above it, instead it will arrange itself at a position relative to that h1 tag. (c)Fixed This is somewhat powerful than static and relative. An element with position: fixed; is positioned relative to the viewport. Ex: Hey you will hide me for sure. Im fixed element! Explanation: The line in p tag is positioned to top:0px, so the element above p tag which is h1 tag will be affected by this p tag. Inorder to put at right place you need to position it carefully. (d)Absolute This is somewhat similar to fixed and relative. Here the element is positioned(or fixed) according to the last element.And can't go top of its top element. Ex: Hi I won't be coveredHello I will be covered Hi Im absolute element. Explanation: The p tag which is 'absolute' positioned to top= 0px will affect its tag above it, that is h2 tag. But it wont affect h1 tag, so you need to position accordingly. Ans.2 In the HTML5 standard, the <"article"> element defines a complete, self-contained block of related elements. The <"section"> element is defined as a block of related elements. The article element got headers. Ex: Ans.3 HTML5 semantic elements: tag Description Defines an article Defines content aside from the page content Defines additional details that the user can view or hide Defines a caption for a element Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. Defines a footer for a document or section
  • 5. Specifies a header for a document or section Specifies the main content of a document Defines marked/highlighted text Defines navigation links Defines a section in a document Defines a visible heading for a element Defines a date/time Ans.4 a. #myId, .myClass p, #myidTwo p:first-child a { color;blue; } b. #myId { color:blue; } .myClass p { color:blue; } #myidTwo p:first-child a { color:blue; } Explanation: Actually both (a) and (b) do same job that is putting blue color property, but they are implemented in different ways: In (a) it includes style property defined on set of classes and ids. So any property defined inside it will be applied to all classes/ids(#myId, .myClass p, #myidTwo p:first-child a).This is useful when you are going to give same colour to some set of elements . In (b) it defines css style properties for each class/id separately. It is usefull when you want to give different colours for different elements.