Basic HTML | What is HTML? Flashcards
What does HTML stand for?
Hypertext Markup Language
What is the primary purpose of HTML?
Creating web pages
What do you see when you visit a website that is created using HTML?
Content like paragraphs, headings, links, images, and videos
What is an HTML element?
A component that represents the content and structure of a webpage
What are the two types of tags used in HTML elements?
Opening tag and closing tag
What distinguishes a closing tag from an opening tag?
The forward slash (/) in a closing tag
What are void elements in HTML?
Elements that do not have a closing tag and cannot have content
Give an example of a void element.
<img></img>
What is an attribute in HTML?
A special value used to adjust the behavior of an HTML element
What does the src attribute specify in an image element?
The location of the image
What is the purpose of the alt attribute in an image element?
To provide short, descriptive text for the images
Fill in the blank: HTML is for ________, CSS is for ________, and JavaScript is for ________.
content and structure, styling, adding interactivity
What analogy is used to compare HTML, CSS, and JavaScript?
HTML is the building blocks, CSS is the design, JavaScript is the systems
Is HTML sufficient to build a modern professional website?
No, you will also need CSS and JavaScript
What is the role of CSS in web development?
Styling the web pages
What does JavaScript add to web pages?
Interactivity
What is an attribute in HTML?
A value placed inside the opening tag of an HTML element that provides additional information about the element or specifies how the element should behave.
What is the basic syntax for an attribute?
<element></element>
What does the href attribute specify?
The URL of a link.
What happens if the href attribute is not included in a link?
The link would not work because there would be no destination URL.
What is the purpose of the src attribute in an img element?
To specify the source of an image.
What does the alt attribute provide?
Alternative descriptive text for the image.
Is the alt attribute required?
No, but it is recommended for accessibility purposes.
What does accessibility mean in the context of web content?
Making sure that everyone, including those with disabilities, can use and understand websites, apps, and physical spaces.
I am a main title
Example paragraph text