OneCompiler

Webpage

how to create a webpage ?

1 Answer

1 year ago by

Use HTML to make the page itself, use css to add style, and use JavaScript to make the page have functionality. a standard web page layout that will show up as an empty screen is written like this:

 <!DOCTYPE html>
 <html>
   <head>
     <title>My Website</title>
     <style>
       /* Write your CSS code here to format your HTML elements. */
       body {
         color:yellow;
         background-color:black;
         text-align:center;
         margin:50;
         display:block;
       }
     </style>
     <link rel="icon" type="image/x-icon" href="https://static.onecompiler.com/images/questions/42m3mua68/favicon.ico">
   </head>
   <body>
     <h1>This is A Heading</h1>
     <div></div>
     <p>And this is a paragaraph.</p>
   </body>
 </html>
 
1 year ago by AxolotlAnimates