HTML And CSS For Designers. Part 2— Setting Up A Basic Website On… Quiz

Discover the essential steps for setting up your first website on your computer using HTML and CSS. Perfect for beginners interested in frontend development and web design basics.

  1. What is the primary purpose of using HTML when creating a website?

    What is the main function of HTML in building a basic website?

    1. To secure websites from malware
    2. To design graphic logos for the website
    3. To create the structure and content of web pages
    4. To add interactive animations to websites

    Explanation: HTML provides the foundation and structure for all content on the web. It is not used for adding interactive animations—this is typically done with JavaScript. Securing websites is not the job of HTML, but involves security protocols and best practices. Graphic logos are created with design software, not HTML code.

  2. Which file extension should you use when saving a basic webpage created with HTML?

    What file extension should be used to properly save a basic HTML web page?

    1. .html
    2. .exe
    3. .css
    4. .jpg

    Explanation: .html is the standard file extension for web pages written in HTML. .exe is used for executable applications, .css is for stylesheet files, and .jpg is for image files.

  3. How does CSS relate to HTML when designing a website?

    What is the main role of CSS when used with HTML in web development?

    1. CSS adds new content to the website automatically
    2. CSS manages server-side operations
    3. CSS controls the appearance and style of HTML elements
    4. CSS creates the underlying structure of the web page

    Explanation: CSS is responsible for changing how HTML elements look by setting properties like color, size, and spacing. It does not handle server-side operations, create the basic structure (done by HTML), or add new content automatically.

  4. Which software is required to write and save HTML and CSS files on your computer?

    What type of application do you need to create and save HTML and CSS code locally?

    1. A spreadsheet program
    2. A plain text editor
    3. A video player
    4. A photo editing application

    Explanation: A plain text editor is needed to write and save code files like HTML and CSS. Photo editing software is for images, spreadsheet programs are for data tables, and video players are used for media playback.

  5. Which element is used to link a CSS file to an HTML document?

    What is the correct HTML element for including an external CSS stylesheet in a webpage?

    1. <style>
    2. <script>
    3. <link>
    4. <img>

    Explanation: The <link> tag connects an external CSS file to an HTML document. <style> is for internal CSS, <script> is for JavaScript, and <img> is used to display images.