nerdexam
CompTIA

DA0-001 · Question #86

A junior web developer is developing a new application where users can upload short videos. The first task is to create a homepage that shows the headline "Upload Your Short Videos" and a clickable…

The correct answer is C. < hl >Upload Your Short Videos< /h1 >< button >upload now< /button >. The task requires a headline and a clickable button. The <h1> tag defines the most prominent heading level in HTML, making it the correct choice for a page headline. The <button> tag creates a clickable interactive element. Choice C correctly combines <h1>Upload Your Short…

Visualization

Question

A junior web developer is developing a new application where users can upload short videos. The first task is to create a homepage that shows the headline "Upload Your Short Videos" and a clickable button that says "upload now". Which of the following HTML commands would help the developer to complete the task successfully?

Options

  • A< span >Upload Your Short Videos< /span >< button >upload now< /button >
  • B< p >Upload Your Short Videos< /p >< p >upload now< /p >
  • C< hl >Upload Your Short Videos< /h1 >< button >upload now< /button >
  • D< hl >Upload Your Short Videos< /h1 >< hl >upload now< /h1 >

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    93% (50)
  • D
    4% (2)

Explanation

The task requires a headline and a clickable button. The <h1> tag defines the most prominent heading level in HTML, making it the correct choice for a page headline. The <button> tag creates a clickable interactive element. Choice C correctly combines <h1>Upload Your Short Videos</h1> with <button>upload now</button>. The <span> tag (A) is an inline container with no semantic meaning and renders no visual heading style. The <p> tags (B) are for paragraphs and produce no button. Choice D uses two <h1> tags, which provides no clickable button functionality for 'upload now'.

Topics

#HTML#Web Development#Semantic HTML#UI Elements

Community Discussion

No community discussion yet for this question.

Full DA0-001 Practice