100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

HTML Basics- Questions & Answers

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
11-11-2024
Written in
2024/2025

HTML Basics- Questions & Answers

Institution
HTML
Course
HTML










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
HTML
Course
HTML

Document information

Uploaded on
November 11, 2024
Number of pages
18
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

HTML Basics- Questions & Answers
Lists Inside Lists Correct Ans-To create sub-bullets within a numbered list:



<ol>

<li>Dad's interests

<ul>

<li>football</li>

<li>knitting</li>

</ul>

</li>

<li>Mom's interests

<ul>

<li>hating football</li>

<li>skydiving</li>

</ul>

</li>

</ol>



Inline CSS Correct Ans-This simply means we can do some styling in our HTML file without
worrying about a separate CSS file.

,Change Font Size Correct Ans-To change font size we use the style attribute. We make it
equal to font-size, followed by a colon, the size you want, and end it with px (short for "pixels").



Ex) <p style="font-size: 12px">



Change Font Color Correct Ans-To change the color of text, simply add the style attribute in
the opening tag, then make the style equal to "color:blue" (or whatever color you like).



Ex) <h2 style="color:red">



Change Multiple Attribute Values at Once Correct Ans-What if you want to change the color
and the size of the text (both values of the style attribute)? Simple! Just add a semi-colon
between each bit.



Ex) <h2 style="color: green; font-size:12px">



Change Font Type (font family) Correct Ans-Add a font-family style attribute to any tag that
creates text (headers, paragraphs, lists, links, etc.)



Ex) <li style="font-family: Arial">Hello!</li>



*The font name needs to be capitalized! Arial, Verdana, etc.

, Style Attribute Correct Ans-Allows you to change text and page characteristics without using
CSS, including font size, font type, font color, page background color, text alignment, etc.). Used
inside the opening tag of several elements.



Change Background Color Correct Ans-We can use the style attribute, and set it equal to
"background-color: red" (or whatever color you want).



Ex) <p style="background-color: red;">Hello!</p>



Change Text Alignment Correct Ans-Use the style attribute. And then we use "text-align:left"
(or right, or center) to determine the location of the text.



Ex) <h1 style="text-align:center">



Bold Words Correct Ans-Put <strong> </strong> around the words you wish to bold.



Ex) <p>Do you hear the people <strong>sing?</strong></p>



Italicize Words Correct Ans-Put <em> </em> around the words you wish to bold. Em =
emphasize.



Ex) <p>I am <em>so</em> tired.</p>

Get to know the seller

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.
StudyLoom01 Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
116
Member since
2 year
Number of followers
35
Documents
6930
Last sold
1 month ago
MINDSPIRE

FIND ALL EXAMS,STUDY GUIDES AND TEST BANKS, REVISION MATERIALS TO BOOST YOUR CAREER!! WELCOME (STUVIA 2025) Leave A review Once Purchased Documents has helped you So that other customers May be Satisfied. Also, Refer 2 colleagues and get One document Free. All the best in your Career. GOODLUCK!!! Thank you!

4.1

30 reviews

5
19
4
1
3
6
2
1
1
3

Recently viewed by you

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

Frequently asked questions