StanStarishko / My-Coursework-Planner

Your coursework planner
0 stars 0 forks source link

What is HTML? (Practice) #1

Closed StanStarishko closed 5 days ago

StanStarishko commented 5 days ago

Questions:

  1. What is HTML?
  2. What are some examples of HTML tags?
  3. What does it mean to nest HTML tags?
  4. What are some examples of web browsers?
  5. Here’s an interesting question: what does HTML produce in the browser?
  6. What is parsing?
  7. What is syntax?
  8. What is an API?
  9. What is semantic HTML? What does semantic mean?
  10. Why is semantic HTML important?
StanStarishko commented 5 days ago

Answers:

  1. What is HTML? HTML stands for HyperText Markup Language. It is the standard language used to create and design web pages. HTML structures the content on the web by using various elements and tags¹.

  2. What are some examples of HTML tags? Some common HTML tags include:

    • <html>: The root element of an HTML document.
    • <head>: Contains meta-information about the document.
    • <title>: Sets the title of the document.
    • <body>: Contains the content of the document.
    • <h1> to <h6>: Header tags, with <h1> being the highest level.
    • <p>: Paragraph tag.
    • <a>: Anchor tag for hyperlinks.
    • <img>: Image tag.
    • <div>: Division or section of the document.
    • <span>: Inline container for text².
  3. What does it mean to nest HTML tags? Nesting HTML tags means placing one HTML tag inside another. For example, you can nest a <strong> tag inside a <p> tag to make a part of the paragraph bold:

    <p>This is a <strong>nested</strong> tag example.</p>
  4. What are some examples of web browsers? Some popular web browsers include:

    • Google Chrome
    • Mozilla Firefox
    • Microsoft Edge
    • Safari
    • Opera
  5. What does HTML produce in the browser? HTML produces the structure and content of a web page in the browser. When a browser parses HTML, it renders the text, images, links, and other elements defined by the HTML tags into a visual and interactive web page².

  6. What is parsing? Parsing is the process of analyzing a string of symbols, either in natural language or computer languages. In the context of web development, parsing refers to the browser reading and interpreting HTML, CSS, and JavaScript to render a web page.

  7. What is syntax? Syntax refers to the set of rules that define the structure of a language. In programming and markup languages like HTML, syntax dictates how tags and elements should be written and arranged to be correctly interpreted by the browser.

  8. What is an API? An API (Application Programming Interface) is a set of rules and protocols for building and interacting with software applications. It allows different software systems to communicate with each other. For example, a web API enables communication between a web server and a client application.

  9. What is semantic HTML? What does semantic mean? Semantic HTML refers to using HTML tags that convey the meaning of the content they enclose. For example, <article>, <section>, <header>, and <footer> are semantic tags that describe the role of the content within them. "Semantic" means relating to meaning in language or logic.

  10. Why is semantic HTML important? Semantic HTML is important because it:

    • Improves accessibility for users with disabilities by providing meaningful structure.
    • Enhances SEO (Search Engine Optimization) by helping search engines understand the content of the web page.
    • Makes the code more readable and maintainable for developers.

Sources: Conversation with Copilot, 06/10/2024 (1) HTML Tutorial - W3Schools. https://www.w3schools.com/html/. (2) HTML: HyperText Markup Language | MDN - MDN Web Docs. https://developer.mozilla.org/en-US/docs/Web/HTML. (3) Introduction to HTML - W3Schools. https://www.w3schools.com/html/html_intro.asp.

StanStarishko commented 5 days ago

I skipped 2 stages of the task "Ready" and "In progress" because the task is easy and "fast". In the future, you need to figure out how to set deadlines and priorities