Podcast
Questions and Answers
Which stage of web development involves the actual creation of the site?
Which stage of web development involves the actual creation of the site?
What is the primary function of HTML in web development?
What is the primary function of HTML in web development?
Why is CSS preferred for styling multiple pages over inline styling?
Why is CSS preferred for styling multiple pages over inline styling?
What does 'index.html' represent on a web server?
What does 'index.html' represent on a web server?
Signup and view all the answers
Which component is NOT typically part of a URL?
Which component is NOT typically part of a URL?
Signup and view all the answers
What is one key characteristic of robust applications?
What is one key characteristic of robust applications?
Signup and view all the answers
Which WAI-WCAG conformance level indicates that a site should definitely meet a success criteria?
Which WAI-WCAG conformance level indicates that a site should definitely meet a success criteria?
Signup and view all the answers
What do HTML elements contain?
What do HTML elements contain?
Signup and view all the answers
What approach did WHATWG take regarding HTML standards?
What approach did WHATWG take regarding HTML standards?
Signup and view all the answers
Which of the following best describes SGML?
Which of the following best describes SGML?
Signup and view all the answers
What is the acronym that outlines the principles of web accessibility?
What is the acronym that outlines the principles of web accessibility?
Signup and view all the answers
Which of the following is not a category of disability mentioned in the content?
Which of the following is not a category of disability mentioned in the content?
Signup and view all the answers
What does the principle 'Operable' emphasize in web content accessibility?
What does the principle 'Operable' emphasize in web content accessibility?
Signup and view all the answers
Which of the following practices falls under the 'Perceivable' principle?
Which of the following practices falls under the 'Perceivable' principle?
Signup and view all the answers
What is a potential issue that should be avoided under the 'Understandable' principle?
What is a potential issue that should be avoided under the 'Understandable' principle?
Signup and view all the answers
What is the purpose of the 'alt' attribute in an image tag?
What is the purpose of the 'alt' attribute in an image tag?
Signup and view all the answers
What is the consequence of not using quotes around attribute values consistently in HTML?
What is the consequence of not using quotes around attribute values consistently in HTML?
Signup and view all the answers
Which of the following statements regarding the 'figure' element is true?
Which of the following statements regarding the 'figure' element is true?
Signup and view all the answers
How should quotes be formatted when including them within an attribute value?
How should quotes be formatted when including them within an attribute value?
Signup and view all the answers
What is the purpose of including the UTF-8 character set in an HTML document?
What is the purpose of including the UTF-8 character set in an HTML document?
Signup and view all the answers
Which of the following is a characteristic of void elements?
Which of the following is a characteristic of void elements?
Signup and view all the answers
What is the purpose of attributes in HTML elements?
What is the purpose of attributes in HTML elements?
Signup and view all the answers
Which attribute is mandatory for the image element?
Which attribute is mandatory for the image element?
Signup and view all the answers
What is true about Boolean attributes in HTML?
What is true about Boolean attributes in HTML?
Signup and view all the answers
Which statement is correct regarding quotes around attribute values?
Which statement is correct regarding quotes around attribute values?
Signup and view all the answers
What is the recommended approach to include the UTF-8 character set in an HTML document?
What is the recommended approach to include the UTF-8 character set in an HTML document?
Signup and view all the answers
What is the primary role of the meta element in an HTML document?
What is the primary role of the meta element in an HTML document?
Signup and view all the answers
What must be included in an attribute declaration in HTML?
What must be included in an attribute declaration in HTML?
Signup and view all the answers
Study Notes
Web Development Stages
- Stages of Web Development: Definition, Planning, Development, Testing, Launch, Maintenance
Client-Server Model
- Client and Server interact for website functionality
HTML
- Hypertext Markup Language: Codes the structure and content of a webpage or document
-
HTML Elements: Code the building blocks of HTML
- Body
- Sections
- Paragraphs
- Lists
- Header
- Footer
- Navigation Menu
CSS
-
Cascading Style Sheets: Codes the style of the document:
- Fonts
- Color scheme
- Layout
- Spacing
- Borders
- CSS Properties: Hundreds of properties can be used to style a document
- CSS Separation: Keeping styling separate from HTML makes it easier to maintain consistency across multiple pages and update styles easily.
Index.html
- Serves as the main index page of a website, often referred to as the home page.
- Displayed when accessing the website directory.
- Located at the root of the server's directory structure.
URL
- Uniform Resource Locator: The address of a specific resource on the web.
- Links often hide the URL.
- Components of a URL: {Protocol}://{Host}/{Path}/{Filename}
Intro to Accessibility
- Resource: WebAIM (Accessibility In Mind)
- Disability Categories: Visual, Auditory, Motor, Cognitive
WAI-WCAG
- Web Accessibility Initiative - Web Content Accessibility Guidelines
- Organization: W3C (World Wide Web Consortium)
- Components: Principles, Guidelines, Success Criteria, Techniques
- Goal: To make the web accessible to all users.
WAI-WCAG: Principles
- Define what constitutes accessible web content.
- POUR: Perceivable, Operable, Understandable, Robust
Perceivable
-
Vision Impaired:
- Font size and contrast must be clear.
- Color changes in buttons should be noticeable.
-
Hearing Impaired:
- Use captions with videos.
Operable
- All navigation should be usable by all users.
- Keyboard navigation should be supported.
- Sufficient time should be provided for reading or hearing content.
- Components should be easy to find and navigate.
- Content should not trigger seizures or physical reactions (flashing, excessive animation).
- Hand gesture interactions should provide alternatives.
Understandable
- Content should be comprehensible for everyone.
- Interactive components should not cause:
- Drastic changes in screen or font size.
- Cursor jumping or scrolling unpredictably.
- Consistent navigation is essential.
- Provide context-sensitive help.
- Avoid excessive use of acronyms.
Robust
- Web content should be resilient and difficult to break or crash.
- Content should work across different browsers and screen sizes.
- Unexpected selections should not disrupt the functionality of the application.
WAI-WCAG: Success Criteria (SC)
- Each guideline has one or more success criteria.
- Each SC is a standard, a test, or a check.
-
Conformance Levels:
- A: All sites should meet this level.
- AA: More complex to achieve, few sites meet all AA SC.
- AAA: Nice to have but not required, very specific requirements.
HTML
- An application of SGML (Standard Generalized Markup Language)
- Defines the structure and syntax of HTML using DTD (Document Type Definition)
- XML (Extensible Markup Language) is also derived from SGML, but more strict and used for transferring data over networks.
HTML History
- W3C founded by Tim Berners-Lee: Established WWW standards in 1994 after leaving CERN.
- WHATWG (Web Hypertext Application Technology Working Group): Formed in 2004 by Apple, Mozilla, and others.
- W3C and WHATWG: Had different approaches to HTML development. W3C focused on a rigid XHTML structure with fixed versions, while WHATWG favored a flexible structure and a live version with continuous updates.
- HTML 5 live version became the sole standard in 2014: WHATWG is responsible for maintaining and enhancing it.
HTML Fundamentals
- Tells browsers how to structure a webpage.
- Contains elements.
- Elements contain tags, with opening and closing pairs.
HTML Basic Structure
<p>See the cat</p>
- P is the element name: Presents text as a paragraph.
- Tags: Enclosed in "<" and ">".
- Closing tag: Includes "/" (e.g., ).
- Element: Complete item from opening to closing tag.
Nested Elements
- Elements can be nested within other elements.
Void Elements
- Don't have a closing tag.
- Typically used to insert elements into a document, such as an image:
<img src="myImage.jpg" alt="My Image">
Attributes
- Provide additional information about elements.
-
Attribute Structure:
-
attributeName="attributeValue"
-
Image Element Attributes
- src (required): Source of the image.
- alt: Alternative text displayed if the image cannot be loaded.
- width: Width of the image.
- height: Height of the image.
Boolean Attributes
-
Example:
disabled
-
Short form: Use the attribute name without a value:
disabled="disabled"
Quotes Around Attribute Values
- Always use quotes around attribute values (single or double quotes).
- Using one type of quote allows you to use the other type inside the value.
- Mixing quotes causes errors.
Structure of an HTML Document
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test page</title>
</head>
<body>
Playing with HTML
</body>
</html>
HTML Document Parts
- DOCTYPE: Historical artifact, usually included.
- html: Wraps around all page content, the root element.
- head: Contains metadata and elements not directly visible to users, such as keywords and description.
-
meta: Includes meta information about the page, such as the character set:
meta charset="UTF-8"
(encodes the majority of languages). - title: The title of the document displayed in the browser tab.
- body: Contains the main content of the page.
Minimal HTML Document
<!DOCTYPE html>
<html lang="en">
<head>
<title>test page</title>
</head>
<body>
Playing with HTML
</body>
</html>
Images
- src: Source attribute for the image (relative path preferred).
- alt: Alternative text in case the image can't be displayed.
- Important: Do not use links to absolute URLs!
-
Screen Readers: If
alt
is blank, the screen reader will read thesrc
attribute, which is usually meaningless.- If
alt=""
, the screen reader will ignore the image, assuming it's decorative.
- If
The Figure Element
- Purpose: Presents content like an image and a caption.
-
Usage:
- Typically used when referring to the figure in the text (e.g., "As seen in Figure...").
- Separates the figure from the main text.
- Not limited to images, can be used for other content.
<figure>
<img src="myImage.jpg" alt="My Image">
<figcaption>This is a photo of something</figcaption>
</figure>
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz covers the fundamental stages of web development, including the client-server model and the essential components of HTML and CSS. Test your knowledge about the structure, styling, and functionality of web pages, as well as best practices for layout and maintenance.