<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Q1 Html</title> <style> header,footer{ background-color: rgb(241, 194, 153); height:110px; } #logo{ height: 110px; width: 100px; } header> ul > li{ background-color: antiquewhite; display:inline-block; height:50px; width: 15%; border-radius: 10px; margin-top:5px; margin-right:10px; padding-left:15px; padding-right:15px; border:2px solid brown; text-align: center; } header>ul>li>a{ text-decoration: none; color:brown; font-size: xx-large; } </style> </head> <body> <header> <img id="logo" src="logo_1.png"> <ul> <li><a href="">Cafe</a></li> <li><a href="">Franchise</a></li> <li><a href="">Menu</a></li> <li><a href="">Locate Us</a></li> </ul> </header> <section> <h2>One cap and one neighbourhood at a time.</h2> <img id="logo" src="1.jpg"> <img id="logo" src="3.jpg"> <img id="logo" src="4.jpg"> <img id="logo" src="7.jpg"> <p>Specially designed cafe lounge outlet with different kind of sitting arrangements. These cafA©s combine the style and luxury of a lounge with the lively ambience and comfort of a cafe. At The Lounge we aim to create an ambience that provides a comfortable & relaxed dining experience suitable for any occasion.</p> <h4>The Lounge</h4> <p>Wider range of Food & Beverages addressing meal needs as well. Targeting a more mature and affluent group of customers. An expressive, explorative space (owing to the alternate coffee drinking experiences and world cuisine options) conductive to network and ofcourse to unwind. 42 outlets spread across seven cities.</p> <h4>The Square</h4> <p>Premium range of cafes serving Single Origin Coffees from around the world. Perfect variety of food that copmplements he wide range of coffees. Showcasing a boutique of brewing systems and coffee beans from around the world. Catering to the absolute connoisseur and the well-travelled. 7 outlets in four cities.</p> </section> <aside> <div class="cl1"> <table style="width:250px;"> <th>Coffee & Tea</th> <tr><td><a href="">Piccolo Latte</a></td></tr> <tr><td><a href="">Cappuccino</a></td></tr> <tr><td><a href="">Mochaccino</a></td></tr> </table> <br> <table style="width:250px;"> <th>Sandwiches & Starter</th> <tr><td><a href="">Vegetable Sandwich</a></td></tr> <tr><td><a href="">Paneer Toasty with Salsa</a></td></tr> <tr><td><a href="">Allo Dal ki Tikki</a></td></tr> <tr><td><a href="">Chees Balls</a></td></tr> </table> <table style="width:250px;"> <th>Pizza & Pasta</th> <tr><td><a href="">Veggie Supreme</a></td></tr> <tr><td><a href="">Paneer Vegorama</a></td></tr> <tr><td><a href="">Country Feast</a></td></tr> <tr><td><a href="">Double Cheese</a></td></tr> </table> </div> </aside> <footer> Copyright©<br> Student ID: 20BCA157<br> Student Name: Viral Patel </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>