Professional Documents
Culture Documents
2) Paragraph Tags
3) Anchor Tags
4) Adding Image
5) List Tags
6) Doctype
7) Horizontal Rule
8) Meta Tag
9) Tables
10) Forms
11) Using the span tag
12) Break tag
13) Preformatted text tag <pre>
14) Adding a CSS to a HTML file
15) Subscript tag
16) Superscript tag
17) Delete tag
18) Adding Video
19) Adding audio
20) Different attributes of input tag
21) Abbreviation tag
1) Text-Decoration, text-decoration:none (To remove the underline under a link), overline, linethrough, underline
2) Color
3) Font-size
4) Font-weight Normal, Bold
5) Font-family
6) Background-color
7) Background-image
8) Padding
9) Border, Border-collapse:collapse
10) Margin, margin-left:auto, margin-right:auto
11) Text-transform, Text-transform:uppercase, lowercase or capitalize
12) Display, display:inline, block, none(Hides up the element without consuming any space)
13) Float, float:left, right (This property floats off the element far to the left or right)(Completed)
14) Background-repeat, background-repeat: repeat-x (Repeats an image many times along the xaxis), repeat-y, no-repeat
15) target = _blank This opens the link in a new tab or window
16) List-style-type and list-style-image for ordered lists
17) Box-Shadow
18) Text-Shadow
19) Vertical-Align Text-top, text-bottom, middle
20) Caption tag to tables This caption tag is added after the <table> tag
21) rowspan, colspan for tables
22) Position
Some of the basic and important entity names are: nbsp(non-breaking space i.e. space), lt(Less
Than), gt(Greater Than), amp(Ampersand &), cent, pound, euro, yen, copy(Copyrights),
reg(Registered Trademark), etc..
8) There are 3 ways to insert a style sheet into a HTML document. They are 1) External Style
Sheet 2) Internal Style Sheet 3) Inline Style Sheet
1) External Style Sheet: This is to be done in the <head> tag of the HTML file.
<link rel="stylesheet" type="text/css" href="mystyle.css">
2) Internal Style Sheet: In this case the style sheet is directly added to the HTML file in the head
section under the <style> tag.
3) Inline Style Sheet: In this, the code is added directly to the tags itself with the style attribute
The order of priorities if more than one style sheet is available is: Inline Style Sheet > Internal or
External Style Sheet > Browser Defined Style
9) After starting a video tag, we must have to video controls, so we add controls as an attribute
to it and we can also specify the height and width. Then we can also add autoplay which is
useful for playing the video as soon as its loaded.
Then we add the source of the video by using the <source> tag and src attribute in it and finally
close the source tag
10) We add a audio clip just like we have added a video clip. But the difference is only that the
height and width are not specified as they are not required and the remaining part remains same
We add a value that is set to the type of file whether its an audio or video. This make the
website recognize better. Like audio/mpeg, video/mp4, etc.
11) Box-sizing: Border-boxGenerally, elements are arranged according to the size of the
content. Now if we add this to a div element, then this includes the size of content, border and
the padding. So, the boxes width and height which are specified will remain the same no matter
what the padding, border and content sizes are.
12) Its better to specify the height and width of the elements as a percentage so that they will
occupy the same space on every device
13) Always specify the width and height of an image. If they are not specified, the page will
flicker while the image loads
14) When you specify the height and width of an element in percentage, 100% occupies the full
screen
16) Hiding an element can be done by setting the display property to "none" or the visibility
property to "hidden". However, notice that these two methods produce different results:
visibility:hidden hides an element, but it will still take up the same space as before. The element
will be hidden, but still affect the layout
display:none hides an element, and it will not take up any space. The element will be hidden, and
the page will be displayed as if the element is not there
17) In input tag, for type equals to text, the following properties can be used readonly, disabled,
size, maxlength..