Lorem ipsum dolor sit, amet consectetur adipisicing elit. Mollitia ipsa impedit magnam, nobis nam quasi commodi exercitationem architecto neque obcaecati ipsam odio. Deserunt aliquam pariatur facere veritatis libero consectetur repudiandae voluptate adipisci. Accusamus vel officia omnis porro obcaecati fugit modi recusandae nobis odio. Distinctio voluptatem maiores repellat ut rem, quas laboriosam expedita aperiam molestiae, rerum ad a repellendus minima delectus animi est. Ducimus ea quisquam sint ipsa ab ad libero placeat totam, similique dicta vero alias, aliquam facere reiciendis quis. Illo minus, alias delectus deserunt porro cupiditate quasi eaque tempore explicabo odio eius dolores perferendis maiores sint. Placeat aperiam incidunt culpa itaque magnam excepturi, sed, quidem dolores facilis nulla pariatur exercitationem illo quisquam enim amet possimus vel, voluptatum hic. Corporis, at. Velit autem esse reprehenderit alias quas in, facere atque molestiae delectus, doloremque aut doloribus saepe facilis accusamus. Consequatur facere sint eius id cupiditate alias ipsam doloribus voluptatum sapiente, modi consequuntur odio sit officiis officia facilis ab voluptas fuga aliquam eos similique. Repudiandae minima, cum illo, iste fugit eligendi accusantium, doloremque enim placeat possimus modi sunt tempora itaque quam sint sed tempore ab. Fugit in magnam, quis aperiam officia accusamus molestias, non similique provident, cupiditate ipsam. Excepturi expedita eos totam?
| Inline | Block |
|---|---|
| Only Occupy width needed by content | Use entire width of screen or parent element. |
| Does not start in new line. | Always start in new line. |
| Can only have right and left margins. | Can have margin on all 4 sides. |
| Cannot set height and width. | Can set height and width. |
Job of blockquote
It indents the details inside. The tag must include a cite to show what site the detail was taken from.
The role of q tag is:
To quote the texts inside the q tag
The role of abbr tag is to shorten/abbreviate the name. eg: WHO Place the mouse cursor on top of the world with ..... to see fullform
The role of address quote :
Written by Someone.The cite tag used to cite works of art. Put this under some images or something.
The role of bdo tag is to reverse the text inside. Check below:
This text will be written from right to leftIframe is used to open another brower window inside the current browser. You can increase the dimensions.
Forms are used to collect User inputs. There are different kinds of forms which each serve different purposes. More about forms in W3Schools
There are 3 different types of display in CSS. Inline, Block and Inline-Block. They have the folloeing properties:
| Inline | Block | Inline-block |
|---|---|---|
| display:inline | display:block | display:inline-block |
| Only Occupy width needed by content | Use entire width of screen or parent element. | They take up ONLY the space of the content. |
| Does not start in new line. | Always start in new line. | Does NOT take a new line. |
| Can only have right and left margins. | Can have margin on all 4 sides. | Can have margins on all sides |
| Cannot set height and width. | Can set height and width. | Can manually set the height and width. |
They are used to select different html elements. Following are the selectors :
When same elements have same property changed using different selectors, the style will depend on the highest priority selector.
The priority are as follows : ID > Class > Element/Tag > Universal
Inside a selector, the property and value for the property should be declared for style to take effect.
Eg: div {In the above example, the height, width and background-color are the properties and 100px, 50% and powderblue are values.
Group Selectors - You can apply same style to multiple selectors buy chaining them using a comma. Eg: p, .paragraph, #para {any styles inside this will be applied to all selectors p, .paragraph and class which are separated by commas}
Attribute Selectors - Used to select element with a specific attribute inside it:
Eg: <a href="1">w3schools.com</a>
<a href="2" target="_blank">disney.com</a>
<a href="3" target="_top">wikipedia.org</a>
a[target]{selects the <a> elements that have target as an
attribute inside it}
Used to define a special state of an element. Eg: Mouse hover, style visited and unvisited links, change style when focused, change cursor style when hovering over an element etc.
A CSS pseudo-element is used to style specified parts of an element.
For example, it can be used to: Style the first letter, or first
line, of an element Insert content before, or after, the content of
an element.
Commonly used ones are ::first-line, ::first-letter etc
There are 5 different positions that can be applied to HTML elements
The Float property is used to float an element to the left or right side. The next content will WRAP AROUND the float element.
The Flexible Box Layout Module, makes it easier to design flexible
responsive layout structure without using float or positioning.
It is applied in one-direction. Vertically or horizontally.
To apply flex we write the following property and value -
display:flex
With flex property you can arrange all the elements inside the flext
box vertically or horizontally and model the gaps and space between
them. Flex box also allows it so that the elements inside will go to
new line or shring or grow equally as the page size is increased or
decreased.