Text Align Center

Text Align Center

Easy CSS Typography & Colors 27 views
Explanation Complexity

Problem Statement

Center a heading and paragraph for a meetcode banner.

Input Format

No input.

Output Format

Print the HTML+CSS code in one block.

Constraints

Use text-align: center.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use text-align: center.

Examples

Input:
Output:
(HTML+CSS code)

Example Solution (Public)

CSS
<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>meetcode</title>
  <style>
    .banner { text-align: center; padding: 24px 16px; background: #eafaf1; border-radius: 14px; }
  </style>
</head>
<body>
  <div class='banner'>
    <h1>meetcode</h1>
    <p>Practice makes you confident.</p>
  </div>
</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>
  <style>
    .banner { text-align: center; padding: 24px 16px; background: #eafaf1; border-radius: 14px; }
  </style>
</head>
<body>
  <div class='banner'>
    <h1>meetcode</h1>
    <p>Practice makes you confident.</p>
  </div>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.