Skip to main content

HTML - CSS lec-6 "TEXT"

Hi, today we'r going to learn about TEXT "Headings and paragraphs Bold, italic, emphasis 
Structural and semantic markup". do you ready..............you will.

HEADINGS
-Structural markup: the elements that you can use to describe both headings and paragraphs
-Semantic markup: which provides extra information; such as where emphasis is placed in a sentence, that something you have written is a quotation (and who said it), the meaning of acronyms, and so on
write this code b/w <body> to </body>

When creating a web page, you add tags (known as markup) to the contents of the page. These tags provide extra meaning and allow browsers to show users the appropriate structure for the page.

HTML has six "levels" of headings:
<h1> is used for main headings
<h2> is used for subheadings If there are further sections under the subheadings then the
<h3> element is used, and so on...

Browsers display the contents of headings at different sizes, The contents of an <h1> element is the largest, and the contents of an <h6> element is the smallest, The exact size at which each browser shows the headings can vary slightly, Users can also adjust the size of text in their browser, You will see how to control the size of text, its color, and the fonts used when we come to look at CSS.

<p>
To create a paragraph, surround the words that make up the "paragraph" with an opening <p>
tag and closing </p> tag. By default, a browser will show each paragraph on a new line with some space between it and any subsequent paragraphs.

<b>
By enclosing words in the tags <b> and </b> we can make characters appear "bold"The <b> element also represents a section of text that would be presented in a visually different way (for example key words in a paragraph) although the use of the <b> element does not imply any additional meaning.

<i>
By enclosing words in the tags <i> and </i> we can make characters appear "italic", The <i> element also represents a section of text that would be said in a different way from  surrounding content such as technical terms, names of ships, foreign words, thoughts, or other terms that would usually be italicized.

<sup>
The <sup> element is used to contain characters that should be "superscript" such as the suffixes of dates or mathematical concepts like raising a number to a power such as X2.

<sub>
The <sub> element is used to contain characters that should be "subscript". It is commonly used with foot notes or chemical formulas such as H20.

White Space
In order to make code easier to read, web page authors often add extra spaces or start some elements on new lines. When the browser comes across two or more spaces next to each other, it only displays one space. Similarly if it comes across a line break, it treats that as a single space too. This is known as white space collapsing.
You will often see that web page authors take advantage of white space collapsing to indent their code in order to make it easier to follow.

Line Breaks & Horizontal Rules
<br /> 
As you have already seen, the browser will automatically show each new paragraph or heading on a new line. But if you wanted to add a line break inside the middle of a paragraph you can use the line break tag <br />.

<hr />
To create a break between themes such as a change of topic in a book or a new scene in a play you can add a horizontal rule between sections using the <hr /> tag. There are a few elements that do not have any words between an opening and closing tag. They are known as empty elements and they are written differently.
An empty element usually has only one tag. Before the closing angled bracket of an empty element there will often be a space and a forward slash character. Some web page authors miss this out but it is a good habit to get into.

Semantic Markup
There are some text elements that are not intended to affect the structure of your web pages, but they do add extra information to the pages they are known as semantic markup.

For example: you are going to meet the <em> element that allows you to indicate where emphasis should be placed on selected words and the <blockquote> element which indicates that a block of text is a quotation.
Browsers often display the contents of these elements in a different way. For example, the content of the <em> element is shown in italics, and a <blockquote> is usually indented. But you should not use them to change the way that your text looks, their purpose is to describe the content of your web pages more accurately.
The reason for using these elements is that other programs, such as screen readers or search engines, can use this extra information. For example, the voice of a screen reader may add emphasis to the words inside the <em> element, or a search engine might register that your page features a quote if you use the <blockquote> element.

Strong, Emphasis & Quotations
<strong>
The use of the <strong> element indicates that its content has strong importance.
For example, the words contained in this element might be said with strong emphasis. By default, browsers will show the contents of a <strong> element in bold.

<em>
The <em> element indicates emphasis that subtly changes the meaning of a sentence. By default browsers will show the contents of an <em> element in italic.

<blockquote>
The <blockquote> element is used for longer quotes that take up an entire paragraph. "Note: how the <p> element is still used inside the <blockquote> element" Browsers tend to indent the contents of the <blockquote> element, however you should not use this element just to indent a piece of text rather you should achieve this effect using CSS.

<q>
The <q> element is used for shorter quotes that sit within a paragraph. Browsers are  supposed to put quotes around the <q> element, however Internet Explorer does not  therefore many people avoid using the <q> element. Both elements may use the cite attribute to indicate where the quote is from. Its value should be a URL that will have more information about the source of the quotation.

Abbreviations & Acronyms 
<abbr>
If you use an abbreviation or an acronym, then the <abbr> element can be used, A title attribute on the opening tag is used to specify the full term, "In HTML 4 there was a separate <acronym> element for acronyms" To spell out the full form of the acronym, the title attribute was used, HTML5 just uses the <abbr> element for both abbreviations and acronyms.

Citations &Definitions 
<cite>
When you are referencing a piece of work such as this lectures, book or research paper, the <cite> element can be used to indicate where the citation is from. In HTML5, <cite> should not really be used for a person's name but it was allowed in HTML 4, so most people are likely to continue to use it, Browsers will render the content of a <cite> element in italics.

<dfn>
The first time you explain some new terminology (perhaps an academic concept or some jargon) in a document, it is known as the defining instance of it. The <dfn> element is used to indicate the defining instance of a new term, Some browsers show the content of the <dfn> element in italics, Safari and Chrome do not change its appearance.

Author Details
<address> 
The <address> element has quite a specific use to contain contact details for the author of the page, It can contain a physical address, but it does not have to, For example, it may also contain a phone number or email address, Browsers often display the content of the <address> element in italics, You may also be interested in something called the hCard  micro format for adding physical address information to your markup.
You can find out more about Hcards.

Changes to Content
<ins>
<del>
The <ins> element can be used to show content that has been inserted into a document, while the <del> element can show text that has been deleted from it, The content of a <ins> element is usually underlined, while the content of a <del> element usually has a line through it.

<s>
The <s> element indicates something that is no longer accurate or relevant (but that should not be deleted). Visually the content of an <s> element will usually be displayed with a line through the center also called Strikethrough "just like this" Older versions of HTML had a  <u> element for content that was underlined, but this is being phased out.

TEXT EXAMPLE:


This is a very simple HTML page that demonstrates text markup. Structural markup includes elements such as <h1>, <h2>, and <p>. Semantic information is carried in elements such as <cite> and <em>.




Note: practice with this code and try to make an other stories.
without practice your reading is useless be sincere to yourself and work harder if any problems leave a comment below i'll help you.

Comments

Popular posts from this blog

Numerical Analysis lec-3 False Position Method

Hi, today we'll going to learn the second method of numerical analysis the False Position Method out of 40 methods FALSE POSITION METHOD False Position Method is an alternative method and is more efficient then bisection method, it is the oldest method for finding the real root of an equation F( X ) = 0 and is similar to the bisection method. Consider the equation F( X ) = 0 let [ X0 , X1 ] be two different values of X such that  F( X0 ) - F( X1 ) < 0. OR A simple modification of a secant method produces a method which is usually converges. the new method is called regula falsi (False Position) and also Linear interpolation . it needs two initial approximations X0 and X1 so that F( X0 ) F( X1 ) < 0 i.e the two functions must have the opposite signs. The Modified False Position Method In this method the F( X ) value of a stagnant end point is halved if that point has repeated twice or more. the end point that repeats its called a stagnant point, the excepti

Numerical Analysis lec-4 Newton Raphson method

Hi, Today we'll learn about  Newton-Raphson Method  " Newton's Method ". this method is for finding successively better approximate solutions to the roots of a function (real valued). so are you ready for this............you will. Newton's Method: The Newton's method is one of the most powerful and well known method used for finding a root of f(X) = 0 there are many ways to derive Newton-Raphson method . the simplest way to derive this formula is by using the first two terms in the Taylor series expansion of the form.  Instead of working with the chord joining points on the graph of y= f(X) as in bisection method and false position method s. Newton's method uses the tangent at one point on the graph of y= f(X) therefor it requires only one instead of two initial guesses. Suppose X is an initial guesses draw the tangent line at X= X0 and procedure it to meet the X - axis at X = X1 Newton's Method which shows in picture above. now from righ

Software Engineering lec-2 About Software Engineering!

Hi, today we'll going to learn about Software requirements, specifications, applications and lots of more let's start with software engineering definition. Software Engineering -Software engineering is an engineering discipline that is concerned with all aspects of   software production form the early stages of system specification through to maintaining   the system after it has gone into use. -The economies of all developed nations are dependent on software. -More and more systems are software controlled software engineering is concerned with   theories, methods and tools for professional software development. -Expenditure on software represents a significant fraction of GNP in all developed countries. - Engineering discipline:  Using appropriate theories and methods to solve problems bearing in mind organizational   and financial constraints. - All aspects of software productions:  Not just technical process of development also project management and the develop