1. Home
  2. Explore
  3. Computer Science
  4. Website with HTML & CSS

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Website with HTML & CSS

  • 48Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: HTML Structure
  • 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?

Tap to flipClick to flipspace

<div>

Or swipe the card

48 cards

  1. What HTML tag is used to define a division or a section in a document?

    <div>

  2. How do you create an unordered list in HTML?

    Using the <ul> tag with <li> tags for each list item.

  3. What HTML element is used to create a hyperlink?

    The <a> (anchor) tag with an href attribute.

  4. How do you create a text input field in HTML?

    Using the <input> tag with type="text".

  5. What HTML attribute specifies placeholder text in an input field?

    The placeholder attribute.

  6. How do you create a button in HTML?

    Using either <button> tag or <input type="button">.

  7. What is the purpose of the class attribute in HTML?

    To assign a class name to an element for CSS styling or JavaScript manipulation.

  8. How do you link an external CSS file to an HTML document?

    Using the <link> tag in the <head> section with rel="stylesheet" and href="style.css".

  9. What HTML tag is used for a line break?

    <br> or <br />.

  10. What CSS property sets the background color or gradient?

    background or background-color / background-image.

  11. How do you create a linear gradient background in CSS?

    Using background: linear-gradient(direction, color1, color2);.

  12. What CSS property sets the width of an element?

    width (e.g., width: 100px;).

  13. What CSS property sets the height of an element?

    height (e.g., height: 75px; or height: 100vh; for viewport height).

  14. What CSS property removes default margins and paddings on elements?

    Setting margin: 0; and padding: 0;.

  15. What CSS property makes an element float to the left or right?

    float: left; or float: right;.

  16. What CSS display values create a flex container?

    display: flex; or display: inline-flex;.

  17. What CSS property centers items horizontally in a flex container?

    justify-content: center;.

  18. What CSS property centers items vertically in a flex container?

    align-items: center;.

  19. How do you remove bullet points from a list in CSS?

    list-style: none; or list-style-type: none;.

  20. What CSS property changes the color of text?

    color (e.g., color: orange;).

  21. What CSS property sets the font size?

    font-size (e.g., font-size: 35px;).

  22. What CSS property sets the font family (typeface)?

    font-family (e.g., font-family: Arial, sans-serif;).

  23. What CSS property adds space inside an element, between content and border?

    padding (e.g., padding: 10px; or padding-left: 20px;).

  24. What CSS property adds space outside an element, between elements?

    margin (e.g., margin: auto; or margin-top: 27px;).

  25. How do you remove underline from a link in CSS?

    text-decoration: none;.

  26. What CSS property adds a smooth transition effect?

    transition (e.g., transition: 0.4s ease-in-out;).

  27. What CSS pseudo-class applies styles when an element is hovered?

    :hover (e.g., .menu li a:hover { color: orange; }).

  28. 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');.

  29. What CSS property sets the position of an element to absolute?

    position: absolute;.

  30. What CSS property sets the border radius (rounded corners)?

    border-radius (e.g., border-radius: 10px;).

  31. How do you make an input field transparent in CSS?

    background: transparent; or background-color: transparent;.

  32. What CSS property adds a border to an element?

    border (e.g., border: 2px solid orange;).

  33. How do you remove the outline on an input field when focused?

    outline: none; on the input element.

  34. What CSS pseudo-class targets an input when it is focused?

    :focus (e.g., input:focus { outline: none; }).

  35. How do you change the placeholder text color in an input?

    Using the ::placeholder pseudo-element (e.g., input::placeholder { color: white; }).

  36. What CSS property changes the cursor to a hand pointer?

    cursor: pointer;.

  37. How do you make a button have no border in CSS?

    border: none;.

  38. What HTML tag is used to insert icons from Font Awesome?

    <i> tag with class names (e.g., <i class="fab fa-facebook"></i>).

  39. How do you change the color of Font Awesome icons in CSS?

    Set the color property on the icon element (e.g., .icons a { color: white; }).

  40. What CSS property sets the font size of Font Awesome icons?

    font-size (e.g., font-size: 30px;).

  41. 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>.

  42. What is the purpose of the transition property on hover effects?

    To animate property changes smoothly over a specified duration (e.g., transition: 0.3s ease;).

  43. How do you center text horizontally in CSS?

    text-align: center;.

  44. What CSS property adds letter spacing (tracking)?

    letter-spacing (e.g., letter-spacing: 1.2px;).

  45. What CSS property sets the line height (leading)?

    line-height (e.g., line-height: 30px;).

  46. What HTML tag is used for a heading (level 1)?

    <h1> (through <h6> for lower levels).

  47. How do you create a password input field in HTML?

    <input type="password">.

  48. What HTML attribute specifies the URL that a form input should go to?

    The action attribute on <form>.

Card 1 of 48
Card 1 of 48

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent