Untitled

Cards (419)

  • HTML
    Hyper Text Markup Language
  • The World Wide Web Consortium
    The organization making the Web standards
  • HTML element for the largest heading
    • <h1>
  • HTML for adding a background color
    <body style="background-color:yellow;">
  • HTML element to define important text
    • <strong>
  • HTML element to define emphasized text
    • <em>
  • HTML for creating a hyperlink
    <a href="http://www.w3schools.com">W3Schools</a>
  • HTML to open a link in a new tab/browser window

    <a href="url" target="_blank">
  • HTML table elements
    • <table><tr><td>
  • Inline elements are normally displayed without starting a new line
  • HTML for making a checkbox
    <input type="checkbox">
  • HTML for making a text input field
    <input type="text">
  • HTML for inserting an image
    <img src="image.gif" alt="MyImage">
  • HTML for inserting a background image
    <body style="background-image:url(background.gif)">
  • HTML <iframe> is used to display a web page within a web page
  • HTML comments start with <!-- and end with -->
  • Block elements are normally displayed without starting a new line
  • Correct doctype for HTML5
    <!DOCTYPE html>
  • In HTML, you can embed SVG elements directly into an HTML page
  • HTML global attribute "contenteditable"

    Specifies whether the content of an element should be editable or not
  • HTML event attributes onblur and onfocus

    Event attributes
  • Graphics defined by SVG
    XML format
  • HTML <canvas> element
    Used to draw graphics
  • HTML element <aside>
    Content aside from the page content
  • CSS
    Cascading Style Sheets
  • Correct HTML for referring to an external style sheet
    <link rel="stylesheet" type="text/css" href="mystyle.css">
  • Incorrect HTML for referring to an external style sheet
    • <style src="mystyle.css">
    • <stylesheet>mystyle.css</stylesheet>
  • Correct place in HTML document to refer to an external style sheet

    In the <head> section
  • Incorrect places in HTML document to refer to an external style sheet
    • In the <body> section
    • At the end of the document
  • Incorrect HTML tags used to define an internal style sheet

    • <css>
    • <script>
  • Incorrect HTML attributes used to define inline styles
    • font
    • class
  • Correct CSS syntax
    body {color: black;}
  • Incorrect CSS syntax
    • {body:color=black;}
    • {body;color:black;}
    • body:color=black;
  • Correct way to insert a comment in a CSS file

    /* this is a comment */
  • Incorrect ways to insert a comment in a CSS file
    • // this is a comment //
    • // this is a comment
    • ' this is a comment
  • Incorrect CSS properties used to change the background color
    • color
    • bgcolor
  • Correct CSS to add a background color for all <h1> elements
    h1 {background-color:#FFFFFF;}
  • Incorrect CSS to add a background color for all <h1> elements
    • all.h1 {background-color:#FFFFFF;}
    • h1.all {background-color:#FFFFFF;}
  • Incorrect CSS properties used to change the text color of an element

    • text-color
    • fgcolor
  • Incorrect CSS properties used to control the text size
    • text-size
    • font-style
    • text-style