If you do not remember the Lists we did before, here's how!
An unordered list starts with the ul tag. Each list item starts with the li tag.
The CSS list-style-type property is used to define the style of the item marker:
Unordered List with Disc Bullets (which is default :/ )
Unordered List with Circle Bullets
Unordered List with Square Bullets
Unordered List without Bullets
The type attribute of the ol tag, defines the type of the list item marker.
Ordered List with Numbers
ordered List with letters
Ordered List with Lowercase Letters
Ordered List with Roman Numbers
Ordered List with Lowercase Roman Numbers
An HTML Description List is not as commonly used as unordered or ordered lists but serves an important purpose for displaying name-value pairs. This type of list is marked up using three tags: dl, dt, dd
Example of a Description List:
Lists can also be nested inside lists(itself)
Note: Lists items can contain new list, and other HTML elements, like images, links, etc.
By default, and ordered list will start counting from 1. If you want to start counting froma specified number, you can use the start attribute.
Navigation Menu!
Every HTML element has a default display value depending on what type of element it is. The default value for most elements is block or inline
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
The div element is a block-level element.
The DIV element is a block element, and will start on a new line.
The div element is often used as a container for other HTML elements
The div element has no required attributes, but style, class and id are common.
When used together with CSS, the div element can be used to style blocks of content.
There are diferrent types of Block level elements in HTML:
An inline element does not start on a new line and only takes up as much width as necessary.
Here's an example of an inline span element inside a paragraph.
Hello WorldThe SPAN element is an inline element, and will not start on a new line.
The span element is often used as a container for some text.
The span element has no required attributes, but style, class and id are common.
There are diferrent types of Inline Elements in HTML:
a, abbr, acronym b, bdo, big,br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, output, q, samp, script, select, small, span, strong, sub, sup, textarea, time, tt, var
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its foundation by the Romans, who named it Londinium.
An HTML iframe is defined with the iframe tag.
Use the height and width attributes to specify the size of the iframe.
The attribute values are specified in pixels by default, but they can also be in percent (like "80%").
Or you can use CSS to set the height and width of the iframe.
By default, an iframe has a border around it.
To remove the default border, add the style attribute and use the CSS border property.
With CSS, you can also change the size, style and color of the iframe's border.
A file path describes the location of a file in a web site's folder structure.
File paths are used when linking to external files like:
An Absolute file path is the full URL to an internet file
A relative file path points to a file relative to the current page.
In this example, you will create a file and point it towards the 'img src' so that it can display an image on the web:
Or you can see how I used this image src, again :)
In this example, the file path points to a file in the images folder located in the same folder, but you can use it even when your actual image is located in the folder one level above the current folder.
It is best practice to use Relative paths (if possible)
When using relative file paths, your web pages will not be bound to oyur current base URL. All links will work on your computer(localhost) as well as on your current public domain and your future public domains.
A paragraph
The base element specifies the base URL and base target for all relative URL's in a page.
Since we have specified a base URL, the browser will look for the image "guitabs.jpg" at "https://debojyoti.neocities.org/resources/images/guitabs.jpg"
Site: My Site
| Tag | Description |
|---|---|
| < head > | Defines information about the document |
| < title > | Defines the title of a document |
| < base > | Defines a default address or a default target for all links on a page |
| < link > | Defines the relationship between a document and an external resource |
| < meta > | Defines meatadata about an HTML document |
| < script > | Defines a client-side script |
| < style > | Define style information for a document |