Back to notes
What is the purpose of the 'Live Server' extension in Visual Studio Code?
Press to flip
The Live Server extension allows developers to view real-time updates of their web page changes in the browser during development.
Describe how Ordered Lists and Unordered Lists are structured in HTML.
Ordered lists use the <ol> tag to display items in a numbered sequence, while unordered lists use the <ul> tag for bullet points.
What are description lists in HTML, and how are they different from ordered and unordered lists?
Description lists (<dl>) pair terms and descriptions, unlike ordered (<ol>) and unordered (<ul>) lists that are simple lists of items.
What are HTML entities and why are they important?
HTML entities represent special characters in HTML (e.g., '<' as <), ensuring that these characters are displayed correctly on web pages.
What conventions should be followed when naming files for a web project and why?
Use lowercase, no spaces, and hyphens/dashes to ensure compatibility with web servers and maintain a consistent and error-free file structure.
Why is it important to validate your HTML code using a tool like the W3C Validator?
Validation helps ensure your HTML code is error-free and adheres to web standards, which contributes to better cross-browser compatibility and SEO.
Why is it necessary to use both opening and closing tags in HTML?
Both opening and closing tags are needed to properly define an HTML element and ensure the browser correctly interprets the structure and content.
How does using a 'GitHub Theme' extension benefit developers in Visual Studio Code?
It provides aesthetic dark and light themes that can improve readability and reduce eye strain depending on the developer's environment preferences.
How can you enhance the performance of images on a web page?
Enhance image performance by using responsive design practices, setting appropriate width and height, and employing lazy loading with the 'loading="lazy"' attribute.
How do semantic HTML tags improve web accessibility and SEO?
Semantic HTML tags provide clear meaning about the content, which improves accessibility for screen readers and clarity for search engine optimization (SEO).
What is the role of metadata within the <head> section of an HTML document?
Metadata provides information about the document, such as the title, character set, styles, and links to scripts, which are crucial for browser and search engine interpretation.
What are the two main sections of an HTML document and what do they typically contain?
The two main sections are <head>, which contains metadata and the <title>, and <body>, which holds the visible content on the page.
Describe the differences between absolute, relative, and internal links.
Absolute links point to a full URL, relative links are relative to the site's base URL, and internal links navigate within the same page.
What is the primary purpose of HTML in web development?
HTML defines the meaning and structure of web content, acting as the basic building block of the web.
Explain the significance of using a <label> with input elements in an HTML form.
Using a <label> improves accessibility by ensuring users can easily understand which input field they are interacting with, particularly for screen reader users.
Previous
Next