Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Exam (elaborations) 23bca22p

Rating
-
Sold
-
Pages
6
Grade
A
Uploaded on
27-06-2024
Written in
2023/2024

Exam (elaborations) 23bca22p

Institution
Course

Content preview

HTML DOCUMENT ALIGN

&

(FONT,SIZE WITH ALIGNMENT)




Submitted by: GAYATHIRI.B

Department: bachelor of computer application(BCA).

Submitted: MR. R .Selvam,MCA.,M.PHIL.,

Date on :29.02.2024

Reference ID:

https://www.w3schools.com/cssref/pr_text_text-
align.php

, HTML DOCUMENT ALIGN

&

(FONT,SIZE WITH ALIGNMENT)


While HTML offers limited capabilities for directly aligning and sizing fonts with a single
element, it provides a foundation for styling your content through CascadingStyleSheets(CSS).

Here's how to achieve font alignment and size using HTML and CSS:

1.DefiningFontSize:

● Use the <font> tag with the size attribute in HTML (deprecated):

HTML

<font size="5">This text will be larger.</font>

However,thismethodisdiscouragedduetolackofaccessibilityandflexibility.

● Instead, use CSS to define font sizes in various units like pixels (px), points (pt), or relative
units (em, rem):

CSS

p { font-size: 16px; /* Set font size to 16 pixels */ }

h1 { font-size: 2em; /* Set font size to twice the parent element's font size */ }

2.AligningText:

● Use the align attribute with HTML elements (deprecated):

HTML

<p align="center">This text will be centered.</p>

Similar to font size, using align is also discouraged

Written for

Institution
Course

Document information

Uploaded on
June 27, 2024
Number of pages
6
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$100.99
Get access to the full document:

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

Get to know the seller
Seller avatar
balajinaugthy

Get to know the seller

Seller avatar
balajinaugthy
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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

Working on your references?

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

Working on your references?

Frequently asked questions