web dev

13 flashcards · Other · by Yan Cu

  1. syntax of html that outputs "hello world"

    <html> <body> <h1>HTML First Program</h1> <p>HTML Hello World.</p> </body> </html>

  2. what are the start and end tags?

    <>

  3. body tag?

    <body> </body>

  4. title tag

    <title> </title>

  5. html tag

    <html> </html>

  6. this tag gives the page title

    <head>

  7. this tag tells the internet browser about the code

    <html>

  8. this tag is the web page title

    <title>

  9. what is the code to link CSS in HTML document? (internal)

    <link rel="stylesheet" type="text/css" href="main.css" media="screen"/>

  10. code for button?

    <button type="button" onclick="myFunction()">Display date here</button>

  11. code to link javascript file?

    <script src="myscript.js"></script>

  12. how to print in javascript?

    function printwin() window.print();

  13. code to change the background color of the body?

    body{ background-color:yellow;