<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Netflix</title> <style> /* Reset some default styles */ * { margin: 0; padding: 0; box-sizing: border-box; } /* Apply styles to the body */ body { font-family: Arial, sans-serif; background-color: #000; color: #fff; line-height: 1.6; } /* Style the header */ header { background-color: #000; padding: 20px 0; text-align: center; } header img { width: 120px; } /* Style the main content section */ main { text-align: center; padding: 80px 0; } .hero { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQMAAADCCAMAAAB6zFdcAAAAwFBMVEUAAAD/AAD///+yAABgAACWAACRAAC3AACsAACvAABcXFwIAAAOAAAdAAAmJiYRAABJAABubm4XAAA3AABmAADt7e2kpKQiAAAmAABRAABXAACgAACmAABDAAA9AACwsLA0AAB6AACJAAB6enouAACAAABsAABUAAD0AABpAADgAAAqKirS0tLrAADDAAAqAADg4OAPDw8aGhpRUVHAwMCurq6VlZVDQ0PRAADMAABzc3OIiIhnZ2fn5+fHx8c3NzfUp20mAAAE4ElEQVR4nO3bC1MaPRQG4DSsuqAgRVnuCoKghcqlgK2g/v9/9SVZdnOyiPrNdEkN7zNVa8Iwh9ewe/YCYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADuKh4da7aLscT7Rtxsz59q+y9uT7zfNISt6dPTAwjBy9yRDJrJ6bNz7cxGffvgnTzQhZBPTJ+XtHMrBe6Bd+L/JBk8JKZLea1kpcA98E4yJ3QhtMzpUkVLrhFniAyyP0gGP8zp/Fir2KkwfSKDTIYuhHtjutLTqpZKTJ3MIEv3j3fGdLWt9SyVmDq1DvydjdL4SmtbKjF1KoPsn12NUq8lXKl/rbalElOnMsj4tFHyyXS72IoUr6wVmbIwg8yuRumiVoy5nsGuRulqUIu1dj/L17bJwGyUivF0q64V33maLy3KYEej1PK0msUyUxVlYDZK/Wi6eKkNbNaZpjiDtxul2r1Wt1lnmvQ6MBql6LRara95VgtNkc7gzUZp0NEOIIM3G6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q+HHD53l5AZDHE0UUq9qv4a5/302IPeaRiEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8E/4D/eahpm4p1UbAAAAAElFTkSuQmCC'); background-size: cover; background-position: center; padding: 200px 0; } .hero h1 { font-size: 3rem; margin-bottom: 20px; } .hero p { font-size: 1.5rem; margin-bottom: 30px; } .hero button { background-color: #e50914; color: #fff; border: none; padding: 10px 20px; font-size: 1.2rem; cursor: pointer; } /* Style the footer */ footer { background-color: #000; text-align: center; padding: 20px 0; } footer p { font-size: 1rem; } </style> </head> <body> <header> <img src="netflix_logo.png" alt="Netflix Logo"> </header> <main> <section class="hero"> <h1>Unlimited movies, TV shows, and more.</h1> <p>Watch anywhere. Cancel anytime.</p> <button>Watch Now</button> </section> </main> <footer> <p>© 2023 Netflix, Inc.</p> </footer> </body> </html>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>