HTML CODE PART 2
USING DIFFERENT TYPES OF FONT STYLES IN HTML
BOLD
A set of type characters that are darker and heavier than normal. A bold font implies that each character was originally designed with a heavier appearance rather than created on the fly from a normal character.
ITALICS
It may be difficult to imagine, but before the use of computers, nearly every document or publication was handwritten or hand set using letterpress (movable type), followed by mechanical typesetting and phototypesetting. In the 21st century, it's easy to italicize individual words and phrases when keyboarding documents.
An italic font is a cursive, slanted typeface. A font is a specific size, style, and weight of a typeface used in printing and writing. When we keyboard text, we typically use a roman font, where the text is upright. By comparison, an italic font is slightly slanted to the right, as shown here
Organizations, like the American Psychological Association (APA) and the Modern Language Association (MLA) have different rules for using italics. Your employer, organization, school, or project style guide may have their own rules. Whichever set of guidelines you use, aim to be consistent and apply the same rule throughout your document. That said, there are some generally accepted guidelines for using italics
UNDERLINE
An underline is a section of text in a document where the words have a line running beneath them. For example, this text should be underlined. Underlined text is commonly used to help draw attention to text. Today, underlines are commonly used to represent a hyperlink on a web page.
STRIKE-THROUGH
A strikethrough is a horizontal line drawn through text, used to indicate the deletion of an error or the removal of text in a draft. If your work is edited or proofed professionally on paper, understanding common revision and editing symbols and abbreviations will help you process the suggested changes.
Conventional Uses of Strikethroughs
In document editing, both by hand and through computer-aided editing, a strikethrough conveys the editor's intent that the material in question ought to be deleted. A strikethrough is a basic copyediting symbol; in ink-on-paper proofreading, a strikethrough is accompanied by a loop at the end of the line to signify deletion.
SUPERSCRIPT
A superscript is a character or string that is smaller than the preceding text and sits above the baseline. Superscripts have several applications in both math and writing.
SUBSCRIPT
A subscript is a character or string that is smaller than the preceding text and sits at or below the baseline. Subscripts have many scientific applications, including mathematics, computer science, and chemistry.
EXAMPLE
CODE
<html>
<title>web page</title>
<head>excrcise 5</head>
<body>
<b><h1>hey everyone</h1></b>
<u><h1>goodmorning</h1></u>
<i><h1>how are you all</h1></i>
<strike><h1>my name is pavan</h1></strike>
<h1>log<sub>b</sub>m<sup>p</sup>=plog<sub>b</sub></h1>
</body>
</html>
OUTPUT
Comments
Post a Comment
If you have any doubts let me know in comments