r the example below: rticle> Famous football quotes Sir Alex Ferguson once said about Filipo zaghi:"That lad must have been born offside". When criticized by John Carew, Zlatan orahimovic replied: "What Carew does with a football, I an do with an orange".| George Best said "I spent a lot of money on poze, birds and fast cars. The rest I just squandered." when sked about his lifestyle (article> ich of the following statements is true (Choose best answer only) (Choose best answer only) ? karticle>is the parent of the kh1> and the 3 kp> each is the parent of the and they contain every , kp: and are all descendants of
r the example below: rticle> Famous football quotes Sir Alex Ferguson once said about Filipo zaghi:"That lad must have been born offside". When criticized by John Carew, Zlatan orahimovic replied: "What Carew does with a football, I an do with an orange".| George Best said "I spent a lot of money on poze, birds and fast cars. The rest I just squandered." when sked about his lifestyle (article> ich of the following statements is true (Choose best answer only) (Choose best answer only) ? karticle>is the parent of the kh1> and the 3 kp> each is the parent of the and they contain every , kp: and are all descendants of
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Topic: Web

Transcribed Image Text:For the example below:
Karticle>
<h1>Famous football quotes</h1>
<p>
Sir <strong>Alex Ferguson
(strong> once said about Filipo
Inzaghi:<q>"That lad must have been born offside"</q>.
</p>
<p>
When criticized by John Carew, <strong>Zlatan
Ibrahimovic</strong> replied: <q>"What Carew does with a football, I
can do with an orange"
</p>
<p>
<strong>George Best</strong> said <q>"I spent a lot of money on
booze, birds and fast cars. The rest I just squandered."</q> when
asked about his lifestyle.
</p>
</article>
Which of the following statements is true (Choose best answer only) (Choose best answer only) ?
karticle>is the parent of the <h1> and the 3 <p>
each <p> is the parent of the <strong> and <q> they contain
every <h1>, <p>, <strong> and <q> are all descendants of <article
All of the above

Transcribed Image Text:Which of the following is true about the hierarchy of html ?
If two rules are at the same level, the one that is applied last overrides the one that is applied first
O If the specificity is the same for two or more style rules in a group, use the style
rule that's specified last.
O specific overrides generic
O All of the above
Expert Solution

Step 1
Note: Since the question is multiple one.we are advised to do only first question. Kindly post other question as new question.
Question 1:
In the given html code:
The tag <article></article> is the topmost element within which lies other tags like h1, p, strong and q.
Hence it behaves like a parent for only h1 because a parent is an element that is directly above and connected to an element in the document tree.
A descendant refers to any element that is connected but lower down the document tree.
Here the elements h1, p, strong, q are descendants of article as they are connected but lower down to documentary tree.
Also each <p> is only the parent of <strong> only.
Step by step
Solved in 2 steps

Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education