HTML Exercises for Computer Science Grade 10, Exams of Computer Science

A comprehensive list of html exercises and their solutions, covering various aspects of html, including tags, attributes, and basic table creation. It is designed for students in grade 10 computer science, offering a practical approach to learning html concepts.

Typology: Exams

2023/2024

Available from 11/03/2024

Examproff
Examproff 🇺🇸

3

(2)

8.3K documents

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Science Grade 10: HTML
2024/2025 Test- Solved
<a> - ANSWER-Anchor tag. Used to create a link to another document.
<b> - ANSWER-Bold
<b> (Physical Based) - ANSWER-Bold text. Physical based.
<big> - ANSWER-Makes text bigger than other text on page.
<big> (Physical based) - ANSWER-Increases the size of text. Physical based.
<body style="background-color:yellow;"> - ANSWER-Adds background colour.
<cite> - ANSWER-Identifies a bibliographic citation. Content based.
<code> - ANSWER-identifies monospaced text, such as programming code. Content
based
<colspan> - ANSWER-attribute which allows a cell to span over several columns.
<del> - ANSWER-Adds a strikeout to text.
<dfn> - ANSWER-Indicates definitions. Content based.
<div> (sometimes <br>) - ANSWER-Page divide. Forces white space.
<dl> - ANSWER-Definition lists contain definitions.
<dt>, <dd> - ANSWER-Definition term and definition definition.
<em> - ANSWER-Emphasizes text, making it look italicized.
<em> (content based) - ANSWER-Adds emphasis to text. Content based.
<font> - ANSWER-Used to customize the text.
<h1> - <h6> - ANSWER-Defines HTML headings. (1=biggest;6=smallest)
<i> - ANSWER-Italic
<i> (Physical based) - ANSWER-Italicized text. Physical based.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download HTML Exercises for Computer Science Grade 10 and more Exams Computer Science in PDF only on Docsity!

Computer Science Grade 10: HTML

2024/2025 Test- Solved

  • ANSWER-Anchor tag. Used to create a link to another document. - ANSWER-Bold (Physical Based) - ANSWER-Bold text. Physical based.
  • ANSWER-Makes text bigger than other text on page. (Physical based) - ANSWER-Increases the size of text. Physical based.
  • ANSWER-Adds background colour.
  • ANSWER-Identifies a bibliographic citation. Content based.
  • ANSWER-identifies monospaced text, such as programming code. Content based
  • ANSWER-attribute which allows a cell to span over several columns.
  • ANSWER-Adds a strikeout to text.
  • ANSWER-Indicates definitions. Content based. (sometimes
    ) - ANSWER-Page divide. Forces white space.
  • ANSWER-Definition lists contain definitions. , - ANSWER-Definition term and definition definition.
  • ANSWER-Emphasizes text, making it look italicized. (content based) - ANSWER-Adds emphasis to text. Content based.
  • ANSWER-Used to customize the text.
    • ANSWER-Defines HTML headings. (1=biggest;6=smallest) - ANSWER-Italic (Physical based) - ANSWER-Italicized text. Physical based.

  • ANSWER-Places an inline image on the web page.
  • ANSWER-Identifies text that is typed on a keyboard. Content based.
  • ANSWER-Highlights text
  • ANSWER-Makes text scroll across page.
  • ANSWER-Ordered lists which contain numbered items.

- ANSWER-Paragraph.

- ANSWER-Used to create text tables. In HTML, a series of spaces or empty lines will be condensed into one space unless the font is formatted with preformatted font. ; - ANSWER-Short quote ; long quote - ANSWER-attribute which allows a cell to span over several rows. - ANSWER-Strike through text. Physical based. - ANSWER-Identifies a sequence of literal characters. Content based. - ANSWER-Makes text smaller than other text on page. (Physical based) - ANSWER-Small text. Physical based. - ANSWER-Bold (Content based.) - ANSWER-Adds strong emphasis to text. Content based. - ANSWER-Subscript text (Physical based.) - ANSWER-Indicates superscript text. (Physical based) - ANSWER-Opens a link in a new tab. - ANSWER-Table division/columns. - ANSWER-Allows you to specify the title of the web page, which appears in the title bar of the web browser. <tr> - ANSWER-Table row <tt> - ANSWER-Teletype. makes the text look like it was written with a typewriter.

How do you create an invisible table? - ANSWER-Set border to "0" how do you get a domain name? - ANSWER-It must be purchased. How do you open a plain text file as a website? - ANSWER-Save it with extension ".html" How might the colgroup tag be used? - ANSWER-To specify attributes for an entire column instead of having to repeat the attributes several times. The span attribute tells how many columns a single attribute set spans. HTTP - ANSWER-Short for Hypertext Transfer Protocol, HTTP is a set of standards that allow users of the World Wide Web to exchange information found on web pages. When accessing any web page entering http:// in front of the address tells the browser to communicate over HTTP. HTTPS - ANSWER-Short for Hypertext Transfer Protocol Secure, HTTPS is a protocol which uses HTTP on a connection encrypted by transport-layer security. HTTPS is used to protect transmitted data from eavesdropping. It is the default protocol for conducting financial transactions on the web, and can protect a website's users from censorship by a government or an ISP. Identify the element an attribute:

- ANSWER-p=element ; align=attribute. Parts of a URL - ANSWER-protocol, domain name, and path Show an example of the colgroup tag? - ANSWER-

src="bdndj.jpg" - ANSWER-Used to identify the address of the image to be displayed, known as a URL. start="" - ANSWER-Suggests the starting number of a list. The internet has many levels of... - ANSWER-organization. The World Wide Web led to skyrocketing... - ANSWER-internet growth. Typically, should a student use relative or absolute paths? - ANSWER-Absolute paths. Information should be stored in folders off your home directory so an absolute path is always required and always safe.

Web pages are identified by addresses known as... - ANSWER-URLs=Universal Resource Locators What are content based tags? - ANSWER-Add meaning or context to a piece of text, which affects how it's displayed. What are elements? - ANSWER-Things being put on a page: paragraph, link, table. What are graphical tables? - ANSWER-Allow for the use of special attributes such as borders, colours, shading, backgrounds, frames, spacing and padding. What are physical tags? - ANSWER-Provide no meaning but deal only with how the text is displayed. What are some functions of tables? - ANSWER-Allow for greater control over page layout;allow creation of more visually interesting pages; pages with grid layouts;set apart sections of documents such as in side bars. What are some of the advantages of the GIF image format? - ANSWER-Transparency: Lets you see through a region of the gif image allowing the background of a webpage to show through; Animation: A gif feature specifying multiple frames of an image, yielding the effect. What are the possible graphical table attributes? - ANSWER-The table element attributes include summary, align, width (percent of page width or pixels), border (in pixels, controls frame width around table), frame (which parts of frame to render), rules (rulings between rows and cols), cellspacing (pixels, spacing between cells), and cellpadding (pixels, spacing within cells between contents and margin). The summary attribute is a text string that provides a summary of the table's purpose and structure for user agents rendering to non-visual media such as speech and Braille. The align attribute, now deprecated, specifies the position of the table (left, center, or right) with respect to the document. The width attribute specifies the width of the entire table. When pixels are specified the window retains the specified width irrespective of browser window width. When the value is a percentage, the value is relative to the browser window's horizontal space. In the absence of any width specification, table width is determined by the browser. What are the two different types of formatting tags? - ANSWER-Content based tags and physical tags. What are the two paths you can use to identify a URL? - ANSWER-Relative path or absolute path. What are the two things hyperlinks can be made of? - ANSWER-Absolute URLs or relative URLs.

What is a Jpeg/JPG? - ANSWER-Stands for Joint Photographic Experts Group. Photos stored more efficiently and use less memory. What is a newsgroup URL? - ANSWER-Used to identify a newsgroup or message within a newsgroup. What is a pixel? - ANSWER-A small piece of graphical info being displayed in a computer screen. What is a protocol? - ANSWER-A set of rules that define an exact format for communication between systems. What is a relative URL? - ANSWER-Has one or more missing parts and is used for linking within a particular site. What is a start tag and end tag? - ANSWER-Tags come in pairs. The start tag looks like: <> and the tag which ends it will start with a forward slash: </> What is a tag? - ANSWER-Enclosed with <> What is a text table? - ANSWER-Uses the tag to allow for column alignment, and forces the document to read any spaces, tabs or empty lines. What is a useful attribute for lists? - ANSWER-`type=" 1; a; A; i; I" What is a webpage URL? - ANSWER-Uused to identify an HTML document available for downloading and viewing via HTTP (Hypertext transfer protocol) What is an absolute URL? - ANSWER-Contains the full address and is generally used for linking different sites. What is an attribute? - ANSWER-Adds additional information and is included inside the start tag.

width="20" is the attribute. What is an element? - ANSWER-A fundamental component of the text document's structure: headings, tables, paragraphs, lists.

P is the element. What is an Email URL? - ANSWER-Used to identify an email address to which you can send an email message

What is an FTP URL - ANSWER-Used to identify a file available for download with File Transfer Protocol. What is an image? - ANSWER-An arrangement of little coloured squares known as pixels. What is considered a poor use of html as it doesn't provide enough logical organization for text content? - ANSWER-
What is html? - ANSWER-A mark-up language. What is pixelation? - ANSWER-When the browser makes each pixel bigger so that an image can take up more space. What is the absolute path? - ANSWER-If the image is not located where the web page is, then an absolute path must be used. This form is used if you must be very specific and give the complete path to find the file used. "images\smiles" What is the align attribute? - ANSWER-Aligns the text on the page. Comes in variations "left", "right" and "center". (align="center") What is the basic format for HTML? - ANSWER-

What is the body? - ANSWER-Contains everything else that is displayed as part of the web page. What is the difference between an external image and an inline image? - ANSWER-An external image isnt displayed automatically and you must click a link to view it. What is the difference between content tags and physical tags? - ANSWER-Content tags emphasize because it is important ; Physical tags edit for aesthetics. What is the difference between tags such as and - ANSWER-one is content based and the other is physical based. You are not guaranteed italics with the tag because it doesn't directly affect how this text is displayed but the tag does. What is the format for an (un)ordered list? - ANSWER- Hi

Why should you provide size hints with your image (length=23)? - ANSWER-1. Helps users who've disabled inline images. They may see a small icon in place of the image. 2.Make the web page render faster. The browser can display the document while you finish downloading images.