• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 46 pages
Exam (elaborations)

Html Latest Exam Actual 2026.Pdf

Document preview thumbnail
Preview 4 out of 46 pages

HTML LATEST EXAM ACTUAL

Content preview

HTML LATEST EXAM ACTUAL 2026/2027 QUESTIONS
AND SOLUTIONS RATED A+
✔✔The font-family property defines the font to be used for an HTML element - ✔✔<h1
style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>

✔✔The font-size property defines the text size for an HTML element: - ✔✔<h1
style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>

✔✔The text-align property defines the horizontal text alignment for an HTML element -
✔✔<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>

✔✔<b> - ✔✔Defines bold text

✔✔<em> - ✔✔Defines emphasized text

✔✔<i> - ✔✔Defines italic text

✔✔<small> - ✔✔Defines smaller text

✔✔<strong> - ✔✔Defines important text

✔✔<sub> - ✔✔Defines subscripted text

✔✔<sup> - ✔✔Defines superscripted text

✔✔<ins> - ✔✔Defines inserted text (underlines it)

✔✔<del> - ✔✔Defines deleted text

✔✔<mark> - ✔✔Defines marked/highlighted text

✔✔The HTML <q> element defines - ✔✔<p>WWF's goal is to: <q>Build a future where
people live in harmony with nature.</q></p>

✔✔The HTML <blockquote> element (create one and also cite it) - ✔✔<p>Here is a
quote from WWF's website:</p>
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature.
The world's leading conservation organization,

,WWF works in 100 countries and is supported by
1.2 million members in the United States and
close to 5 million globally.
</blockquote>

✔✔The HTML <abbr> - ✔✔<p>The <abbr title="World Health
Organization">WHO</abbr> was founded in 1948.</p>

✔✔The HTML <address> element defines contact information (author/owner) of a
document or an article. - ✔✔<address>
Written by John Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

✔✔HTML <cite> - ✔✔<p><cite>The Scream</cite> by Edvard Munch. Painted in
1893.</p>

✔✔<bdo> for Bi-Directional Override - ✔✔<bdo dir="rtl">This text will be written from
right to left</bdo>
Try it Yourself »

✔✔Show an html comment - ✔✔<!-- Write your comments here -->

✔✔Conditional Comments - ✔✔<!--[if IE 9]>
.... some HTML here ....
<![endif]-->

IE, has been programmed to recognize the special <!--[if IE]> syntax, resolves the if and
parses the content of the conditional comment as if it were normal page content.

✔✔You can set the background color for HTML elements:

such as <p> and <h1> tags - ✔✔<h1 style="background-color:DodgerBlue;">Hello
World</h1>
<p style="background-color:Tomato;">Lorem ipsum...</p>

✔✔Border Color
You can set the color of borders of tags (show an example with a couple of tags) -
✔✔<h1 style="border:2px solid Tomato;">Hello World</h1>
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
<h1 style="border:2px solid Violet;">Hello World</h1>

,✔✔In HTML, colors can also be specified using (what are they?) - ✔✔RGB values, HEX
values, HSL values, RGBA values, and HSLA values: (where A standts for alpha)

✔✔RGB Value
In HTML, a color can be specified as an RGB value, using this formula: (code out some
random colors) RGB - ✔✔rgb(red, green, blue)

Each parameter (red, green, and blue) defines the intensity of the color between 0 and
255.

For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest value
(255) and the others are set to 0.

To display the color black, all color parameters must be set to 0, like this: rgb(0, 0, 0).

To display the color white, all color parameters must be set to 255, like this: rgb(255,
255, 255).

✔✔When all RGB values are equal, you will get - ✔✔a shade of gray

✔✔In HTML, a color can be specified using a hexadecimal value in the form - ✔✔For
example, #ff0000 is displayed as red, because red is set to its highest value (ff) and the
others are set to the lowest value (00)

✔✔HSL Value ( show an example) - ✔✔Hue is a degree on the color wheel from 0 to
360. 0 is red, 120 is green, and 240 is blue.

Saturation is a percentage value, 0% means a shade of gray, and 100% is the full color.

Lightness is also a percentage, 0% is black, 50% is neither light or dark, 100% is white

hsl(0, 100%, 50%)

✔✔alpha parameter Is applicable to HSL and RGB values where - ✔✔0 is full
transparency and 1 is all solid

✔✔CSS can be added to HTML elements in 3 ways: - ✔✔Inline - by using the style
attribute in HTML elements
Internal - by using a <style> element in the
External - by using an external CSS file

✔✔Inline CSS - ✔✔<h1 style="color:blue;">This is a Blue Heading</h1>

✔✔Internal CSS
An internal CSS is used to define a style for a single HTML page.

, An internal CSS is defined in the <head> section of an HTML page, within a <style>
element: - ✔✔<head>
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
</head>

✔✔External CSS
An external style sheet is used to define the style for many HTML pages.

With an external style sheet, you can change the look of an entire web site, by changing
one file!

To use an external style sheet, add a link to it in the <head> section of the HTML page:
- ✔✔<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>

✔✔CSS Fonts (show three properties and examples) - ✔✔The CSS color property
defines the text color to be used.

The CSS font-family property defines the font to be used.

The CSS font-size property defines the text size to be used.

✔✔CSS Border (Create one around a <p>) - ✔✔The CSS border property defines a
border around an HTML element

p{
border: 1px solid powderblue;
}

✔✔CSS Padding (what is it and show an example) - ✔✔The CSS padding property
defines a padding (space) between the text and the border

p{
border: 1px solid powderblue;
padding: 30px;
}

Document information

Uploaded on
April 5, 2026
Number of pages
46
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TIPSTAR
3.4
(20)
Sold
164
Followers
6
Items
27149
Last sold
6 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions