HTML Basics
40 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which software is recommended for writing HTML code?

  • Excel
  • Microsoft Word
  • Notepad++ (correct)
  • Photoshop
  • What do the angled brackets < and > represent in HTML?

  • HTML entities
  • HTML comments
  • Opening and closing tags (correct)
  • Special characters
  • Where does the information about the title of a webpage and how it should be displayed go in HTML?

  • Between the &lt;style&gt; tags
  • Between the &lt;body&gt; tags
  • Between the &lt;html&gt; tags
  • Between the &lt;head&gt; tags (correct)
  • Which attribute can be used to change the size of an image in HTML?

    <p>height</p> Signup and view all the answers

    What is the purpose of the 'linking to a website' exercise in the given text?

    <p>To demonstrate how to create a hyperlink in HTML</p> Signup and view all the answers

    Which HTML tag is used to create a hyperlink?

    <p>&lt;a&gt;</p> Signup and view all the answers

    Which version of HTML introduced the concept of separating formatting from the HTML document?

    <p>HTML 4.0</p> Signup and view all the answers

    What are the three ways to add styling to HTML elements?

    <p>Inline, Internal, External</p> Signup and view all the answers

    Which tag is used to create a paragraph in HTML?

    <p>&lt;p&gt;</p> Signup and view all the answers

    What is the purpose of the <br> tag in HTML?

    <p>To add a line break</p> Signup and view all the answers

    True or false: HTML stands for Hyper Text Mark-up Language?

    <p>True</p> Signup and view all the answers

    True or false: An html file is just a page of text with lines of code set in tags?

    <p>True</p> Signup and view all the answers

    True or false: The 'head' is different from the 'header' in HTML?

    <p>True</p> Signup and view all the answers

    True or false: HTML 4.0 onwards, all formatting should be removed from the HTML document, and stored in a separate CSS file.

    <p>True</p> Signup and view all the answers

    True or false: Styling can only be added to HTML elements using inline or internal methods.

    <p>False</p> Signup and view all the answers

    True or false: The background color of the body element can be changed using inline styling.

    <p>False</p> Signup and view all the answers

    True or false: The paragraph tag in HTML is represented by the <p> tag.

    <p>True</p> Signup and view all the answers

    The height and width attributes are used to change the size of an image in HTML.

    <p>True</p> Signup and view all the answers

    In the 'linking to a website' exercise, the text 'BBC news' is a hyperlink.

    <p>True</p> Signup and view all the answers

    Notepad++ is the recommended software for writing HTML code.

    <p>True</p> Signup and view all the answers

    HTML stands for ______

    <p>Hyper Text Mark-up Language</p> Signup and view all the answers

    The recommended software for writing HTML code is ______

    <p>Notepad++</p> Signup and view all the answers

    The ______ tag is used to create a paragraph in HTML

    <p>&lt;p&gt;</p> Signup and view all the answers

    ______ defines how HTML elements are to be displayed

    <p>CSS</p> Signup and view all the answers

    In this tutorial you will use ______ styling

    <p>internal</p> Signup and view all the answers

    The ______ tag is called the paragraph tag

    <p>&lt;p&gt;</p> Signup and view all the answers

    The ______ is used to create a hyperlink in HTML

    <p>&lt;a&gt;</p> Signup and view all the answers

    An image appears too big or too small on a web page, you can set the size of the image by adding the ______ and ______ attributes.

    <p>height, width</p> Signup and view all the answers

    To link to a website in HTML, you need to use the ______ tag.

    <p>a</p> Signup and view all the answers

    To view your HTML page and test the hyperlink, you can open it in ______.

    <p>IE</p> Signup and view all the answers

    Match the HTML tags with their descriptions:

    <p>&lt;img src=&quot;simpsonsfamily.png&quot; height=&quot;300&quot; width=&quot;200&quot; /&gt; = Sets the size of an image &lt;a href=&quot;http://www.bbc.co.uk/news&quot;&gt;BBC news&lt;/a&gt; = Creates a hyperlink &lt;style&gt; body {background-color:#f82} p {font-family:courier; font-size:160%;} &lt;/style&gt; = Defines the style for the body and paragraph elements &lt;title&gt;Hyperlink&lt;/title&gt; = Sets the title of the webpage</p> Signup and view all the answers

    Match the HTML attributes with their corresponding descriptions:

    <p>src=&quot;simpsonsfamily.png&quot; = Specifies the image source height=&quot;300&quot; = Specifies the image height width=&quot;200&quot; = Specifies the image width href=&quot;http://www.bbc.co.uk/news&quot; = Specifies the URL of the linked resource</p> Signup and view all the answers

    Match the CSS properties with their functions:

    <p>background-color:#f82 = Sets the background color of an element font-family:courier = Sets the font of the text font-size:160% = Sets the size of the text color:blue = Sets the color of the text</p> Signup and view all the answers

    Match the following HTML tags with their descriptions:

    <p>&lt;.DOCTYPE html&gt; = Defines the document type and version of HTML &lt;head&gt; = Container for metadata and CSS styles &lt;body&gt; = Contains the content of the web page &lt;p&gt; = Defines a paragraph</p> Signup and view all the answers

    Match the following HTML styling methods with their descriptions:

    <p>Inline = Using a style attribute in HTML elements Internal = Using a &lt;style&gt; element in the HTML &lt;head&gt; section External = Using one or more external CSS files</p> Signup and view all the answers

    Match the following HTML elements with their functions:

    <p>&lt;b&gt; = Makes the text bold &lt;i&gt; = Makes the text italic &lt;u&gt; = Underlines the text &lt;br&gt; = Adds an empty line</p> Signup and view all the answers

    Match the following terms with their definitions:

    <p>HTML = A markup language for creating web pages CSS = Defines how HTML elements are to be displayed Notepad++ = A recommended software for writing HTML code &lt;style&gt; = An HTML element used to define CSS styles</p> Signup and view all the answers

    Match the following HTML tags with their usage:

    <p>&lt;html&gt; &lt;/html&gt; = Writing in html &lt;title&gt; &lt;/title&gt; = The title of your web page &lt;img src=”pic1.jpg”&gt; &lt;/img&gt; = Putting an image in your web page &lt;h1&gt; &lt;/h1&gt; = (biggest) heading</p> Signup and view all the answers

    Match the following HTML tags with their descriptions:

    <p>&lt;head&gt; &lt;/head&gt; = All the info about your page e.g. &lt;title&gt; and &lt;style&gt; &lt;body&gt; &lt;/body&gt; = All of the content goes between these tags &lt;b&gt; &lt;/b&gt; = bold &lt;br&gt; = Break (like return) – doesn’t need to be closed</p> Signup and view all the answers

    Match the following HTML sections with their definitions:

    <p>&lt;head&gt; = Part of the page with information about the title and how we want the browser to display it &lt;body&gt; = Where all of the content goes &lt;title&gt; = The title of your web page, appearing on a tab or the title bar of the window &lt;style&gt; = Defines how you want the page to look</p> Signup and view all the answers

    More Like This

    HTML Basics Quiz
    6 questions

    HTML Basics Quiz

    SelectiveRubellite avatar
    SelectiveRubellite
    HTML Basics Quiz
    3 questions

    HTML Basics Quiz

    AmbitiousSanAntonio avatar
    AmbitiousSanAntonio
    Introduction to HTML
    5 questions

    Introduction to HTML

    MagicalBlessing avatar
    MagicalBlessing
    HTML Basics Quiz
    10 questions
    Use Quizgecko on...
    Browser
    Browser