HTML & CSS Script

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Phskumi
P
Phskumi
Community Contributor
Quizzes Created: 1 | Total Attempts: 454
Questions: 20 | Attempts: 454

SettingsSettingsSettings
HTML & CSS Script - Quiz

This quiz will test your skills on the HTML & CSS features we have used so far.


Questions and Answers
  • 1. 

    Re-write the highlighted section so that the destination of the link goes to "www.wwf.org.uk".

  • 2. 

    The image provided does not exist. Re-write the highlighted section to include the alternate text "w3schools.com" for the image.

  • 3. 

    Re-Write the highlighted text with the appropriate tags: "Universal Studios Presents" is the most important content. "Jurassic Park" is the next most important content. "About" is of lesser importance than Jurassic Park. The last sentence is just a paragraph.

  • 4. 

    Looking at the HTML document, what is the background color of the website?

  • 5. 

    Looking at the HTML document, what is the color of the h3 element when the website is being viewed?

  • 6. 

    Change the size of the image to 250 pixels wide and 400 pixels tall.

    • A.

      <img src="w3schools.jpg" width="250" height="400">

    • B.

      <img src="w3schools.jpg" width="400" height="250">

    • C.

      <img src="w3schools.jpg" width="354" height="542">

    • D.

      <img src="w3schools.jpg" w="250" h="400">

    Correct Answer
    A. <img src="w3schools.jpg" width="250" height="400">
    Explanation
    The correct answer is "" because it specifies the exact dimensions (width and height) that the image should be displayed as.

    Rate this question:

  • 7. 

    Transform the text below into a link that goes to "www.w3schools.com".

    • A.

      <a href="http://www.w3schools.com">This is a link</a>

    • B.

      <a href="http://www.w3schools.org">This is a link</a>

    • C.

      <a "http://www.w3schools.com">This is a link</a>

    • D.

      <href="http://www.w3schools.com">This is a link

    Correct Answer
    A. <a href="http://www.w3schools.com">This is a link</a>
    Explanation
    The correct answer is This is a link. This is the correct way to create a link in HTML using the anchor tag and the href attribute to specify the URL. The given code has the correct syntax and the URL is set to "http://www.w3schools.com".

    Rate this question:

  • 8. 

    To add a heading to a paragraph you would use the <h1 to h6> ... </h1 to /h6> tags.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    To add a heading to a paragraph, you would use the ... tags. This is true because HTML provides heading tags from h1 to h6 to structure the content and indicate the importance of different headings. These tags are used to define headings and create a hierarchical structure within the document.

    Rate this question:

  • 9. 

    Is this the proper way to declare "Hello World!" as a paragraph?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The given answer is false because declaring "Hello World!" as a paragraph would not be considered as the proper way. In most programming languages, a paragraph is typically represented by a block of text or multiple lines of code. To declare "Hello World!" as a paragraph, it would require additional formatting or encapsulation within paragraph tags or a similar structure.

    Rate this question:

  • 10. 

    Clean up this document with proper end tags.

    • A.

      Option 1

    • B.

      Option 2

    • C.

      Option 3

    • D.

      Option 4

    Correct Answer
    A. Option 1
    Explanation
    The given correct answer is Option 1 because it states the solution to the problem mentioned in the question. The question asks to clean up the document with proper end tags, and Option 1 suggests the correct action to be taken. Options 2, 3, and 4 do not address the issue of missing end tags, so they are not the correct answers.

    Rate this question:

  • 11. 

    Look at the HTML script to answer the question.  How many elements within the internal style sheet are being styled?

    • A.

      One

    • B.

      Two

    • C.

      Three

    • D.

      Four

    Correct Answer
    B. Two
    Explanation
    The correct answer is two because there are two elements within the internal style sheet that are being styled.

    Rate this question:

  • 12. 

    Look at the HTML script to answer the question.  How many properties within the internal style sheet are being used?

    • A.

      One

    • B.

      Two

    • C.

      Three

    • D.

      Four

    Correct Answer
    C. Three
    Explanation
    The given HTML script contains an internal style sheet, which means that the CSS properties are defined within the tags in the section of the HTML document. By examining the script, it can be determined that there are three properties being used within the internal style sheet.

    Rate this question:

  • 13. 

    Look at the HTML script to answer the question.  Which element is being styled within the inline style?

    • A.

      H1

    • B.

      Color

    • C.

      H3

    • D.

      Body

    Correct Answer
    C. H3
    Explanation
    The correct answer is h3. This is because the question asks which element is being styled within the inline style, and the h3 element is the only one mentioned in the options.

    Rate this question:

  • 14. 

    When creating a website that has multiple pages, which type of style sheet is preferred?

    • A.

      External style sheet

    • B.

      Internal style sheet

    • C.

      Inline style

    • D.

      Up-line style sheet

    Correct Answer
    A. External style sheet
    Explanation
    When creating a website with multiple pages, an external style sheet is preferred. This type of style sheet allows for the separation of the presentation of the website from its content. By linking the external style sheet to each page, any changes made to the style sheet will automatically be applied to all pages, ensuring consistent styling throughout the website. Additionally, using an external style sheet promotes code reusability and makes it easier to maintain and update the website in the future.

    Rate this question:

  • 15. 

    If you want to style one single HTML page, which type of style sheet is preferred?

    • A.

      External style sheet

    • B.

      Internal style sheet

    • C.

      Inline style

    • D.

      Up-line style sheet

    Correct Answer
    B. Internal style sheet
    Explanation
    An internal style sheet is preferred when styling a single HTML page. This is because an internal style sheet is defined within the HTML document itself, using the `` tag in the head section. It allows for the separation of the style from the content, making it easier to maintain and apply consistent styling across the entire page. Additionally, an internal style sheet takes precedence over an external style sheet, so any conflicting styles can be easily overridden.

    Rate this question:

  • 16. 

    If you want to style a single element, which type of styling is preferred?

    • A.

      External style sheet

    • B.

      Internal style sheet

    • C.

      Inline style

    • D.

      Up-line style sheet

    Correct Answer
    C. Inline style
    Explanation
    Inline style is preferred when you want to style a single element. This is because inline styles are applied directly to the specific element using the "style" attribute in the HTML tag. It allows you to define the style for that particular element without affecting other elements on the page. Inline styles are useful when you need to make quick, specific changes to a single element without the need for creating or modifying external or internal style sheets.

    Rate this question:

  • 17. 

    What does HTML stand for?

    • A.

      Hyper Text Markup Language

    • B.

      Hyperlinks and Text Markup Language

    • C.

      Home Tool Markup Language

    Correct Answer
    A. Hyper Text Markup Language
    Explanation
    HTML stands for Hyper Text Markup Language. It is the standard markup language used for creating web pages and applications. HTML allows the structuring of content on a webpage by using tags and attributes to define elements such as headings, paragraphs, links, images, and more. It is the foundation of the World Wide Web and is essential for creating and displaying web content.

    Rate this question:

  • 18. 

    Choose the correct HTML element for the largest heading:

    • A.

      <h6>

    • B.

      <head>

    • C.

      <heading>

    • D.

      <h1>

    Correct Answer
    D. <h1>
    Explanation
    The correct HTML element for the largest heading is . Headings in HTML are used to define the structure and hierarchy of a webpage. The element represents the highest level heading, typically used for the main heading or title of the page. It is the largest and most important heading on a webpage.

    Rate this question:

  • 19. 

    What is the correct HTML element for inserting a line break?

    • A.

      <break>

    • B.

      <br>

    • C.

      <lb>

    Correct Answer
    B. <br>
    Explanation
    The correct HTML element for inserting a line break is . This element is a self-closing tag and does not require a closing tag. When used, it creates a line break or a new line within a paragraph or block of text.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 01, 2015
    Quiz Created by
    Phskumi
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.