Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801148
Author: Terry Felke-Morris
Publisher: PEARSON
Question
Book Icon
Chapter 6, Problem 3AYK

Given code:

The given code is used to display a web page contains the style properties for heading, body, id selector and paragraph elements.

Screenshot of the web page

images

Error in the given code:

In above code, the heading style contains position property for the heading “Floating an Image”. Consider the above output, it not look fair for displaying a web page because each web page needs a good presentation.

  • Hence remove the position property from the heading style properties.
Program Plan Intro

Program Plan:

  • Include the HTML tag using <html>.
    • Include the header tag using <head>.
      • Include the style on the webpage using <style> tag.
        • Set the style properties for the body elements.
        • Set the style properties for the h1 elements.
        • Set the style properties for the paragraph elements.
        • Set the style properties for an id selector “yls”.
    • Close the header tag using </style>.
    • Close the header tag using </head>.
    • Open the body of the web page using <body> tag.
      • Include the heading of the web page using <h1> tag.
      • Include the <img> tag and add the image source along with the id selector.
      • Include the content to be displayed in the webpage using paragraph <p> tag.
    • Close the body using </body> tag.
  • Close the file using </html> tag.

Blurred answer
Students have asked these similar questions
show work
show work on paper
show work on paper
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning