Html Headings
Headings help in defining the hierarchy and the structure of the web page content.
HTML offers six levels of heading tags,
through ,the higher the heading level number, the greater its importance — therefore
tag defines the most important heading, whereas the
tag defines the least important heading in the document.
Importance of Headings
- HTML headings provide valuable information by highlighting important topics and the structure of the document, so optimize them carefully to improve user engagement.
- Don’t use headings to make your text look BIG or bold. Use them only for highlighting the heading of your document and to show the document structure.
- Since search engines, such as Google, use headings to index the structure and content of the web pages so use them very wisely in your webpage.
These tags are mainly written inside the body tag. HTML provides us with six heading tags from
<h1> to </h6>
Every tag displays the headings in a different style and font size
Html Attributes
An attribute is used to define the characteristics of an HTML element and is placed inside the element’s opening tag. All attributes are made up of two parts − a name and a value
Name:-The name is the property you want to set. For example, the paragraph <p> element in the example carries an attribute whose name is align, which you can use to indicate the alignment of paragraph on the page.
Value:-The value is what you want the value of the property to be set and always put within quotations. The below example shows three possible values of align attribute: left, center and right.
The Id Attribute
The id attribute of an HTML tag can be used to uniquely identify any element within an HTML page. There are two primary reasons that you might want to use an id attribute on an element −
If an element carries an id attribute as a unique identifier, it is possible to identify just that element and its content.
If you have two elements of the same name within a Web page (or style sheet), you can use the id attribute to distinguish between elements that have the same name.
The title Attribute
The title attribute gives a suggested title for the element. They syntax for the title attribute is similar as explained for id attribute −
The behavior of this attribute will depend upon the element that carries it, although it is often displayed as a tooltip when cursor comes over the element or while the element is loading.
Html Element
HTML Element:-
An HTML element is defined by a starting tag. If the element contains other content, it ends with a closing tag, where the element name is preceded by a forward slash.An HTML element usually consists of a start tag and an end tag.There are some HTML elements which don’t need to be closed, such as <img…/>, <hr /> and <br /> elements. These are known as void elements.
Nested HTML Elements:-
HTML elements can be nested (elements can contain elements).
All HTML documents consist of nested HTML elements.
What is HTML?
HTML is the standard markup language for Web pages. HTML is easy to learn so with HTML you can create your own Website.
The Full Form of HTML is HyperText Markup Language.
- HyperText is the method by which you move around on the web — by clicking on special text called hyperlinks which bring you to the next page.
- Markup is what HTML tags do to the text inside them.
- HTML is a Language, as it has code-words and syntax like any other language.
How does it work?
HTML consists of a series of short codes typed into a text-file by the site author — these are the tags. The text is then saved as a html file, and viewed through a browser, like Internet Explorer or Netscape Navigator. This browser reads the file and translates the text into a visible form, hopefully rendering the page as the author had intended.
Basic Syntax
When we consider a Java program, it can be defined as a collection of objects that communicate via invoking each other’s methods. Let us now briefly look into what do class, object, methods, and instance variables mean.
- Object − Objects have states and behaviors. An object is an instance of a class.
- Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type supports.
- Methods − A method is basically a behavior. A class can contain many methods. It is in methods where the logics are written, data is manipulated and all the actions are executed.
- Instance Variables − Each object has its unique set of instance variables. An object’s state is created by the values assigned to these instance variables.
Example:
public class First
{
public static void main(String []args)
{
System.out.println(“Hello World!!!”);
}
}
Output:
Hello World!!!
Data set
The application stays connected to the DB system even when it is not using DB services. This commonly wastes valuable and expensive database resources, as most of the time applications only query and view the persistent data. ADO.Net solves this problem by managing a local buffer of persistent data called data set.
Our application automatically connects to the database server when it needs to run a query and then disconnects immediately after getting the result back and storing it in the dataset. This design of ADO.Net is called disconnected data architecture and is very much similar to the connectionless services of HTTP on the internet. ADO.Net also provides connection oriented traditional data access services.
An important aspect of disconnected architecture is that it maintains a local repository of data in the dataset object. The dataset object stores the tables, their relationship and their different constraints. The user can perform operations like update, insert and delete on this dataset locally, and the changes made to the dataset are applied to the actual database as a batch when needed. This greatly reduces network traffic and results in better performance.
Introduction to ADO .net
(Active Database Object)
ADO.NET is a set of classes that we can use with .NET framework and its supportable language to access data in a relational, table-oriented format. ADO.NET is an object oriented framework that allows you to interact with database systems.
C Language Introduction
C is a procedural programming language. It was initially developed by Dennis Ritchie in the year 1972. It was mainly developed as a system programming language to write an operating system. The main features of C language include low-level access to memory, a simple set of keywords, and clean style, these features make C language suitable for system programmings like an operating system or compiler development.
The structure of a C program is as follows:
The components of the above structure are:
Header Files Inclusion: The first and foremost component is the inclusion of the Header files in a C program.
A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files.
Some of C Header files:
stddef.h – Defines several useful types and macros. stdint.h – Defines exact width integer types. stdio.h – Defines core input and output functions. stdlib.h – Defines numeric conversion functions, pseudo random network generator, memory allocation. string.h – Defines string handling functions. math.h – Defines common mathematical functions.
Syntax to include a header file in C:
#include
Main Method Declaratiometn: The next part of a C program is to declare the main() function. The syntax to declare the main function is:
Syntax to Declare main hod:
int main() {}
Variable Declaration: The next part of any C program is the variable declaration. It refers to the variables that are to be used in the function. Please note that in the C program, no variable can be used without being declared. Also in a C program, the variables are to be declared before any operation in the function.
Example:
int main() { int a; . .
Body: Body of a function in C program, refers to the operations that are performed in the functions. It can be anything like manipulations, searching, sorting, printing, etc.
Example:
int main() { int a; printf("%d", a); . .
Return Statement: The last part in any C program is the return statement. The return statement refers to the returning of the values from a function. This return statement and return value depend upon the return type of the function. For example, if the return type is void, then there will be no return statement. In any other case, there will be a return statement and the return value will be of the type of the specified return type.
Recent Comments