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