CS5103 slides

Cards (298)

  • What is a markup language?
    A way to annotate documents
  • What does a markup language describe about content?
    It describes the purpose of the content
  • What may markup languages comprise?
    Elements with attributes
  • Is HTML a programming language?
    No, it is a markup language
  • What does HTML stand for?
    HyperText Markup Language
  • What does the HTML Living Standard describe?
    Syntax and semantics, not presentation
  • What defines the permitted elements, attributes, and values in HTML?
    HTML Living Standard
  • Why is it important that HTML documents can be interpreted by various user agents?
    It ensures compatibility across different browsers
  • Are HTML tags case-sensitive?
    No, they are case-insensitive
  • What is the purpose of using consistent tag casing?
    For maintainability
  • What are some tags that come in pairs?
    Open and close tags
  • What is an example of a paired HTML tag?
    <h1>This is a heading</h1>
  • What are empty or void tags?
    Tags with no text content
  • What do attributes in HTML provide?
    Additional information about elements
  • How are attributes written in HTML?
    As key-value pairs within tags
  • Can some attributes be applied to any element?
    Yes, some are universal
  • How can HTML elements be nested?
    By placing tags inside the content of other tags
  • What is an example of nested HTML tags?
    <body><h1>Heading</h1></body>
  • What is required nesting in HTML?
    A list element must be inside a list
  • What nesting is not permitted in HTML?
    A paragraph cannot contain another paragraph
  • What happens if tags are interleaved incorrectly?
    User agents may misinterpret the HTML
  • What are comments in HTML used for?
    To provide information for developers
  • How are comments written in HTML?
    Using <!-- comment --> syntax
  • What should be done with comments before release?
    They should be removed
  • What does the lang attribute in the HTML root specify?
    The language of the document
  • What does the head section of an HTML document contain?
    Meta-information about the page
  • What is the purpose of the title tag in the head section?
    To display the page title in the browser
  • What does the DOCTYPE declaration specify?
    The type of HTML document
  • What happens without a DOCTYPE declaration?
    Quirks Mode is triggered
  • What does the meta tag provide in the head section?
    Data about the data
  • What is the purpose of the link tag in the head section?
    To include other files before rendering
  • What does the body section of an HTML document contain?
    Content to be displayed to the user
  • What are the broad categories of HTML tags?
    Sections, grouping, text-level semantics, etc.
  • What are some examples of section tags in HTML?
    <article>, <nav>, <header>, <h1>-<h2>
  • What are some examples of grouping tags in HTML?
    <p>, <ol>, <ul>, <li>
  • What are some examples of text-level semantic tags in HTML?
    <em>, <strong>, <abbr>, <a>
  • What are some examples of embedded content tags in HTML?
    <img>
  • What are some examples of tabular data tags in HTML?
    <table>, <thead>, <tbody>, <tfoot>
  • What are some examples of form tags in HTML?
    <form>, <label>, <input>, <button>
  • What tools were recommended for web development?
    VS Code with Web Dev Extensions