Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
OutFileHTML::writeAttribute Method (std::string&, std::string&)

Writes an HTML attribute and its string value.

C++
void writeAttribute(
    const std::string& style, 
    const std::string& s
);
Parameters 
Description 
const std::string& style 
The attribute name. 
const std::string& s 
The attribute value as a string. 

They are written as a space, the attribute name, an equals sign, and the attribute value in double quotes.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!