Formatting Text

Total Page:16

File Type:pdf, Size:1020Kb

Formatting Text Class VII Subject: Computer Science Textbook: IT Planet Petabyte Chapter – 8: HTML – Creating Web Page General Instructions: 1. Read the text thoroughly. 2. Exercise to be done in the book. 3. YouTube links are given at the end of the notes for further clarification of the usage of tags. Formatting Text Bold, Italic and Underline Text Strike, Subscript, Superscript and Typewriter Style Text Changing the Alignment of Heading Changing the Paragraph Alignment Changing Font of Text Changing the Size of Font Changing the Color of Text Changing the Color of a Part of Text Changing Background Color of the Page HTML Formatting HTML Formatting is a process of formatting text for a better look and feel. There are many formatting tags in HTML. In HTML the formatting tags are divided into two categories: Physical style tags: These tags specify a particular font change that is interpreted strictly by all browsers. Logical style tags: These tags allow a browser to interpret the tag based on browser settings, relative to other text on a web page. Making text Bold: We can make the text bold using the <b> tag. The tag uses both opening and closing tags. The text that needs to be made bold must be within <b> and </b> tags. Making text Italic: The <i> tag is used to italicise the text. It opens with <i> and ends with </i> tag. Underlined Text Anything that appears within <u>...</u> element, is displayed with an underline. Strike Text Anything that appears within <strike>...</strike> element is displayed with a strikethrough, which is a thin line through the text. Superscript Text The content of a <sup>...</sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character's height above the other characters. Subscript Text The content of a <sub>...</sub> element is written in subscript; the font size used is the same as the characters surrounding it, but is displayed half a character's height beneath the other characters. HTML - <tt> tag HTML <tt> tag is used to define the text in monospaced font or fixed-width fonts so that it would render as teletype, text-only screen, or line printer on the browser. HTML - <h1> to <h6> align Attribute The HTML <h1> to <h6> align attribute is used to specify the alignment of the <h> element or the content present inside the Heading Element. Syntax: <h1 align="left | right | center"> Attribute Values: • left: It sets the content to the left-align. • right: It sets the content to the right alignment. • center: It sets the content to the center. Changing the Paragraph Alignment Align Attribute is used to control the horizontal positioning or alignment of the paragraphs. Syntax: <p align="left | right | center | justify"> Attribute Values: • left: It sets the content to the left-align. • right: It sets the content to the right alignment. • center: It sets the content to the center. • Justify: It aligns the text on both the left and the right margins. HTML | <font> face Attribute The HTML <font> face Attribute is used to specify the font family of the text inside <font> element. Syntax: <font face="font_family"> Attribute Values: It contains the font like Arial. HTML | <font> size Attribute The HTML <font> size Attribute is used to specify the size of text which is present inside <font> element. Syntax: <font size="number"> Attribute Values: It contains a single value number that specifies the size of the text. The font size lies between 1 to 7. HTML | body text Attribute The HTML <body> text Attribute is used to define a color for the text in the document. Syntax: <body text="color_name”> Attribute Values color_name: It specifies the name of the color for the text in the document. HTML | <font> color Attribute The HTML <font> color Attribute is used to specify the text color inside the <font> element. Syntax: <font color="color_name”> Attribute Values: color_name: It sets the text color by using color name. For example: “red”. The HTML <body> bgcolor Attribute It is used to define the background color of a document. Syntax: <body bgcolor="color_name”> Attribute Values: color_name: It specifies the name of the background color of the document. MIND MAP ADDITIONAL RESOURCE: Refer to the given YouTube Links for further explanation of some tags. 1. https://youtu.be/rmqyIN3KvA8 The Bold, Italic and Underline tags 2. https://youtu.be/wymR_DROKAA Superscript and Subscript 3. https://youtu.be/PidJr8XIOB4 Align attribute 4. https://youtu.be/YRHDBh9i61A Font tag 5. https://youtu.be/ItTtU5mIzHo Change the background color of a web page 8 HTML - Creating Web Page A. Tick [ü] the correct answer. 1. a. 2. b. 3. a. 4. c. 5. a. B. Write ‘T’ for True and ‘F’ for False statements. 1. F 2. F 3. T 4. T 5. F C. Fill in the blanks. 1. DOCTYPE 2. <wbr> 3. BGCOLOR 4. COLOR 5. <H1>, <H6> 6. Comment D. Differentiate between the following. Physical Style Formatting: They specify a particular font change that is interpreted strictly by all browsers. For example, to ensure that text appears in bold font, we would enclose it between a start <b> and end </b> tag. Logical Style Formatting: They allow a browser to interpret the tag based on browser settings, relative to other text on a web page. For example, <h2> heading tag indicates that the heading text should be larger than the regular text but smaller than text formatted using an <h1> heading tag. E. Answer in 1-2 sentences. 1. HTML (HyperText Markup Language) is a programming language used to create web pages. It is simply a collection of certain keywords called tags. 2. <BR> tag is used to add blank lines between the paragraphs and is also used to start a new line. 3. Font tag is used to change the appearance of our text along with the FACE attribute. 25 F. Answer Briefly. 1. The elements included in the structure of HTML5 document are such as: <DOCTYPE>, <HTML>, <HEAD>, <TITLE> and <BODY> that we must add to every web page we create. 2. Metadata means ‘data about data.’ On a web page, metadata can include author information, the type of editor used to create the page, a description of the content, relevant keywords, and copyright information. 3. We should specify more than one font while changing the font, as it comes handy if one font is missing on a user's computer, the text can be displayed with another font you have specified. G. Application Based Question. Rishabh should save the file with .html file extension then he would be able to open the HTML file in the web browser. 26.
Recommended publications
  • Chapter 2 Working with Text: Basics Copyright
    Writer Guide Chapter 2 Working with Text: Basics Copyright This document is Copyright © 2021 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (https://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), version 4.0 or later. All trademarks within this guide belong to their legitimate owners. Contributors To this edition Rafael Lima Jean Hollis Weber Kees Kriek To previous editions Jean Hollis Weber Bruce Byfield Gillian Pollack Ron Faile Jr. John A. Smith Hazel Russman John M. Długosz Shravani Bellapukonda Kees Kriek Feedback Please direct any comments or suggestions about this document to the Documentation Team’s mailing list: [email protected] Note Everything you send to a mailing list, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted. Publication date and software version Published April 2021. Based on LibreOffice 7.1 Community. Other versions of LibreOffice may differ in appearance and functionality. Using LibreOffice on macOS Some keystrokes and menu items are different on macOS from those used in Windows and Linux. The table below gives some common substitutions for the instructions in this document. For a detailed list, see the application Help. Windows or Linux macOS equivalent Effect Tools > Options LibreOffice >
    [Show full text]
  • Cloud Fonts in Microsoft Office
    APRIL 2019 Guide to Cloud Fonts in Microsoft® Office 365® Cloud fonts are available to Office 365 subscribers on all platforms and devices. Documents that use cloud fonts will render correctly in Office 2019. Embed cloud fonts for use with older versions of Office. Reference article from Microsoft: Cloud fonts in Office DESIGN TO PRESENT Terberg Design, LLC Index MICROSOFT OFFICE CLOUD FONTS A B C D E Legend: Good choice for theme body fonts F G H I J Okay choice for theme body fonts Includes serif typefaces, K L M N O non-lining figures, and those missing italic and/or bold styles P R S T U Present with most older versions of Office, embedding not required V W Symbol fonts Language-specific fonts MICROSOFT OFFICE CLOUD FONTS Abadi NEW ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Abadi Extra Light ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Note: No italic or bold styles provided. Agency FB MICROSOFT OFFICE CLOUD FONTS ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Agency FB Bold ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Note: No italic style provided Algerian MICROSOFT OFFICE CLOUD FONTS ABCDEFGHIJKLMNOPQRSTUVWXYZ 01234567890 Note: Uppercase only. No other styles provided. Arial MICROSOFT OFFICE CLOUD FONTS ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Arial Italic ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Arial Bold ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 01234567890 Arial Bold Italic ABCDEFGHIJKLMNOPQRSTUVWXYZ
    [Show full text]
  • End-Of-Line Hyphenation of Chemical Names (IUPAC Provisional
    Pure Appl. Chem. 2020; aop IUPAC Recommendations Albert J. Dijkstra*, Karl-Heinz Hellwich, Richard M. Hartshorn, Jan Reedijk and Erik Szabó End-of-line hyphenation of chemical names (IUPAC Provisional Recommendations) https://doi.org/10.1515/pac-2019-1005 Received October 16, 2019; accepted January 21, 2020 Abstract: Chemical names and in particular systematic chemical names can be so long that, when a manu- script is printed, they have to be hyphenated/divided at the end of a line. Many systematic names already contain hyphens, but sometimes not in a suitable division position. In some cases, using these hyphens as end-of-line divisions can lead to illogical divisions in print, as can also happen when hyphens are added arbi- trarily without considering the ‘chemical’ context. The present document provides recommendations and guidelines for authors of chemical manuscripts, their publishers and editors, on where to divide chemical names at the end of a line and instructions on how to avoid these names being divided at illogical places as often suggested by desk dictionaries. Instead, readability and chemical sense should prevail when authors insert optional hyphens. Accordingly, the software used to convert electronic manuscripts to print can now be programmed to avoid illogical end-of-line hyphenation and thereby save the author much time and annoy- ance when proofreading. The recommendations also allow readers of the printed article to determine which end-of-line hyphens are an integral part of the name and should not be deleted when ‘undividing’ the name. These recommendations may also prove useful in languages other than English.
    [Show full text]
  • 15 the Effect of Font Type on Screen Readability by People with Dyslexia
    The Effect of Font Type on Screen Readability by People with Dyslexia LUZ RELLO and RICARDO BAEZA-YATES, Web Research Group, DTIC, Universitat Pompeu Fabra, Barcelona, Spain Around 10% of the people have dyslexia, a neurological disability that impairs a person’s ability to read and write. There is evidence that the presentation of the text has a significant effect on a text’s accessibility for people with dyslexia. However, to the best of our knowledge, there are no experiments that objectively 15 measure the impact of the typeface (font) on screen reading performance. In this article, we present the first experiment that uses eye-tracking to measure the effect of typeface on reading speed. Using a mixed between-within subject design, 97 subjects (48 with dyslexia) read 12 texts with 12 different fonts. Font types have an impact on readability for people with and without dyslexia. For the tested fonts, sans serif , monospaced, and roman font styles significantly improved the reading performance over serif , proportional, and italic fonts. On the basis of our results, we recommend a set of more accessible fonts for people with and without dyslexia. Categories and Subject Descriptors: H.5.2 [Information Interfaces and Presentation]: User Interfaces— Screen design, style guides; K.4.2 [Computers and Society]: Social Issues—Assistive technologies for per- sons with disabilities General Terms: Design, Experimentation, Human Factors Additional Key Words and Phrases: Dyslexia, learning disability, best practices, web accessibility, typeface, font, readability, legibility, eye-tracking ACM Reference Format: Luz Rello and Ricardo Baeza-Yates. 2016. The effect of font type on screen readability by people with Dyslexia.
    [Show full text]
  • Supplementary Guide to UEB Reference Materials V.8.31.16
    Supplementary Guide to UEB Reference Materials v.8.31.16 Unless otherwise indicated, page numbers refer to The Rules of Unified English Braille, 2013 For referenced BANA Guidances visit: www.brailleauthority.org * indicates definition of entry word A @ sign, 25 Caret, 24, 42 Abbreviations, 106, 152 Cent Sign ¢, 26 Accented letters, 42, 190 Chemistry, 89, 178, see BANA Guidance capitals, 80 Code switching, 199-210 in fully capped words, 89 how to use, 202-203 Acronyms, 106, 152 indicators Addition foreign language, 191-192, 195 non-technical materials, 31 IPA, 199, 207-208 technical materials, 169 music, 199, 208-209 Alphabetic wordsign, *7, 9, 15, 103-106, Nemeth code, 199, 209-210 164 non-UEB, 199, 203-208 Ampersand &, 21 Coinage, 26, 64 Anglicized words, 45, 158, 186, 189 Colored type, 11, 97 Apostrophe, 18, 69, 105, 107 Comma, 69 Arrows, 21, 174 numeric mode, 59 line mode, 219 Comparison, signs of, 169,31 Asterisk, 21 Compound words, bridging, 146 At sign @, 25 Computer material contractions in, 155 B email addresses, 155 Blank to be filled in, 73, 160 grade 1 indicators, 52 Boldface indicators, 91 Computer notation, 178 Brackets, opening and closing, 69, 78 Contracted (grade 2) braille, *7, 14 Braille grouping indicators, 23, 45, 172 usage cross-referenced, 14 Braille order, list of symbols, 275 Contractions summary, 9 Bullet, 24, 34, 37 Contractions, *7, 9, 103-168 abbreviations, 152 C acronyms, 152 Capitalization, 79-90 alphabetic wordsigns, *7, 9, 15, 103-106, grade 1, 55 164 indicators bridging, 146-152 choice of, 87 aspirated
    [Show full text]
  • Background a Short Introduction to Font Characteristics
    fonts: background A short introduction to font characteristics Maarten Gelderman Hardly anyone will dispute the statement that proporion- ally spaced fonts are more beautiful and legible than mono- abstract spaced designs. In a monospaced design the letter i takes as Almost anyone who develops an interest in fonts is bound to much space as a letter m or W. Consequently, some char- be overwelmed by the bewildering variety of letterforms acters look simply too compressed, whereas around oth- available. The number of fonts available from commercial ers too much white space is found. Monospaced fonts are suppliers like Adobe, URW, LinoType and others runs into the simply not suited for body text. Only in situations where it thousands. A recent catalog issued by FontShop [Truong et al., is important that all characters are of equal width, e.g., in 1998] alone lists over 25.000 different varieties.1 And listings of computer programs, where it may be important somehow, although the differences of the individual letters are that each individual character can be discerned and where hardly noticable, each font has its own character, its own the layout of the program may depend on using mono- personality. Even the atmosphere elucided by a text set from spaced fonts, can the usage of a monospaced font be de- Adobe Garamond is noticably different from the atmosphere of the same text set from Stempel Garamond. Although fended. In most other situations, they should simply be decisions about the usage of fonts, will always remain in the avoided. realm of esthetics, some knowledge about font characteristics may nevertheless help to create some order and to find out Romans, italics and slant A second typeface character- why certain design decisions just do not work.
    [Show full text]
  • Using Fonts Installed in Local Texlive - Tex - Latex Stack Exchange
    27-04-2015 Using fonts installed in local texlive - TeX - LaTeX Stack Exchange sign up log in tour help TeX ­ LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related Take the 2­minute tour × typesetting systems. It's 100% free, no registration required. Using fonts installed in local texlive I have installed texlive at ~/texlive . I have installed collection­fontsrecommended using tlmgr . Now, ~/texlive/2014/texmf­dist/fonts/ has several folders: afm , cmap , enc , ... , vf . Here is the output of tlmgr info helvetic package: helvetic category: Package shortdesc: URW "Base 35" font pack for LaTeX. longdesc: A set of fonts for use as "drop­in" replacements for Adobe's basic set, comprising: ­ Century Schoolbook (substituting for Adobe's New Century Schoolbook); ­ Dingbats (substituting for Adobe's Zapf Dingbats); ­ Nimbus Mono L (substituting for Abobe's Courier); ­ Nimbus Roman No9 L (substituting for Adobe's Times); ­ Nimbus Sans L (substituting for Adobe's Helvetica); ­ Standard Symbols L (substituting for Adobe's Symbol); ­ URW Bookman; ­ URW Chancery L Medium Italic (substituting for Adobe's Zapf Chancery); ­ URW Gothic L Book (substituting for Adobe's Avant Garde); and ­ URW Palladio L (substituting for Adobe's Palatino). installed: Yes revision: 31835 sizes: run: 2377k relocatable: No cat­date: 2012­06­06 22:57:48 +0200 cat­license: gpl collection: collection­fontsrecommended But when I try to compile: \documentclass{article} \usepackage{helvetic} \begin{document} Hello World! \end{document} It gives an error: ! LaTeX Error: File `helvetic.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name.
    [Show full text]
  • 19. Punctuation
    punctuation 19. Punctuation Punctuation is important because it helps achieve clarity and readability . ’ Apostrophes Use • before the “s” in singular possessives: The prime minister’s suggestion was considered. • after the “s” in plural possessives: The ministers’ decision was unanimous. Do not use • in plural dates and abbreviations: 1930s, NGOs • in the possessive pronoun “its”: The government characterised its budget as prudent. See also: Capitalisation, pp. 66-68. : Colons Use • to lead into a list, an explanation or elaboration, an indented quotation • to mark the break between a title and subtitle: Social Sciences for a Digital World: Building Infrastructure for the Future (book) Trends in transport to 2050: A macroscopic view (chapter) Do not use • more than once in a given sentence • a space before colons and semicolons. 90 oecd style guide - third edition @oecd 2015 punctuation , Commas Use • to separate items in most lists (except as indicated under semicolons) • to set off a non-restrictive relative clause or other element that is not part of the main sentence: Mr Smith, the first chairperson of the committee, recommended a fully independent watchdog. • commas in pairs; be sure not to forget the second one • before a conjunction introducing an independent clause: It is one thing to know a gene’s chemical structure, but it is quite another to understand its actual function. • between adjectives if each modifies the noun alone and if you could insert the word “and”: The committee recommended swift, extensive changes. Do not use • after “i.e.” or “e.g.” • before parentheses • preceding and following en-dashes • before “and”, at the end of a sequence of items, unless one of the items includes another “and”: The doctor suggested an aspirin, half a grapefruit and a cup of broth.
    [Show full text]
  • Photoshop Typography: Elements of the Character Panel
    PHOTOSHOP TYPOGRAPHY: ELEMENTS OF THE CHARACTER PANEL Learn how to utilize Photoshop typography to create stunning images by effectively pairing text and photos together. Many Photoshop users don’t have access to other programs that allow them to combine type with images, such as Adobe InDesign. Adobe knows that many people use Photoshop to create text-and-image documents, and has expanded the type tools available to Photoshop users. In light of this, I’ve started the “Photoshop Typography” series to help you make your type in Photoshop look professional. THE CHARACTER PANEL IN PHOTOSHOP Open Character panel by going to Type Menu → Panels → Type Panel. You can also type Cmd/Ctrl-T to open the window. All sorts of type choices and options become available to you through this window. It’s time to go exploring. I’ve numbered various areas to draw your attention. #1 – Select A Font Pick the font you want by clicking on the name of the font at the top left of the panel – the screenshot is currently showing Helvetica Neue. Click on the downward pointing arrow at the right of the box to see the whole menu of fonts currently available, or put your cursor at the front the field and type the first few letters of the font name you want. Photoshop will automatically display the font you type from the first few letters. By the way, if you have a font you want to install and use, you can install it at any time, and do not have to restart Photoshop to use the newly installed font.
    [Show full text]
  • Guide for the Use of the International System of Units (SI)
    Guide for the Use of the International System of Units (SI) m kg s cd SI mol K A NIST Special Publication 811 2008 Edition Ambler Thompson and Barry N. Taylor NIST Special Publication 811 2008 Edition Guide for the Use of the International System of Units (SI) Ambler Thompson Technology Services and Barry N. Taylor Physics Laboratory National Institute of Standards and Technology Gaithersburg, MD 20899 (Supersedes NIST Special Publication 811, 1995 Edition, April 1995) March 2008 U.S. Department of Commerce Carlos M. Gutierrez, Secretary National Institute of Standards and Technology James M. Turner, Acting Director National Institute of Standards and Technology Special Publication 811, 2008 Edition (Supersedes NIST Special Publication 811, April 1995 Edition) Natl. Inst. Stand. Technol. Spec. Publ. 811, 2008 Ed., 85 pages (March 2008; 2nd printing November 2008) CODEN: NSPUE3 Note on 2nd printing: This 2nd printing dated November 2008 of NIST SP811 corrects a number of minor typographical errors present in the 1st printing dated March 2008. Guide for the Use of the International System of Units (SI) Preface The International System of Units, universally abbreviated SI (from the French Le Système International d’Unités), is the modern metric system of measurement. Long the dominant measurement system used in science, the SI is becoming the dominant measurement system used in international commerce. The Omnibus Trade and Competitiveness Act of August 1988 [Public Law (PL) 100-418] changed the name of the National Bureau of Standards (NBS) to the National Institute of Standards and Technology (NIST) and gave to NIST the added task of helping U.S.
    [Show full text]
  • Figures and Tables
    Word for Research Writing II: Figures and Tables Last updated: 10/2017 ♦ Shari Hill Sweet ♦ [email protected] or 631‐7545 1. The Graduate School Template .................................................................................................. 1 1.1 Document structure ...................................................................................................... 1 1.1.1 Beware of Section Breaks .................................................................................... 1 1.1.2 Order of elements ................................................................................................ 2 1.2 Refresher: The Styles Pane ........................................................................................... 3 1.2.1 Style types and usage ........................................................................................... 3 1.2.2 Modifying text styles ............................................................................................ 4 1.2.3 Creating a new text style ..................................................................................... 4 2. Working with Figures and Tables ................................................................................................ 6 2.1 Figures: Best practices .................................................................................................. 6 2.1.1 Insert figures after the end of a paragraph ......................................................... 6 2.1.2 Order of insertion ...............................................................................................
    [Show full text]
  • ANSI® Programmer's Reference Manual Line Matrix Series Printers
    ANSI® Programmer’s Reference Manual Line Matrix Series Printers Printronix, LLC makes no representations or warranties of any kind regarding this material, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. Printronix, LLC shall not be held responsible for errors contained herein or any omissions from this material or for any damages, whether direct, indirect, incidental or consequential, in connection with the furnishing, distribution, performance or use of this material. The information in this manual is subject to change without notice. This document contains proprietary information protected by copyright. No part of this document may be reproduced, copied, translated or incorporated in any other material in any form or by any means, whether manual, graphic, electronic, mechanical or otherwise, without the prior written consent of Printronix, LLC Copyright © 1998, 2012 Printronix, LLC All rights reserved. Trademark Acknowledgements ANSI is a registered trademark of American National Standards Institute, Inc. Centronics is a registered trademark of Genicom Corporation. Dataproducts is a registered trademark of Dataproducts Corporation. Epson is a registered trademark of Seiko Epson Corporation. IBM and Proprinter are registered trademarks and PC-DOS is a trademark of International Business Machines Corporation. MS-DOS is a registered trademark of Microsoft Corporation. Printronix, IGP, PGL, LinePrinter Plus, and PSA are registered trademarks of Printronix, LLC. QMS is a registered
    [Show full text]