HTML Flashcards
(8 cards)
What does HTML stand for?
Hyper Text Markup Language
What is hypertext?
Text containing hyperlinks to other documents or parts of documents, allowing navigation by clicking the links.
What is the difference between block-level and inline-level elements?
Block-level elements (e.g., div, p) are rendered separately, while inline-level elements (e.g., span, a) flow with the text
What is the difference between absolute and relative URLs?
Absolute URLs include protocol, host, and path (e.g., https://example.com/page), while relative URLs are interpreted relative to the current document (e.g., page.html)
what is markup language
uses tags to structure and annotate text, defining its layout or meaning (e.g., <h1> for headings).
Unlike programming languages, it describes what content is (not how to process it).
Name the four essential elements in an HTML document.
<html>, <head>, <!DOCTYPE html>, <body>.
</body></head></html>
Name three XHTML syntax rules stricter than HTML.
Tags must be lowercase.
Attributes must be quoted: href=”link.html”.
Void elements must self-close: <br></br>.
What is the DOCTYPE declaration for HTML5?
<!DOCTYPE html>