Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

em linha

Home Códigos de fonte E-Livros Downloads Contatar-nos Sobre nós

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


SVG no HTML
Previous Next





  • As limas de SVG podem ser encaixadas em originais do HTML com o uso do Tag do <embed>, do Tag do <object>, ou do Tag do <iframe>.



  • Criando limas de SVG usando o HTML

    Abaixo de você deve ver três métodos diferentes em como encaixar a lima de SVG no HTML page.




    Usando o Tag do <embed>

    O Tag do <embed> é suportado em quase todos os browsers principais, e reserva scripting.

    Nota: O visor do adôbe SVG recomenda que você usa o Tag ENCAIXAR ao encaixar SVG no HTML page! Entretanto, se você quiser criar XHTML válido, você não pode usar o <embed> - o Tag do <embed> não é alistado em nenhumas especificações do HTML




    Sintaxe:
    <embed src="rectangle.svg" height="100" width="300" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" >

    Nota: O atributo do pluginspage aponta a um URL para o plugin ao download.

    Ponta: Sustentação do Internet Explorer um atributo adicional, wmode= " transparente ", que deixou o fundo do HTML page brilhar completamente.




    Usando o Tag do <object>

    O Tag do <object> é um Tag HTML4 padrão e é suportado em todos os browsers. A desvantagem é que não reserva scripting a língua.

    Nota: Se você instalar a versão a mais atrasada do visor do adôbe SVG, as limas de SVG não trabalharão ao usar o Tag do <object>.




    Sintaxe:
    <object data="rectangle.svg" height="100" width="300" type="image/svg+xml" codebase="http://www.adobe.com/svg/viewer/install/" >

    Nota: Os pontos do atributo do codebase a um URL para que o plugin download




    Usando o Tag do <iframe>

    O Tag do <iframe> trabalha em quase todos os browsers.




    Sintaxe:
    <iframe src="rectangle.svg" height="100" width="300" type="image/svg+xml" ></iframe>



    Adicionando elementos de SVG diretamente no código do HTML

    Seria grande se nós poderíamos adicionar elementos de SVG diretamente na lima do HTML, somente com referência ao namespace de SVG, como este:

    <html
    xmlns:svg="http://www.w3.org/2000/svg">
    <body>
    <p>This is an HTML paragraph</p>
    <svg:svg width="300" height="100" version="1.1" >
    <svg:circle cx="100" cy="50" r="40" stroke="black"
    stroke-width="2" fill="red" />
    </svg:svg>
    </body>
    </html>




    Previous Next

    Keywords: svg viewer, svg file, svg text, svg editor, adobe svg, svg distribution, svg graphics, nbc radio svg, javascript svg, svg antivirus


    HTML Quizes
    HTML Quiz
    XHTML Quiz
    CSS Quiz
    TCP/IP Quiz
    XML Quizes
    XML Quiz
    XSL Quiz
    XSLT Quiz
    DTD Quiz
    Schema Quiz
    XForms Quiz
    XSL-FO Quiz
    XML DOM Quiz
    XLink Quiz
    XQuery Quiz
    XPath Quiz
    XPointer Quiz
    RDF Quiz
    SOAP Quiz
    WSDL Quiz
    RSS Quiz
    WAP Quiz
    Web Services Quiz
    Browser Scripting Quizes
    JavaScript Quiz
    VBScript Quiz
    AJAX Quiz
    DHTML Quiz
    HTML DOM Quiz
    WMLScript Quiz
    E4X Quiz
    Server Scripting Quizes
    ASP Quiz
    PHP Quiz
    PERL Quiz
    SQL Quiz
    ADO Quiz
    .NET (dotnet) Quizes
    Microsoft.Net Quiz
    XML Web Services Quiz
    ASP.Net Quiz
    .Net Mobile Quiz
    C# : C Sharp Quiz
    ADO.NET Quiz
    VB.NET Quiz
    Multimedia Quizes
    SVG Quiz
    Flash Quiz
    Media Quiz
    SMIL Quiz
    Web Building  Quizes
    Web Browsers Quiz
    Web Hosting Quiz
    W3C Quiz
    Web Building Quiz
    Web Quality Quiz
    Web Semantic Quiz
    Web Careers Quiz
    Java Quizes
    Java Quiz
    JSP Quiz
    Servlets Quiz
    Struts Quiz
    EJB Quiz
    JMS Quiz
    JMX Quiz
    Programming Langauges Quizes
    C Quiz
    C++ Quiz
    Visual Basic Quiz
    Data Structures Using C Quiz
    Soft Skills Quizes
    Communication Skills Quiz
    Time Management Quiz
    Project Management Quiz
    Team Work Quiz
    Leadership Skills Quiz
    Corporate Communication Quiz
    Negotiation Skills Quiz

    Privacy Policy
    Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.