Skip to main content

HTML - CSS lec-5 Structures (Elements and attributes)

Hi, today we'll learn about the elements and attributes used in HTML 5 so lets start from Elements:

HTML uses Elements to describe the Structure of pages, lets look closer at the code from the last lecture, there are several different Elements. each Element has opening tag and a closing tag.


Tags
 tags act like containers. they tell you something about the information between their opening and closing tags.

*The opening <html> tag indicates that anything between it and a closing </html> tag is HTML code.

The <body> tag indicates that anything between it and the closing

</body> tag should be shown inside the main browser window.

Words between <h1> and </h1> are a main heading.

A paragraph of text appears between these <p> and </p> tags.

Words between <h2> and </h2> form a sub-heading.

Here is another paragraph between opening <p> and closing </p> tags.

Another sub-heading inside <h2> and </h2> tags.

Another paragraph inside <p> and </p> tags.

The closing </body> tag indicates the end of what should appear in the main browser 
window.

The closing </html> tag indicates that it is the end of the HTML code.

Attributes tell us more about Elements
Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts:
a name and a value, separated by an equals sign. 

-The attribute name indicates what kind of extra information you are supplying about the
element's content. It should be written in lowercase.

-The value is the information or setting for the attribute. It should be placed in double quotes. Different attributes can have different values.
-Here an attribute called lang is used to indicate the language used in this element. The value of this attribute on this page specifies it is in US English.

*The majority of attributes can only be used on certain
elements, although a few 
attributes (such as lang) can appear on any element.
-Most attribute values are either pre-deļ¬ned or follow a stipulated format. We will look at the permitted values as we introduce each new attribute. The value of the lang attribute is an abbreviated way of specifying which language is used inside the element that all browsers understand.

BODY, HEAD & TITLE

<body>
-You met the <body> element in the first example we created. Everything inside this element is shown inside the main browser window.
<head>
-Before the <body> element you will often see a <head> element. This contains information
about the page (rather than information that is shown within the main part of the browser
window that is highlighted in blue on the opposite page). You will usually find a <title>
element inside the <head> element.
<title>
-The contents of the <title> element are either shown in the top of the browser, above where
you usually type in the URL of the page you want to visit, or on the tab for that page (if your
browser uses tabs to allow you to view multiple pages at the same time).



You may know that HTML stands for (Hyper Text Markup Language) The Hyper Text part
refers to the fact that HTML allows you to create links that allow visitors to move from one
page to another quickly and easily, a markup language allows you to annotate text and these annotations provide additional meaning to the contents of a document. If you think of a web page we add code around the original text we want to display and the browser then uses the code to display the page correctly So the tags we add are the markup.

NOTE: ( keep practicing the code, try to change the headings )

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