Anchor to Section

Anchor to Section

Medium HTML HTML Basics 18 views
Explanation Complexity

Problem Statement

Create a page with a link 'Jump to FAQ' that goes to a FAQ section below.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Use id and fragment link.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Use id and fragment link.

Examples

Input:
Output:
(HTML code)

Example Solution (Public)

HTML
<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>meetcode</title>
</head>
<body>
  <a href='#faq'>Jump to FAQ</a>
  <h2 id='faq'>FAQ</h2>
  <p>Common questions about meetcode.</p>
</body>
</html>

Official Solution Code

<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>meetcode</title>
</head>
<body>
  <a href='#faq'>Jump to FAQ</a>
  <h2 id='faq'>FAQ</h2>
  <p>Common questions about meetcode.</p>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.