Markup Languages: HTML Overview
39 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of the link element in HTML?

  • To insert multimedia content
  • To provide images for the webpage
  • To provide a variety of information to search engines (correct)
  • To validate HTML structure
  • The alt attribute in the img tag is used to replace an image with text if the image is unavailable.

    True

    What is the main purpose of validating HTML?

    To ensure that the document adheres to standard specifications and is error-free.

    JPEG format is particularly suitable for _________ images.

    <p>photographic</p> Signup and view all the answers

    Match the following image sources with their descriptions:

    <p>Digital camera/phone = Captures photographic images Graphic editor = Allows image creation and manipulation Scanner = Digitizes physical documents Image format = Defines how image data is stored</p> Signup and view all the answers

    What is the primary purpose of the DOCTYPE directive in HTML?

    <p>To instruct browsers to render the page in standards compliant mode</p> Signup and view all the answers

    The ID and class values in CSS are not case sensitive.

    <p>False</p> Signup and view all the answers

    Name one pseudo-class in CSS.

    <p>:hover</p> Signup and view all the answers

    If you do not specify a DOCTYPE, browsers will work in __________ mode.

    <p>Quirks</p> Signup and view all the answers

    Match the following CSS properties with their descriptions.

    <p>font-family = Specifies the font type font-size = Determines how large text appears font-weight = Defines the thickness of the font line-height = Sets the distance between lines of text</p> Signup and view all the answers

    Which of the following media types is recognized by CSS?

    <p>projection</p> Signup and view all the answers

    In CSS, properties set on parent elements are always inherited by child elements.

    <p>False</p> Signup and view all the answers

    What is a characteristic of the 'broken box model' used by Internet Explorer?

    <p>It measures the dimensions of a box using the inner size.</p> Signup and view all the answers

    What was the primary purpose of HTML created by Tim Berners-Lee?

    <p>To specify document layout and hypertext links</p> Signup and view all the answers

    HTML5 was released in 2014.

    <p>True</p> Signup and view all the answers

    What are the two main sections of an HTML document?

    <p>head and body</p> Signup and view all the answers

    HTML uses the ______ following the ISO10646 standard for character sets.

    <p>Universal Character Set (UCS)</p> Signup and view all the answers

    Which version of HTML introduced forms for capturing viewer information?

    <p>HTML 3.2</p> Signup and view all the answers

    Match the HTML version with its key feature:

    <p>V0 = Original HTML structure V1 = Highlighting and images V3.2 = Introduction of tables HTML5 = Vocabulary and APIs</p> Signup and view all the answers

    The tag is mandatory for every HTML document.

    <p>False</p> Signup and view all the answers

    What is the purpose of an anchor tag in HTML?

    <p>To create links to other documents or specific places within the same document</p> Signup and view all the answers

    What do Entity Tags (ETags) primarily facilitate?

    <p>Web cache validation</p> Signup and view all the answers

    The response status code 200 indicates that the request was unsuccessful.

    <p>False</p> Signup and view all the answers

    What HTTP header specifies acceptable languages and browsers?

    <p>Vary</p> Signup and view all the answers

    The HTTP status code for 'No Content' is _____.

    <p>204</p> Signup and view all the answers

    Match the HTTP status code with its description:

    <p>100 = Continue 200 = OK 404 = Not Found 500 = Internal Server Error</p> Signup and view all the answers

    Which of the following headers is used in requests to specify a byte range?

    <p>Range</p> Signup and view all the answers

    A response with status code 304 means the resource has been modified since the request was made.

    <p>False</p> Signup and view all the answers

    What does the HTTP header 'Accept-Language' indicate in a request?

    <p>The preferred language for the response</p> Signup and view all the answers

    What does UA stand for in the context of HTTP?

    <p>User Agent</p> Signup and view all the answers

    HTTP 1.0 introduced a persistent connection feature.

    <p>True</p> Signup and view all the answers

    What is the purpose of the HTTP GET method?

    <p>To retrieve information identified by the request URL.</p> Signup and view all the answers

    The request header to set timeout and maximum requests before closing is called ___.

    <p>Keep-Alive</p> Signup and view all the answers

    Match the following HTTP methods with their descriptions:

    <p>GET = Retrieve information from a URL POST = Send data to the server DELETE = Remove existing resources HEAD = Request headers only, no body</p> Signup and view all the answers

    Which of the following statements about persistent connections is true?

    <p>Connections are maintained for multiple requests.</p> Signup and view all the answers

    A connection can be closed by using the header 'Connection: keep-alive'.

    <p>False</p> Signup and view all the answers

    What is the result of a successful HTTP request indicated by 'HTTP/1.1 200 OK'?

    <p>The request was successful and the server is returning the requested resource.</p> Signup and view all the answers

    The three-way handshake used to establish a TCP connection includes SYN, ACK, and ___ messages.

    <p>ACK</p> Signup and view all the answers

    Which HTTP method is primarily used for modifying existing resources?

    <p>PUT</p> Signup and view all the answers

    Study Notes

    Markup Languages

    • HTML: Hypertext Markup Language defines the layout and hypertext links of a document.
    • Browsers use markup to display text and graphics.
    • HyperText is text with links to related documents.
    • Tim Berners-Lee of CERN developed HTML around 1990.
    • Browsers understand and interpret HTML code to display web pages.

    Versions of HTML

    • 1990 V0: The original version of HTML.
    • V1: Introduced highlighting and images.
    • 1995 V2: Included features from V0 and V1, adding forms.
    • 1997 V3.2: Released by W3C, introduced tables.
    • 1999 HTML4.01: A major revision with significant updates.
    • 2014 HTML5: Introduced new vocabulary and APIs.
    • 2017 HTML5.2: Further updates and refinements to HTML5.
    • 2019: HTML Living Standard: Continuous development and maintenance of HTML.

    HTML General Structure

    • HTML documents consist of a head and a body.
    • The leading line indicates the version of HTML used.
    • Comments in HTML are enclosed in "" and cannot be nested.
    • Some browsers like IE/Firefox are tolerant and don't require strict adherence to the and tags.

    HTML Character Set

    • HTML utilizes the Universal Character Set (UCS) defined in ISO10646.
    • Character references can be numeric or character entities.

    HTML Anchor

    • Anchor elements create links to another document or a specific section within the same document.
    • Anchor names are unique and string-matched for identification.
    • Anchor using id attributes link using href=#id where id is from another tag.
    • id and name attributes share the same name space and cannot share the same names.

    Universal Resource Identifier (URI)

    • URI specifies the scheme, host name, and path to access a resource.
    • Fragment identifiers within URIs designate a specific location within a resource.
    • Provides information to search engines.
    • Allows for alternate language versions of a document.
    • Supports different media versions of a document.
    • Links to the starting page of a document collection or stylesheets.

    Creating Graphics

    • Graphics are obtained from various sources like cameras, scanners, or graphic editors.
    • Common image formats include X-pixelmaps, GIP, JPEG, PNG, GIF, and TIFF.
    • The alt attribute in tag provides text description for accessibility if an image fails to load.
    • Images can be active with a border and a cursor change when hovered.
    • Usemap attrubute in the tag references a map in the document.

    Element

    • Inserts Name/Value pairs that describe document properties.
    • and attributes are case sensitive.

    Composite Styles

    • CSS styles can be combined to create more complex styles.
    • The font property can be used to simplify multiple style declarations.

    DOCTYPE Directive

    • Instructs modern browsers to use "standards compliant mode".
    • Ensures consistent rendering across different browsers.
    • Fonts are rendered consistently.
    • If not specified, browsers operate in "Quirks mode" which can lead to inconsistencies.

    Style Sheet Media Types

    • Allow authors to create documents for different media types.
    • Use CSS3 media queries to target specific media types.
    • Recognized media types include: all, braille, embossed, handheld, print, projection, screen, speech, tty, tv, 3d-glasses.

    Pseudo Elements and Classes

    • Pseudo-classes:
      • :link: Unvisited link.
      • :visited: Visited link.
      • :hover: Link when the mouse hovers over it.
      • :active: Link when clicked.
      • :lang: Selects element with a lang attribute.
      • :focus: Selects the input element in focus.
      • :first-child: Selects first children of a parent element.
    • Pseudo-elements:
      • :first-line: Styles the first line of a text.
      • :first-letter: Styles the first letter of a text.
      • :before: Inserts content before an element's content.
      • :after: Inserts content after an element's content.

    Inheriting Style Properties

    • Some CSS properties inherit from parent elements to child elements but not all.

    Connections

    • Persistent Connections:
      • Original HTTP protocol used a new connection for each request.
      • TCP uses a three-way handshake to establish a connection: SYN, ACK/SYN, ACK.
      • HTTP 1.0 introduced the keep-alive feature for multiple requests on a single connection.
      • Persistent connections are the default.
      • Headers like Keep-Alive and Connection: close control persistence.
    • Multiple Connections:
      • HTTP allows parallel connections, but browsers usually limit these connections.

    Example of a GET Request

    • A user clicking a link sends a GET request to the server.
    • The request includes HTTP_Method, identifier, HTTP_version, and optional Body.

    Client HTTP Request

    • HTTP request consists of four fields: HTTP_Method, identifier, HTTP_version, and Body.
    • HTTP_Methods include GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS.

    HTTP Headers

    • Divided into four categories: general, request, response, and entity.
    • Describe the content of a body.

    Byte Range Headers

    • Used to request specific byte ranges of a file.
    • Headers include If-Range, Range, and Accept-ranges.

    Entity Tags

    • Used for web cache validation and conditional requests.
    • Assigned by a server to a specific version of a resource.
    • ETags are like fingerprints identifying a resource.
    • Caches use If-None-Match header to get a new copy if ETag has changed.

    HTTP Status Codes

    • Indicate the status of the requested action.
    • Categories include Informational, Successful, Redirection, Client Error, Server Error, and Other.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    CSCI571-Notes.pdf

    Description

    This quiz covers the fundamentals of HTML, including its history, versions, and general structure. Learn about the various iterations of HTML, from its inception by Tim Berners-Lee to the latest updates in HTML Living Standard. Test your knowledge on how browsers interpret and display HTML documents.

    More Like This

    Markup Languages Quiz
    6 questions

    Markup Languages Quiz

    PlentifulBurgundy avatar
    PlentifulBurgundy
    Markup Languages: HTML & XML
    30 questions
    HTML Fundamentals for Web Development
    16 questions
    Use Quizgecko on...
    Browser
    Browser