![]() CATEGORIES: BiologyChemistryConstructionCultureEcologyEconomyElectronicsFinanceGeographyHistoryInformaticsLawMathematicsMechanicsMedicineOtherPedagogyPhilosophyPhysicsPolicyPsychologySociologySportTourism |
Physical and logical text formatting.The structure of the web-document
A web document constructed using HTML has a basic and essential structure. The page always begins with the start tag of the html element and always terminates with the end tag of the html element as follows: example:
Headings, paragraphs, and their attributes. line break The elements h1, h2, h3, h4, h5 and h6 is used to make headings (h stands for "heading"), where h1 is the first level and normally the largest text, h2 is the second level and normally slightly smaller text, and h6 is the sixth and last in the hierarchy of headings and normally the smallest text. The Paragraph Tag The <p> tag and its' closing </p> tag places the enclosed content on a new line and adds a little space above and below it. HTML Paragraph’s Attributes HTML paragraph element attributes include: align- (Depreciated) The align attribute is used to set the alignment of the paragraph with respect to the page size. Values are LEFT, RIGHT, and CENTER. Example: <p align="center"> class - The class attribute is used in conjunction with style sheets to associate an element with a class. The class attribute can set a class for specific element types or it can be independent of element types and work for all elements. The class attribute will provide the settings for specific style formatting. ID - The ID attribute is used to apply style settings to specific individual HTML elements. style - The style attribute is used to apply style settings for the specific element the style attribute is included with. An example is" <p style="font: 16pt courier"> - This sets the style or color of the text. This statement starts a paragraph with color, green: <p style="color: green">. The STYLE attribute is common to most HTML elements. title - Used to give specific elements a title which may appear as a tooltip in some browsers when the mouse is held at or near the element.The Line Break Tag The <br /> tag forces a line break after it and is the first tag we have come across that has no content and is self closing.
Physical and logical text formatting. Among the tags that affect to the font style, tags divide into physical and logical formatting.In most cases, the use of similar meaning tags of physical and logical formatting leads to the same effect. The difference between them is that the physical formatting tags clearly indicate what properties of the font should change (for example, to make fat), while the logical formatting tags indicate what kind of this text (for example, important).Here is an example: you think that important text should be a red,but not bold. When using logical formatting tags and the browser which supports it, you may configure the display of the text that formatted logically. Text that formatted physically, will always be displayed as the author want and planned it. Of course, if you want that the bold text, use a physical formatting. Otherwise it is recommended to use the logical formatting tags.
Other logical formatting tags: <DFN>- Is used to describe the definitions; <CITE>- Serves to highlight the citation; <INS>- Marks the text as an insert; <KBD>- Is used for inputting from the keyboard <SAMP>- Used to mark the results provided by the program, to select multiple characters monospaced font:; <VAR>- Used for symbolic variables; <ABBR>- Is used for abbreviations (CIS, the CPSU, WWW); <ACRONYM>- Used to cutting (p, Eng.) With the attribute TITLE; <Q>- cited text in quotes.
Lists Web browsers will show three different types of lists: ordered, unordered and definition lists. HTML Unordered Lists :An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. The list items are marked with bullets (typically small black circles). <ul> How the HTML code above looks in a browser:
HTML Ordered Lists: An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items are marked with numbers. <ol> How the HTML code above looks in a browser: 1. Coffee 2. Milk 2.HTML Definition Lists: A definition list is a list of items, with a description of each item. The <dl> tag defines a definition list. The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item in the list): <dl> How the HTML code above looks in a browser: Coffee - black hot drink Milk - white cold drink
Date: 2016-01-03; view: 1337
|