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.
What is the main function of HTML in building a basic website?
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.
What file extension should be used to properly save a basic HTML web page?
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.
What is the main role of CSS when used with HTML in web development?
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.
What type of application do you need to create and save HTML and CSS code locally?
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.
What is the correct HTML element for including an external CSS stylesheet in a webpage?
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.