Welcome to Scribd!
Academic Documents
Professional Documents
Culture Documents
Hobbies & Crafts Documents
Personal Growth Documents
New Doc 20-Jul-2021 10.26 Am
element tolet the browser know just how tall and wide an images (t, default unit is pixels or px). Example: You can also adjust the image size from the image processing software, such as Adobe Photoshop or GIMP. Some browse like Netscape Navigator will also display the dimensions of an image file in the title bar if the image is viewed by itself witha an enclosing html document. Some browsers use the height and width attributes to stretch or shrinkan image to it into the allotted space when theimag doesnot exactly match the attribute numbers, Example: Resizing image COMPUTER IMAGE RESIZING This is an original image. The image after resizing. BORDER ATTRIBUTE WITH TAG ——w By adding border attribute, you can add the outline to your image. This, gives a frame like look around your image. The border attribute is to be set tonon-zero values f ‘or example, If you want to give your image a plain black border to help it stand out on the page, you might try thi Example: chead> COMPUTER IMAGE Bo ae z RDER efont size 5"> This is an original image. ge. epo The ima * hy ge with bord sit car pg" barter =e Lid IMAGE BORDER ris i acing, AceMBED? TAG cembed> tag i ne tag is used for embedding an external application or interactive content into an HTML document. Although ve cembed> tag has been used since the ea i sane rly days of the web, twas actually not apart of the oficial HTML specifications NSERTING VIDEO FILES USING TAG ae inserted using the tag, The element creates an embedded panel in hava Flash-basedobject,canrun. Thistagdeesnotneed an ending/finishing tag. Itworks to web page. n Html, a video/audio file can bi shich third-party application, suc ustthe same asa tag toinsertimage syntax: urce added to the srcattribute (i + URLofthe embedded reso' e. between the double quotes) . Thetypeattibuteacceptsthetype oheembedsedre:0U Supported extensions forthe embed tag: swe made by Macromedia Flash “my: Microsoft WindowsMedia Vide0 mov: QuickTime Movie, belongstoApple oving Pictures Expert Group mpeg: created by Mi ‘TABLE: Attributes with tag. spectiesthelocationofthe external il. tts value ustbethe nLofthe resource beingembedded. specifiesthetyPe oftheembeddedcontent. specifies the width, (InP specifiesthe height (in pixels) tospaytheexternal content Sets whether the file wil he pages! loaded. Can have | oe type width nels) todisplay the external content. height {run automatically after the true ‘or false value.| autostart Nis7.5 INSERTING VIDEO IN HTML. it ing li he files or embedding them using ce i by either providing links tot ing th . ¥ dd video and audio files to your web page ori into your HTML pages. Before the adoption of HTMLS, there was no standard for showing ae ac browsers Videos could only be played with a ‘plug-in’ ike Adobe Flash, however different browsers used differe, HTMLS offers a new element, the element, that does not require a plug-in to play video files. The element The same can be said for audio files with the new element. Most standard browsers now support the Tag ——a This tag is used to specify video on an HTML: Your visitors to listen and watch, ‘document. For example, you could embed a music video on your web page fo Example: HTMLS video tag, supports three(3) types of video files: Lone |!" you can see the video controls but the video) Format MIME-type. ‘doesn't play when you click the ‘Play’ button, . four browser might not suy rt this file type (i.e. | a _ ¥ ight not suppo tp Pa video/mpa O88) In this case, try the same code, but with a Webm video/webm iferentfileformat. Oge video/ogg Specifies the URL controls height width controls Specifies that the video controls gets displayed, pixels Specifiesthe height pixels Specifiesthe width autoplay autoplay | Specilesthatthevideo wl play automaticaly, loop loop Specifiesthat the video wil startagain every time afterfinish. Example: Playing video HT™ML video ‘bodyeht atign="center" videos/h1> cevideo width source src= “html tutor.mp4" t a | | | —— his is a HTML Tutorial "500" hei 7 r height ="300" controls» ‘This fs HTML Tutorial Video 716 LINKING WEB PAGES tually makes a website fi i mn one seanctonl i the ne of hyperlinks, This can be helpful to navigate through your website and pe ple have often referred " y many websites inkto each otherinanintrcateand complexweb, aaa without linking, your website will probably be ju ingstati | eran ey ore a ly be just a boring static one-page HTML website. You’ ‘will probably have more than sere ee ee st likely you want to make a homepage and then create links to all the other pages of your websi my eg re allthe web pages canbe inked to each other. Through hyperinks you can ink other types offiles jkesound, video ete. These links allow usto connect the documents together inan innovative way. UntrorM RESOURCE LOCATOR ———# hasan Beforewe get into how tocreatea hyperlinkin html, we have to understand some basic fundamentals. Every Web adéressie. Uniform Resource Locator or URL. Consider a URLas an address ike your residence address. Let’sexamine an example of URL: = hitp:// (hypertext transfer protocol): It is @ code or what is technically called a protocol that helps one computer to communicate with another computer. The Internet also has another protocol called ftp file transfer protocol). 7.7 Types OF HYPERUNKS IN HTML http://www.delhischool.com/homework.htm! wwwedelhischool.com: It is the homework.html:[tis the file or web domain name or a place where the _pageyouareseekingor searching. Web site is hosted. It lets the computer know where the file is located onthe World Wide Web. means connecting your own web pages and files in your web site your web site, you don't have to | include the full URL (web INTERNAL LINK: Linking to pages within 1k. While linking pages within your site, together this can be called as internal lin ageaddress) in your link, since the! browser's already reading files from your directory. ved the full URL (Uniform Resource Links that connectto other web sites. In this case, Wene bar in your browser and pasting it EXTERNAL LINK: External links are headdress youneed from the address Locator) which can be retrieved by imply copying intoyour code. pes of external links, ESE There aretwothingsyourequlretocreste [There are twosub-tvi tL rhenameotafleortheURLyouvantOHNK: ‘Outbound Links | | nkorhotspot the Neahed texto gP When a site links sie cickedontogetownereYOuNant toa third-party site foal. cable ‘ANCHOR TAG ———* h another document. With this, one can ray ee Inks bet, link with anot tion, tag requires thy Hea ses the (anchor tg t0 crea ie creating links to other pages OF Beta poe thes pages. But tag by itself does not do anyt re Wi Tibteyper tex referee with > at Internet adéress or file name of each pase," TT container tagbecause't needs closing ag, ration of the! hyperlink, it specifies the destination oft — ‘url">Link text Syntax: Click to Start it i ile name. ‘Tolink fles which are on different folders, ust include the directory name with the file na Click here Here answer.htm isa web page that is locatedin the folder called ‘brainwave’. Example: Linking school home page(homepage.htm)with another page(aboutschool.htm). homepage.htm SCHOOL # body DELHI INTERNATIONAL SCHOOL DELHI INTERNATIONAL SCHOOL Click to Know about school
The image after resizing.