Website with HTML & CSS
- 48Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- βPrevious card
- βNext card
What HTML tag is used to define a division or a section in a document?
<div>
Or swipe the card
48 cards
What HTML tag is used to define a division or a section in a document?
<div>How do you create an unordered list in HTML?
Using the
<ul>tag with<li>tags for each list item.What HTML element is used to create a hyperlink?
The
<a>(anchor) tag with anhrefattribute.How do you create a text input field in HTML?
Using the
<input>tag withtype="text".What HTML attribute specifies placeholder text in an input field?
The
placeholderattribute.How do you create a button in HTML?
Using either
<button>tag or<input type="button">.What is the purpose of the
classattribute in HTML?To assign a class name to an element for CSS styling or JavaScript manipulation.
How do you link an external CSS file to an HTML document?
Using the
<link>tag in the<head>section withrel="stylesheet"andhref="style.css".What HTML tag is used for a line break?
<br>or<br />.What CSS property sets the background color or gradient?
backgroundorbackground-color/background-image.How do you create a linear gradient background in CSS?
Using
background: linear-gradient(direction, color1, color2);.What CSS property sets the width of an element?
width(e.g.,width: 100px;).What CSS property sets the height of an element?
height(e.g.,height: 75px;orheight: 100vh;for viewport height).What CSS property removes default margins and paddings on elements?
Setting
margin: 0;andpadding: 0;.What CSS property makes an element float to the left or right?
float: left;orfloat: right;.What CSS display values create a flex container?
display: flex;ordisplay: inline-flex;.What CSS property centers items horizontally in a flex container?
justify-content: center;.What CSS property centers items vertically in a flex container?
align-items: center;.How do you remove bullet points from a list in CSS?
list-style: none;orlist-style-type: none;.What CSS property changes the color of text?
color(e.g.,color: orange;).What CSS property sets the font size?
font-size(e.g.,font-size: 35px;).What CSS property sets the font family (typeface)?
font-family(e.g.,font-family: Arial, sans-serif;).What CSS property adds space inside an element, between content and border?
padding(e.g.,padding: 10px;orpadding-left: 20px;).What CSS property adds space outside an element, between elements?
margin(e.g.,margin: auto;ormargin-top: 27px;).How do you remove underline from a link in CSS?
text-decoration: none;.What CSS property adds a smooth transition effect?
transition(e.g.,transition: 0.4s ease-in-out;).What CSS pseudo-class applies styles when an element is hovered?
:hover(e.g.,.menu li a:hover { color: orange; }).How do you make a background image dimmed using CSS linear-gradient?
Using
background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('image.jpg');.What CSS property sets the position of an element to absolute?
position: absolute;.What CSS property sets the border radius (rounded corners)?
border-radius(e.g.,border-radius: 10px;).How do you make an input field transparent in CSS?
background: transparent;orbackground-color: transparent;.What CSS property adds a border to an element?
border(e.g.,border: 2px solid orange;).How do you remove the outline on an input field when focused?
outline: none;on the input element.What CSS pseudo-class targets an input when it is focused?
:focus(e.g.,input:focus { outline: none; }).How do you change the placeholder text color in an input?
Using the
::placeholderpseudo-element (e.g.,input::placeholder { color: white; }).What CSS property changes the cursor to a hand pointer?
cursor: pointer;.How do you make a button have no border in CSS?
border: none;.What HTML tag is used to insert icons from Font Awesome?
<i>tag with class names (e.g.,<i class="fab fa-facebook"></i>).How do you change the color of Font Awesome icons in CSS?
Set the
colorproperty on the icon element (e.g.,.icons a { color: white; }).What CSS property sets the font size of Font Awesome icons?
font-size(e.g.,font-size: 30px;).How do you include Font Awesome in an HTML project?
By adding a
<link>or<script>tag to the Font Awesome CDN in the<head>.What is the purpose of the
transitionproperty on hover effects?To animate property changes smoothly over a specified duration (e.g.,
transition: 0.3s ease;).How do you center text horizontally in CSS?
text-align: center;.What CSS property adds letter spacing (tracking)?
letter-spacing(e.g.,letter-spacing: 1.2px;).What CSS property sets the line height (leading)?
line-height(e.g.,line-height: 30px;).What HTML tag is used for a heading (level 1)?
<h1>(through<h6>for lower levels).How do you create a password input field in HTML?
<input type="password">.What HTML attribute specifies the URL that a form input should go to?
The
actionattribute on<form>.

Ask anything
We've read this whole study set, so questions about it get the best answers.