HTML (Hypertext Markup Language)
is a sign language that allows us to display one content rich in various elements, refer to other sources (as they may be images, etc.), as well as create links to other documents for further processing. HTML used to create documents with Hyper Text structure. A Hyper Text document contains information that is related to other documents, allowing us to go through one document to the other using the same application we were using to view initial document. HTML can also be used to create documents multimedia, e.g. those that contain information which is not simply text like: Images Sounds Video Under programs (plug-ins) HTML documents are called “Web pages”. The browser takes the pages of Web from the Web Server that can be found anywhere on the Internet. To write HTML can text editors such as Note Pad are used. HTML is currently in version 4.01 and I continue offer advanced features to create even richer content pages. One has been created HTML-specific, Extensible Hypertext Markup Language uses XML syntax and brings up an XML Schema that can be used to evaluate one document, to check if it is created correctly etc. Web Programming 3 HTML is not the only language available for creating Hyper Text documents, there are languages that come before and after HTML (SGML, XML, etc.), but HTML has become the language of recommendation WAC for creating content for the Internet. HTML documents are created as plain text documents (with no special formatting) in which the entire formatted text is defined using textual characters called tag, e. Tags are textual characters beginning with a character <, followed by the name of the following tag with every other attribute, and finally closes with the character>.
The opening tag would look like this:
<TAG> The end of the tag starts with a character <, followed by
character /, followed by tag name and character>.
Closing tags would look like this: </TAG> Tags are case-sensitive, meaningful and their function remains the same regardless of whether they are written in capital letters or in capital letters .
<title> document name </title>
<P> Example of using tags to mark text </P>
<B> Bold <I> italics </ I> Bold </ B>
The attributes of the tags that indicate the other parameters are set in the opening tags as follows:
<TAG ATRIBUT ATRIBUT …> The form of these attributes appears either only with the name of
attribute the attribute name followed by =, followed by the value we want to assign it.
For example: <A HREF=”http://fn.edu.”> Connect </A>
<IMG SRC = “image.jpg” BORDER = 0 ALT = “NAME”>
In some cases, in HTML we may not even use closing tags, in cases where they do not surround text such as the above case of an image.
Structure of HTML documents
<title> is titled </title>
<body> Content of the document </body>
All HTML documents have more or less the same structure. The whole document should is included in an HTML tag and is divided into two parts: the head part, included in a tag HEAD and the body of the document (containing the document information), which is included inside a tag called BODY.
The header contains several definitions of the document: its title, additional notes, keywords, etc.
Document Title- Each HTML document has a title.
The <title> command is used to specify the title of the document, for example: <title> My first document in
HTML </ title>
The title is placed between the <title> tag and the closing </title> tag. The title is set to head section.
Comments- In HTML, we can insert comments on the page by placing the text inside the tag-
eve: <-! and -!>. The content within these two characters is ignored by the browser and does not appear to users.
Paragraphs Tag <P> is used to separate paragraphs. Since HTML ignores the interruption of lines taken from the original file and all text is continuous for HTML, we we need a mechanism to indicate the beginning and end of paragraphs, this mechanism is provided by <P> and </P>. The P tag can also have an ALIGN attribute, indicating directing the text to the paragraph. This can take one of the following values: LEFT, e positioned on the left. RIGHT, positioned to the right. CENTRAL, centralized text Line breaks Tag <BR> indicates a line break. It can be used as a sign initial and does not require a closing tag. The BR will not change the parameters set for the paragraph in which we are located at this time. Dividing texts into blocks
The <DIV> element is used to divide text into blocks by inserting a single row in between blocks like BR, although it may have the same qualities as P, we can determine the direction of text for each block Web Programming 6 DIV. The ALIGN parameter in DIV takes the following values: LEFT RIGHT CENTRAL