stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Introduction to HTML & CSS Flashcards | StudBud
Explore
/
Introduction to HTML & CSS
Introduction to HTML & CSS
40 terms
·
StudBud Administration
·
118 plays
Form 1, aimed at testing introductory knowledge of HTML and CSS
Flashcards
40 cards
F
Practice quiz
P
Host live
L
Questions
40
Answers
1
What is the primary purpose of a table in HTML?
A) To create bullet points
C) To add images
B) To organize data in rows and columns
D) To format text
2
What is the purpose of the `<!DOCTYPE html>` declaration at the beginning of an HTML document?
B) To declare the document type and version
A) To specify the character encoding of the document
C) To define the layout of the page
D) To specify the background color of the page
3
Which command is used to upload changes from your local repository to GitHub?
B) git push
A) git upload
D) git clone
C) git send
4
Which HTML tag is used to create a description list?
D) <list>
C) <ol>
B) <dl>
A) <ul>
5
Which HTML tag is used to define an image?
D. <imgsrc>
A. <image>
B. <img>
C. <pic>
6
Which HTML tag pair would you use to end an ordered list?
D) </li>
B) </ol>
A) </ul>
C) </list>
7
What is GitHub primarily used for?
B) Document sharing
C) Version control and collaboration
D) Video streaming
A) Image editing
8
Which HTML tag is used for the lowest level heading?
B) <h2>
B) <h1>
B) <h6>
A) <p>
9
Which CSS property helps to add spacing inside each navigation link?
A) padding
B) border-spacing
C) margin
D) float
10
What is the default bullet style for items in an unordered list?
D) Letters
A) Squares
B) Numbers
C) Discs (solid circles)
11
What does HTML stand for?
C. Hyperlinks and Text Markup Language
D. Hyper Tool Markup Language
A. Hyper Text Markup Language
B. Home Tool Markup Language
12
Which CSS property controls the size of text?
D) size
B) font-size
C) text-size
A) font-weight
13
How do you center-align text in CSS?
B) align: center;
D) center-align: text;
C) text: center;
A) text-align: center;
14
What is HTML?
A) A programming language used for web development
B) A markup language used for structuring content on the web
C) A database management system
D) A software framework for building applications
15
In an ordered list, which tag is used to represent each item?
C) <ol>
B) <ul>
A) <item>
D) <li>
16
Which HTML attribute specifies an image's alternative text?
A. title
C. src
D. description
B. alt
17
What is an ordered list in HTML?
A) A list that shows images in a row
C) A list that displays items in random order
D) A list used only for tables
B) A list where each item has a specific numerical order
18
What does the border attribute do in a table?
C) Centers the table on the page
B) Changes the background color
A) Adds a border around each cell and the table
D) Defines the number of columns
19
Which HTML tag creates a horizontal rule?
C) <img>
D) <table>
B) <br>
A) <hr>
20
What is a “repository” on GitHub?
A) A collection of commands
B) A storage location(folder) for project files
C) A website
D) A programming language
21
What command is used to copy a repository in Git?
D) git fork
B) git clone
C) git push
A) git pull
22
Which attribute within the <a> tag opens a link in a new tab?
A) newtab="yes"
D) open="new"
B) target="_blank"
C) target="tab"
23
How do you make text bold in HTML?
D. Both B and C
A. <bold>
B. <b>
C. <strong>
24
Which HTML tag is used to define a paragraph?
B. <p>
D. <pr>
C. <paragraph>
A. <para>
25
Which HTML tag is used to define a table?
<tb>
<table>
<tr>
<td>
26
What does <dt> stand for in a description list?
B) Description term
A) Description title
D) Detailed term
C) Defined term
27
Which CSS property is used to change the text color?
A. text-color
B. color
C. font-color
D. text-style
28
Which HTML tags are typically used for links in a navigation bar?
A) <link>
B) <a>
29
How do you change the text color in CSS?
D) background-color: blue;
B) text-color: blue;
C) font-color: blue;
A) color: blue;
30
What is the correct HTML element for inserting a line break?
C. <br>
D. <linebreak>
A. <break>
B. <lb>
31
Which CSS property is used to set the font size?
A. text-size
D. size
C. font-size
B. font-style
32
What command is used to check the current status of your Git repository?
C) git log
B) git status
A) git check
D) git commit
33
Which tags are used to define a table, table header and table cell?
C) <table>, <header>, <cell>
D) <thead>, <td>, <tr>
B) <table>, <th>, <td>
A) <table>, <td>, <tr>
34
Which HTML tag is used to create an ordered list?
B) <li>
D) <order>
A) <ul>
C) <ol>
35
Which symbol is used to select a class in CSS?
C) *
B) .
D) @
A) #
36
What is an unordered list in HTML?
B) A list that uses bullet points instead of numbers
D) A list that changes color automatically
C) A list with images
A) A list with items in numbered order
37
How do you add a background color in CSS?
D. color
C. bg-color
B. color-background
A. background-color
38
What is CSS used for?
A) To create web pages
C) To program web applications
D) To manage databases
B) To style web pages
39
What HTML element is commonly used to create a navigation bar?
B) <header>
D) <section>
C) <nav>
A) <footer>
40
Which of the following is NOT part of a description list?
D) <dd>
B) <dt>
A) <dl>
C) <li>