Professional Documents
Culture Documents
Vii-L-7 Intro To Html5
Vii-L-7 Intro To Html5
. ‘Youuse
before the block of text that you want to designate as a paragraph. This is the opening tag or the ON tag. At the end of the text block, you place
. This is the dosing tag or the OFF tag, So, to define a paragraph, you will type the following in the texteditor; SYNTAX:some text
ELEMENTS AN HTML element consists of an ON tag, the content, The HTML elements can be categorised as: > EmptyElements ontag and an OFF tag. > Container Elements Container Elements ae The elements thatinclude both ON and OFF tags are! called Conta cb» This makes the text bold ments. Forexampler Empty Elements ements contain only ON tags. They donothave 0! ata; instead they do some functionon their own. bro tag (Itbreaks thelineand displays thetext fromthenextline) FF tags. These elements donot Emptyel enclose ary & Forexample Opera, a popular wed browser by Opera Software, i known for its features, like dovnload ‘manager, inbuilt phishing, {and malware protection, tc 18 aso the default Integrated browser for various mobiles, Let's Know More tag isthe coutermost tag in HTML andi also known asthe root element. Know the Fact ‘The emeta>t3g, which is placed inside the clement, s used to specify ‘page description, keywordsand other metadata (information about data) of the HTML. documentATTRIBUTE re i : additional information about an 1 eler ‘an attribute is the property that provides addi TML element, 4 5 a tag, Anattribute is always specified inside the opening tag, All attributes Consist og atag. OF tg AN For the, eMsidea tag es the width of the horizontal linen pixels gp, ” Percen, ality of ier pene Jue. The ‘name's the property that you want to set and the ‘value’ is what you wy vame anda value. i pr ty. Attribute valueis always enclosed within quotes. We can use more than one attribut property.A Forexample, the width attribute of theHello
«/Hello
| » Tagnames should not contain spaces. For example, writing as isincorrect. > There should be no space between ‘<’ and ‘>’ ina tag. ® HTML DOCUMENT STRUCTURE ‘The general structure of an HTML document has two sections: Head and Body. HEAD SECTION The Head section provides general information about the document, e.g,, the Title defines a title for the pas the browser's Title bar. BODY SECTION tes The body section contains the text that gets displayed on the web page along with the other tags and are includes text, graphics, and the other HTML elements that Provide control and formatting to a page, lke Paragraph, list, and other elements. Let us discuss the basic structure ofan HTML document. 7 t > The HTML document starts with tag and ends with tag. Everythingis written within thes? the commands are not enclosedin tags then a web browser will assume the commandsas text. ; tha f nt > The tag is the HTML document header. It lies just below the tag. It contains informatio” important about the web page, but you cannot seeit in the browser window. The contains note! itself. Conmtrs wn KiPS <28>within the tag. It contains the title of the documen: » | 't. The title is displayed on eon of the browser window and not inside the window itself. The ttle should be short and on, pan A rarecers “ee _ ag corn the contents of your document that gets displayed on the web page in your browser a pine coe?? tag, youUse number of formatting elements, images, heading, list, and hypertext links to a pexppesranceat aweb page. on seers REDE OF HTML elements usedin the body tag: settee erent > Textlevelelements Lies generate up te full with avatble and by default begin on a new line. These elements include eit gee? panting cht | serzotatrue chr emerng is used, which marks a block oft
Paragraph. To mark the end of a paragraph,
browser willleave one line between the two pai
[p> element is used. When you start another paragraph. th?"
ragraphs.
® LINE BREAK ELEMENT
argin on the screen. Line breaks are good for ending lines @
an introduce a line break into your HTML document with the M*
Jp
ss. You ci
tag. Thiselementhasnoend tag,
Learning Kips
Computers withMy
oH
ey
Se
y=
oo?
ae?
nevreakelement <[title>
© Lnebrest tement
SO hie | CisersiMimayDesktop/.. Qt QO
Jy we Kips Learning Pvt. Ltd.
ge? B-40, Sector-57,
of Noida
é Pin-201305
ing Pvt. Ltd.
ipsa! Ph-8130100096
; _o,sector57,
yoda
in201305<01>
8130100096
| ebody>
fhtmi>
D HORIZONTAL RULE
> COMMENT
<-Learning HTMLis great fun—>
or
» BOLD
Forexample
® IauicS
Todraw the
Italicstyle- TYPE
For example
window. Insucha case, youneed to use
The bold tagis used when youneed to
asboldandtype after thetext,
Organised by: KIPS Learning Pvt. Ltd.
tisused as a separator between blocks of text. The