HTTP Stands for “Hypertext Transfer Protocol.”
A web browser may be the client, and an application on a computer that hosts a web site may be the server.
Example – 1:
A client (browser) submits an HTTP request to the server; then the server returns a response to the client. The response contains status information about the request and may also contain the requested content.
Example – 2:
A client, for example, may be a home computer, laptop, or mobile device. The HTTP server is typically a web host running web server software, such as Apache or IIS. When you access a website, your browser sends a request to the corresponding web server and it responds with an HTTP status code. If the URL is valid and the connection is granted, the server will send your browser the webpage and related files.
Some common HTTP status codes include:
- 200 – successful request (the webpage exists)
- 301 – moved permanently (often forwarded to a new URL)
- 401 – unauthorized request (authorization required)
- 403 – forbidden (access is not allowed to the page or directory)
- 500 – internal server error (often caused by an incorrect server configuration)
HTTP also defines commands such as GET and POST, which are used to handle form submissions on websites. The CONNECT command is used to facilitate a secure connection that is encrypted using SSL. Encrypted HTTP connections take place over HTTPS, an extension of HTTP designed for secure data transmissions.
URLs that begin with “http://” are accessed over the standard hypertext transfer protocol and use port 80 by default. URLs that start with “https://” are accessed over a secure HTTPS connection and often use port 443.
- HTML stands for Hyper Text Markup Language.
- HTML is used to create web pages.
- HTML is widely used language on the web.
- We can create static website by HTML only.
- HTML elements are represented by tags.
- HTML tags label pieces of content such as “heading”, “paragraph”, “table”, and so on.
- Browsers do not display the HTML tags, but use them to render the content of the page.
We will add extra information to your post by using custom fields. Custom Fields are a form of meta-data that allows you to store arbitrary information with each WordPress post.
Meta-data is handled with key/value pairs. The key is the name of the meta-data element. The value is the information that will appear in the meta-data list on each individual post that the information is associated with.
To display the Custom Fields for each post, use the the_meta() template tag.
To fetch meta values use the get_post_meta() function.
For example we use custom fields:-
ID, ‘key’, true); ?>
A template tag is code that instructs WordPress to “do” or “get” something. Like in header.php we will use the tag bloginfo(‘name’) to get information from user profile.
The the_title() template tag is used to display the post title.
wp_list_cats() are for display categories.
get_header() for getting header.
get_sidebar() for display the sidebar on page.
get_footer() for get the footer content on page.