How People Access the Web:
- Browsers: People access websites using software called a web browser.
- Web Servers: When you ask your browser for a web page, the request is sent across the Internet to a special computer known as a web server which hosts the website.
- Screen readers: Screen readers are programs that read out the contents of a computer screen to a user. They are commonly used by people with visual impairments.
When you are looking at a website, it is most likely that your browser will be receiving HTML and CSS from the web server that hosts the site.
Small websites are often written just using HTML and CSS.
Larger websites — in particular those that are updated regularly and use a content management system (CMS), blogging tools, or e-commerce software — often make use of more complex
technologies on the web server, but these technologies are actually used to produce HTML and CSS that is then sent to the browser.
Since the web was first created there have been several versions of HTML and CSSAt the time , HTML5 & CSS3 were still being developed.
###How the Web Works:
When you visit a website, the web server hosting that site could be anywhere in the world. In order for you to find the location of
the web server, your browser will first connect to a Domain Name System (DNS) server.
HTML
info</closing tag>
Tags act like containers. They tell you something about the information that lies between their opening and closing tags.
tag indicates that anything between it and a closing tag is HTML code
tag indicates that anything between it and the closing tag should be shown inside the main browser window.
main heading
This is a Sub-Heading
is the paragraph
**The characters in the brackets indicate the tag's purpose.**
#### Attributes
+ Tell Us More About El ements
+ 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.
Here an attribute called lang is used to indicate the language used in this element.
ex: *lang is attribute name and "en-us" is Attribute Value*
The attribute name indicates what kind of extra information it should written in lowercase
The value is the information or setting for the attribute. It should be placed in double quotes.
a few attributes (such as lang) can appear on any element.
+
Before the element you will often see a element.
This contains information about the page (rather than information that is shown within the main part of the browser
+
The contents of the element are either shown in the top of the browser, above where you usually type in the URL
+ You will usually find a element inside the element.
*** to create a webpage on pc :
open notepad and type the code that you want then go to save as and type the name with html extension(file_name.html)
### Content Management System
+ The tools provided in the administration sections of these sites usually allow you to edit parts of the page rather than
the entire page, which means you will rarely see the , , or elements.
The advantage of this approach is that people who do not know how to write web pages can add information to a website
and it is also possible to change the presentation of something in the template, and it will automatically update every page
that uses that template.
+ Some content management systems offer tools that also allow you to edit the template files.
Text editors usually have controls a little like those on your word processor, giving you different options to style text, add links or insert images.
### Looking at How Other sites are Built
just go to the page you want and then right click then click on view source and you'll see the source code
its way to learn about HTML and discover new tips and techniques was to look at the source code
each web page should begin with a DOCTYPE declaration to tell a browser which version of HTML the page is using
<!DOCTYPE html>
##### Comments in HTML
that will not be visible in the user's browser
It is a good idea to add comments to your code because,no matter how familiar you are with the page at the time of writing it, when you come back to it later comments will make it much easier to understand
#### ID Attribute
- Every HTML element can carry the id attribute
- It is used to uniquely identify that element from other elements on the page. Its value should start with a letter or an underscore
- giving an element a unique identity allows you to style it differently than any other instance of the same element on the page.
- id attributes can be used to allow the script to work with that particular element.
- The id attribute is known as a global attribute because it can be used on any element.
#### Class Attribute
- to identify several elements as being different from the other elements on the page
- does not affect the presentation of an element. It will only change their appearance if there is a CSS rule that indicates it should be isplayed differently.
#### Block Elements
- Some elements will always appear to start on a new line in the browser window. These are known as block level elements.
#### Inline Elements
Some elements will always appear to continue on the same line as their neighbouring elements.
#### Grouping Text & Eleme nts In a Block
- element allows you to group a set of elements together in one block-level box.
- it easier to follow your code if you have used
elements to hold each section of the page.
- CSS style rules to indicate how much space the
element
should occupy on the screen and change the appearance of all the elements contained within it.
#### Grouping Text & Eleme nts Inline
- **
** It is used to:
- Contain a section of text where there is no other suitable
element to differentiate it from its surrounding text
- Contain a number of inline elements
- the reason why people use elements is they can control the appearance of the content of these elements using CSS.
- You will usually see that a class or id attribute is used with elements
#### IFrames
-